First push before 🥚

This commit is contained in:
Dane Everitt 2017-10-06 21:22:32 -05:00
parent 0b3c0f6d5a
commit 344c1a9885
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
11 changed files with 36 additions and 158 deletions

View file

@ -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');