First push before 🥚
This commit is contained in:
parent
0b3c0f6d5a
commit
344c1a9885
11 changed files with 36 additions and 158 deletions
|
@ -20,6 +20,8 @@ class ChangeServicesToUseAMoreUniqueIdentifier extends Migration
|
|||
$table->string('author')->change();
|
||||
$table->char('uuid', 36)->after('id');
|
||||
$table->dropColumn('folder');
|
||||
$table->dropColumn('startup');
|
||||
$table->dropColumn('index_file');
|
||||
});
|
||||
|
||||
DB::table('services')->get(['id', 'author', 'uuid'])->each(function ($service) {
|
||||
|
@ -42,6 +44,8 @@ class ChangeServicesToUseAMoreUniqueIdentifier extends Migration
|
|||
Schema::table('services', function (Blueprint $table) {
|
||||
$table->dropColumn('uuid');
|
||||
$table->string('folder')->nullable();
|
||||
$table->text('startup')->nullable();
|
||||
$table->text('index_file');
|
||||
$table->string('author', 36)->change();
|
||||
|
||||
$table->unique('name');
|
||||
|
|
Reference in a new issue