Theoretically fix migration issues for api_key table

This commit is contained in:
Dane Everitt
2018-03-02 18:37:39 -06:00
parent 5f6c153537
commit d03559080f
2 changed files with 2 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ class SetupTableForKeyEncryption extends Migration
public function up()
{
Schema::table('api_keys', function (Blueprint $table) {
$table->char('identifier', 16)->unique()->after('user_id');
$table->char('identifier', 16)->nullable()->unique()->after('user_id');
$table->dropUnique(['token']);
});