Skip to content

Commit d035590

Browse files
committed
Theoretically fix migration issues for api_key table
1 parent 5f6c153 commit d035590

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
99
* Handle 404 errors from missing models in the application API bindings correctly.
1010
* Fix validation error returned when no environment variables are passed, even if there are no variables required.
1111
* Fix improper permissions on `PATCH /api/servers/<id>/startup` endpoint which was preventing enditing any start variables.
12+
* Should fix migration issues from 0.6 when there are more than API key in the database.
1213

1314
### Changed
1415
* Changes order that validation of resource existence occurs in API requests to not try and use a non-existent model when validating data.

database/migrations/2018_01_13_142012_SetupTableForKeyEncryption.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class SetupTableForKeyEncryption extends Migration
1616
public function up()
1717
{
1818
Schema::table('api_keys', function (Blueprint $table) {
19-
$table->char('identifier', 16)->unique()->after('user_id');
19+
$table->char('identifier', 16)->nullable()->unique()->after('user_id');
2020
$table->dropUnique(['token']);
2121
});
2222

0 commit comments

Comments
 (0)