Ah yes, lets just spend 30 minutes trying to get a migration to run correctly.

This commit is contained in:
Dane Everitt
2017-10-06 20:39:11 -05:00
parent 675e780946
commit 0b3c0f6d5a
2 changed files with 4 additions and 3 deletions

View File

@@ -41,10 +41,11 @@ class ChangeServicesToUseAMoreUniqueIdentifier extends Migration
{
Schema::table('services', function (Blueprint $table) {
$table->dropColumn('uuid');
$table->string('folder')->unique('file');
$table->char('author', 36)->change();
$table->string('folder')->nullable();
$table->string('author', 36)->change();
$table->unique('name');
$table->unique('folder', 'services_file_unique');
});
}
}