From 7e694a2c97b5ae0930f25acb6599e1fe4bbe4c03 Mon Sep 17 00:00:00 2001 From: Lukas Date: Tue, 25 Oct 2022 09:56:34 +0200 Subject: [PATCH 1/6] use `jsonb` data type for postgres --- .../migrations/create_asset_containers_table.php.stub | 6 +++++- database/migrations/create_asset_table.php.stub | 6 +++++- database/migrations/create_blueprints_table.php.stub | 6 +++++- database/migrations/create_collections_table.php.stub | 6 +++++- database/migrations/create_entries_table.php.stub | 6 +++++- .../create_entries_table_with_string_ids.php.stub | 6 +++++- database/migrations/create_fieldsets_table.php.stub | 6 +++++- .../migrations/create_form_submissions_table.php.stub | 6 +++++- database/migrations/create_forms_table.php.stub | 6 +++++- database/migrations/create_globals_table.php.stub | 6 +++++- .../migrations/create_navigation_trees_table.php.stub | 9 +++++++-- database/migrations/create_navigations_table.php.stub | 7 ++++++- database/migrations/create_revisions_table.php.stub | 6 +++++- database/migrations/create_taxonomies_table.php.stub | 6 +++++- database/migrations/create_terms_table.php.stub | 6 +++++- 15 files changed, 78 insertions(+), 16 deletions(-) diff --git a/database/migrations/create_asset_containers_table.php.stub b/database/migrations/create_asset_containers_table.php.stub index ba1de19e..bf60114a 100644 --- a/database/migrations/create_asset_containers_table.php.stub +++ b/database/migrations/create_asset_containers_table.php.stub @@ -12,7 +12,11 @@ return new class extends Migration { $table->string('handle')->unique(); $table->string('title'); $table->string('disk'); - $table->json('settings')->nullable(); + if (DB::connection()->getDriverName() === 'pgsql') { + $table->jsonb('settings')->nullable(); + } else { + $table->json('settings')->nullable(); + } $table->timestamps(); }); } diff --git a/database/migrations/create_asset_table.php.stub b/database/migrations/create_asset_table.php.stub index eaedcc94..58142b32 100644 --- a/database/migrations/create_asset_table.php.stub +++ b/database/migrations/create_asset_table.php.stub @@ -10,7 +10,11 @@ return new class extends Migration { Schema::create($this->prefix('assets_meta'), function (Blueprint $table) { $table->id(); $table->string('handle')->index(); - $table->json('data')->nullable(); + if (DB::connection()->getDriverName() === 'pgsql') { + $table->jsonb('data')->nullable(); + } else { + $table->json('data')->nullable(); + } $table->timestamps(); }); } diff --git a/database/migrations/create_blueprints_table.php.stub b/database/migrations/create_blueprints_table.php.stub index c2bf0635..b66914de 100644 --- a/database/migrations/create_blueprints_table.php.stub +++ b/database/migrations/create_blueprints_table.php.stub @@ -12,7 +12,11 @@ return new class extends Migration { $table->id(); $table->string('namespace')->nullable()->default(null)->index(); $table->string('handle'); - $table->json('data'); + if (DB::connection()->getDriverName() === 'pgsql') { + $table->jsonb('data'); + } else { + $table->json('data'); + } $table->timestamps(); $table->unique(['handle', 'namespace']); diff --git a/database/migrations/create_collections_table.php.stub b/database/migrations/create_collections_table.php.stub index b39bf13b..81ff0c69 100644 --- a/database/migrations/create_collections_table.php.stub +++ b/database/migrations/create_collections_table.php.stub @@ -11,7 +11,11 @@ return new class extends Migration { $table->id(); $table->string('handle')->unique(); $table->string('title'); - $table->json('settings')->nullable(); + if (DB::connection()->getDriverName() === 'pgsql') { + $table->jsonb('settings')->nullable(); + } else { + $table->json('settings')->nullable(); + } $table->timestamps(); }); } diff --git a/database/migrations/create_entries_table.php.stub b/database/migrations/create_entries_table.php.stub index 850ebb44..06601cb0 100644 --- a/database/migrations/create_entries_table.php.stub +++ b/database/migrations/create_entries_table.php.stub @@ -17,7 +17,11 @@ return new class extends Migration { $table->string('uri')->nullable()->index(); $table->string('date')->nullable(); $table->string('collection')->index(); - $table->json('data'); + if (DB::connection()->getDriverName() === 'pgsql') { + $table->jsonb('data'); + } else { + $table->json('data'); + } $table->timestamps(); $table->foreign('origin_id') diff --git a/database/migrations/create_entries_table_with_string_ids.php.stub b/database/migrations/create_entries_table_with_string_ids.php.stub index c14c990c..af8f8b15 100644 --- a/database/migrations/create_entries_table_with_string_ids.php.stub +++ b/database/migrations/create_entries_table_with_string_ids.php.stub @@ -17,7 +17,11 @@ return new class extends Migration { $table->string('uri')->nullable()->index(); $table->string('date')->nullable(); $table->string('collection')->index(); - $table->json('data'); + if (DB::connection()->getDriverName() === 'pgsql') { + $table->jsonb('data'); + } else { + $table->json('data'); + } $table->timestamps(); $table->primary('id'); diff --git a/database/migrations/create_fieldsets_table.php.stub b/database/migrations/create_fieldsets_table.php.stub index 48646398..7a12d29e 100644 --- a/database/migrations/create_fieldsets_table.php.stub +++ b/database/migrations/create_fieldsets_table.php.stub @@ -10,7 +10,11 @@ return new class extends Migration { Schema::create($this->prefix('fieldsets'), function (Blueprint $table) { $table->id(); $table->string('handle')->unique(); - $table->json('data'); + if (DB::connection()->getDriverName() === 'pgsql') { + $table->jsonb('data'); + } else { + $table->json('data'); + } $table->timestamps(); }); } diff --git a/database/migrations/create_form_submissions_table.php.stub b/database/migrations/create_form_submissions_table.php.stub index e9b6ba55..f32546d6 100644 --- a/database/migrations/create_form_submissions_table.php.stub +++ b/database/migrations/create_form_submissions_table.php.stub @@ -10,7 +10,11 @@ return new class extends Migration { Schema::create($this->prefix('form_submissions'), function (Blueprint $table) { $table->id(); $table->foreignId('form_id')->constrained($this->prefix('forms'))->cascadeOnDelete(); - $table->json('data')->nullable(); + if (DB::connection()->getDriverName() === 'pgsql') { + $table->jsonb('data')->nullable(); + } else { + $table->json('data')->nullable(); + } $table->timestamps(6); $table->unique(['form_id', 'created_at']); diff --git a/database/migrations/create_forms_table.php.stub b/database/migrations/create_forms_table.php.stub index e58e1f38..3cfa5775 100644 --- a/database/migrations/create_forms_table.php.stub +++ b/database/migrations/create_forms_table.php.stub @@ -11,7 +11,11 @@ return new class extends Migration { $table->id(); $table->string('handle')->unique(); $table->string('title'); - $table->json('settings')->nullable(); + if (DB::connection()->getDriverName() === 'pgsql') { + $table->jsonb('settings')->nullable(); + } else { + $table->json('settings')->nullable(); + } $table->timestamps(); }); } diff --git a/database/migrations/create_globals_table.php.stub b/database/migrations/create_globals_table.php.stub index d31ba7cc..3c87f40d 100644 --- a/database/migrations/create_globals_table.php.stub +++ b/database/migrations/create_globals_table.php.stub @@ -11,7 +11,11 @@ return new class extends Migration { $table->id(); $table->string('handle')->unique(); $table->string('title'); - $table->json('localizations'); + if (DB::connection()->getDriverName() === 'pgsql') { + $table->jsonb('localizations'); + } else { + $table->json('localizations'); + } $table->timestamps(); }); } diff --git a/database/migrations/create_navigation_trees_table.php.stub b/database/migrations/create_navigation_trees_table.php.stub index 5b954249..01668309 100644 --- a/database/migrations/create_navigation_trees_table.php.stub +++ b/database/migrations/create_navigation_trees_table.php.stub @@ -12,8 +12,13 @@ return new class extends Migration { $table->string('handle'); $table->string('type')->index(); $table->string('locale')->nullable()->index(); - $table->json('tree')->nullable(); - $table->json('settings')->nullable(); + if (DB::connection()->getDriverName() === 'pgsql') { + $table->jsonb('tree')->nullable(); + $table->jsonb('settings')->nullable(); + } else { + $table->json('tree')->nullable(); + $table->json('settings')->nullable(); + } $table->timestamps(); $table->unique(['handle', 'type', 'locale']); diff --git a/database/migrations/create_navigations_table.php.stub b/database/migrations/create_navigations_table.php.stub index 8ca6b420..52bf5f87 100644 --- a/database/migrations/create_navigations_table.php.stub +++ b/database/migrations/create_navigations_table.php.stub @@ -11,7 +11,12 @@ return new class extends Migration { $table->id(); $table->string('handle')->unique(); $table->string('title'); - $table->json('settings')->nullable(); + $table->string('locale')->nullable()->index(); + if (DB::connection()->getDriverName() === 'pgsql') { + $table->jsonb('settings')->nullable(); + } else { + $table->json('settings')->nullable(); + } $table->timestamps(); }); } diff --git a/database/migrations/create_revisions_table.php.stub b/database/migrations/create_revisions_table.php.stub index 8dc84d54..3208e31c 100644 --- a/database/migrations/create_revisions_table.php.stub +++ b/database/migrations/create_revisions_table.php.stub @@ -13,7 +13,11 @@ return new class extends Migration { $table->string('action')->index(); $table->string('user')->nullable(); $table->string('message')->nullable(); - $table->json('attributes')->nullable(); + if (DB::connection()->getDriverName() === 'pgsql') { + $table->jsonb('attributes')->nullable(); + } else { + $table->json('attributes')->nullable(); + } $table->timestamps(); $table->unique(['key', 'created_at']); diff --git a/database/migrations/create_taxonomies_table.php.stub b/database/migrations/create_taxonomies_table.php.stub index d19218e3..7b90ba3f 100644 --- a/database/migrations/create_taxonomies_table.php.stub +++ b/database/migrations/create_taxonomies_table.php.stub @@ -12,7 +12,11 @@ return new class extends Migration { $table->string('handle')->unique(); $table->string('title'); $table->json('sites')->nullable(); - $table->json('settings')->nullable(); + if (DB::connection()->getDriverName() === 'pgsql') { + $table->jsonb('settings')->nullable(); + } else { + $table->json('settings')->nullable(); + } $table->timestamps(); }); } diff --git a/database/migrations/create_terms_table.php.stub b/database/migrations/create_terms_table.php.stub index e53afe14..384cbb6b 100644 --- a/database/migrations/create_terms_table.php.stub +++ b/database/migrations/create_terms_table.php.stub @@ -13,7 +13,11 @@ return new class extends Migration { $table->string('slug'); $table->string('uri')->nullable()->index(); $table->string('taxonomy')->index(); - $table->json('data'); + if (DB::connection()->getDriverName() === 'pgsql') { + $table->jsonb('data'); + } else { + $table->json('data'); + } $table->timestamps(); $table->unique(['slug', 'taxonomy', 'site']); From 2aa8856f7bc5d4d5a0c2b09d0e75c3a264004da4 Mon Sep 17 00:00:00 2001 From: Lukas Date: Tue, 25 Oct 2022 10:06:13 +0200 Subject: [PATCH 2/6] add missing db facade imports --- database/migrations/create_asset_containers_table.php.stub | 1 + database/migrations/create_asset_table.php.stub | 1 + database/migrations/create_blueprints_table.php.stub | 1 + database/migrations/create_collections_table.php.stub | 1 + database/migrations/create_entries_table.php.stub | 1 + .../migrations/create_entries_table_with_string_ids.php.stub | 1 + database/migrations/create_fieldsets_table.php.stub | 1 + database/migrations/create_form_submissions_table.php.stub | 1 + database/migrations/create_forms_table.php.stub | 1 + database/migrations/create_globals_table.php.stub | 1 + database/migrations/create_navigation_trees_table.php.stub | 1 + database/migrations/create_navigations_table.php.stub | 1 + database/migrations/create_revisions_table.php.stub | 1 + database/migrations/create_taxonomies_table.php.stub | 1 + database/migrations/create_terms_table.php.stub | 1 + 15 files changed, 15 insertions(+) diff --git a/database/migrations/create_asset_containers_table.php.stub b/database/migrations/create_asset_containers_table.php.stub index bf60114a..1dca6bdf 100644 --- a/database/migrations/create_asset_containers_table.php.stub +++ b/database/migrations/create_asset_containers_table.php.stub @@ -1,6 +1,7 @@ Date: Mon, 7 Nov 2022 17:28:17 +0100 Subject: [PATCH 3/6] remove unnecessary conditions --- .../migrations/create_asset_containers_table.php.stub | 6 +----- database/migrations/create_asset_table.php.stub | 6 +----- database/migrations/create_blueprints_table.php.stub | 6 +----- database/migrations/create_collections_table.php.stub | 6 +----- database/migrations/create_entries_table.php.stub | 6 +----- .../create_entries_table_with_string_ids.php.stub | 6 +----- database/migrations/create_fieldsets_table.php.stub | 6 +----- .../migrations/create_form_submissions_table.php.stub | 6 +----- database/migrations/create_forms_table.php.stub | 6 +----- database/migrations/create_globals_table.php.stub | 6 +----- .../migrations/create_navigation_trees_table.php.stub | 9 ++------- database/migrations/create_navigations_table.php.stub | 6 +----- database/migrations/create_revisions_table.php.stub | 6 +----- database/migrations/create_taxonomies_table.php.stub | 8 ++------ database/migrations/create_terms_table.php.stub | 6 +----- 15 files changed, 17 insertions(+), 78 deletions(-) diff --git a/database/migrations/create_asset_containers_table.php.stub b/database/migrations/create_asset_containers_table.php.stub index 1dca6bdf..010a9939 100644 --- a/database/migrations/create_asset_containers_table.php.stub +++ b/database/migrations/create_asset_containers_table.php.stub @@ -13,11 +13,7 @@ return new class extends Migration { $table->string('handle')->unique(); $table->string('title'); $table->string('disk'); - if (DB::connection()->getDriverName() === 'pgsql') { - $table->jsonb('settings')->nullable(); - } else { - $table->json('settings')->nullable(); - } + $table->jsonb('settings')->nullable(); $table->timestamps(); }); } diff --git a/database/migrations/create_asset_table.php.stub b/database/migrations/create_asset_table.php.stub index b4fc532f..0586167f 100644 --- a/database/migrations/create_asset_table.php.stub +++ b/database/migrations/create_asset_table.php.stub @@ -11,11 +11,7 @@ return new class extends Migration { Schema::create($this->prefix('assets_meta'), function (Blueprint $table) { $table->id(); $table->string('handle')->index(); - if (DB::connection()->getDriverName() === 'pgsql') { - $table->jsonb('data')->nullable(); - } else { - $table->json('data')->nullable(); - } + $table->jsonb('data')->nullable(); $table->timestamps(); }); } diff --git a/database/migrations/create_blueprints_table.php.stub b/database/migrations/create_blueprints_table.php.stub index 5b8b3eae..e5b5afa1 100644 --- a/database/migrations/create_blueprints_table.php.stub +++ b/database/migrations/create_blueprints_table.php.stub @@ -13,11 +13,7 @@ return new class extends Migration { $table->id(); $table->string('namespace')->nullable()->default(null)->index(); $table->string('handle'); - if (DB::connection()->getDriverName() === 'pgsql') { - $table->jsonb('data'); - } else { - $table->json('data'); - } + $table->jsonb('data'); $table->timestamps(); $table->unique(['handle', 'namespace']); diff --git a/database/migrations/create_collections_table.php.stub b/database/migrations/create_collections_table.php.stub index 7e357db1..4fd00289 100644 --- a/database/migrations/create_collections_table.php.stub +++ b/database/migrations/create_collections_table.php.stub @@ -12,11 +12,7 @@ return new class extends Migration { $table->id(); $table->string('handle')->unique(); $table->string('title'); - if (DB::connection()->getDriverName() === 'pgsql') { - $table->jsonb('settings')->nullable(); - } else { - $table->json('settings')->nullable(); - } + $table->jsonb('settings')->nullable(); $table->timestamps(); }); } diff --git a/database/migrations/create_entries_table.php.stub b/database/migrations/create_entries_table.php.stub index 23363186..ec3828b8 100644 --- a/database/migrations/create_entries_table.php.stub +++ b/database/migrations/create_entries_table.php.stub @@ -18,11 +18,7 @@ return new class extends Migration { $table->string('uri')->nullable()->index(); $table->string('date')->nullable(); $table->string('collection')->index(); - if (DB::connection()->getDriverName() === 'pgsql') { - $table->jsonb('data'); - } else { - $table->json('data'); - } + $table->jsonb('data'); $table->timestamps(); $table->foreign('origin_id') diff --git a/database/migrations/create_entries_table_with_string_ids.php.stub b/database/migrations/create_entries_table_with_string_ids.php.stub index eb4f15cd..3c089803 100644 --- a/database/migrations/create_entries_table_with_string_ids.php.stub +++ b/database/migrations/create_entries_table_with_string_ids.php.stub @@ -18,11 +18,7 @@ return new class extends Migration { $table->string('uri')->nullable()->index(); $table->string('date')->nullable(); $table->string('collection')->index(); - if (DB::connection()->getDriverName() === 'pgsql') { - $table->jsonb('data'); - } else { - $table->json('data'); - } + $table->jsonb('data'); $table->timestamps(); $table->primary('id'); diff --git a/database/migrations/create_fieldsets_table.php.stub b/database/migrations/create_fieldsets_table.php.stub index d80f7ce6..7d75e19a 100644 --- a/database/migrations/create_fieldsets_table.php.stub +++ b/database/migrations/create_fieldsets_table.php.stub @@ -11,11 +11,7 @@ return new class extends Migration { Schema::create($this->prefix('fieldsets'), function (Blueprint $table) { $table->id(); $table->string('handle')->unique(); - if (DB::connection()->getDriverName() === 'pgsql') { - $table->jsonb('data'); - } else { - $table->json('data'); - } + $table->jsonb('data'); $table->timestamps(); }); } diff --git a/database/migrations/create_form_submissions_table.php.stub b/database/migrations/create_form_submissions_table.php.stub index 5ceac3a4..53f4b63b 100644 --- a/database/migrations/create_form_submissions_table.php.stub +++ b/database/migrations/create_form_submissions_table.php.stub @@ -11,11 +11,7 @@ return new class extends Migration { Schema::create($this->prefix('form_submissions'), function (Blueprint $table) { $table->id(); $table->foreignId('form_id')->constrained($this->prefix('forms'))->cascadeOnDelete(); - if (DB::connection()->getDriverName() === 'pgsql') { - $table->jsonb('data')->nullable(); - } else { - $table->json('data')->nullable(); - } + $table->jsonb('data')->nullable(); $table->timestamps(6); $table->unique(['form_id', 'created_at']); diff --git a/database/migrations/create_forms_table.php.stub b/database/migrations/create_forms_table.php.stub index d3a2fed8..81130a33 100644 --- a/database/migrations/create_forms_table.php.stub +++ b/database/migrations/create_forms_table.php.stub @@ -12,11 +12,7 @@ return new class extends Migration { $table->id(); $table->string('handle')->unique(); $table->string('title'); - if (DB::connection()->getDriverName() === 'pgsql') { - $table->jsonb('settings')->nullable(); - } else { - $table->json('settings')->nullable(); - } + $table->jsonb('settings')->nullable(); $table->timestamps(); }); } diff --git a/database/migrations/create_globals_table.php.stub b/database/migrations/create_globals_table.php.stub index a077387f..63d6335e 100644 --- a/database/migrations/create_globals_table.php.stub +++ b/database/migrations/create_globals_table.php.stub @@ -12,11 +12,7 @@ return new class extends Migration { $table->id(); $table->string('handle')->unique(); $table->string('title'); - if (DB::connection()->getDriverName() === 'pgsql') { - $table->jsonb('localizations'); - } else { - $table->json('localizations'); - } + $table->jsonb('localizations'); $table->timestamps(); }); } diff --git a/database/migrations/create_navigation_trees_table.php.stub b/database/migrations/create_navigation_trees_table.php.stub index bd65884f..524f3b0c 100644 --- a/database/migrations/create_navigation_trees_table.php.stub +++ b/database/migrations/create_navigation_trees_table.php.stub @@ -13,13 +13,8 @@ return new class extends Migration { $table->string('handle'); $table->string('type')->index(); $table->string('locale')->nullable()->index(); - if (DB::connection()->getDriverName() === 'pgsql') { - $table->jsonb('tree')->nullable(); - $table->jsonb('settings')->nullable(); - } else { - $table->json('tree')->nullable(); - $table->json('settings')->nullable(); - } + $table->jsonb('tree')->nullable(); + $table->jsonb('settings')->nullable(); $table->timestamps(); $table->unique(['handle', 'type', 'locale']); diff --git a/database/migrations/create_navigations_table.php.stub b/database/migrations/create_navigations_table.php.stub index 68699384..f499f6d3 100644 --- a/database/migrations/create_navigations_table.php.stub +++ b/database/migrations/create_navigations_table.php.stub @@ -13,11 +13,7 @@ return new class extends Migration { $table->string('handle')->unique(); $table->string('title'); $table->string('locale')->nullable()->index(); - if (DB::connection()->getDriverName() === 'pgsql') { - $table->jsonb('settings')->nullable(); - } else { - $table->json('settings')->nullable(); - } + $table->jsonb('settings')->nullable(); $table->timestamps(); }); } diff --git a/database/migrations/create_revisions_table.php.stub b/database/migrations/create_revisions_table.php.stub index 9ee0d79d..0008c8d0 100644 --- a/database/migrations/create_revisions_table.php.stub +++ b/database/migrations/create_revisions_table.php.stub @@ -14,11 +14,7 @@ return new class extends Migration { $table->string('action')->index(); $table->string('user')->nullable(); $table->string('message')->nullable(); - if (DB::connection()->getDriverName() === 'pgsql') { - $table->jsonb('attributes')->nullable(); - } else { - $table->json('attributes')->nullable(); - } + $table->jsonb('attributes')->nullable(); $table->timestamps(); $table->unique(['key', 'created_at']); diff --git a/database/migrations/create_taxonomies_table.php.stub b/database/migrations/create_taxonomies_table.php.stub index b99804e2..26c613ed 100644 --- a/database/migrations/create_taxonomies_table.php.stub +++ b/database/migrations/create_taxonomies_table.php.stub @@ -12,12 +12,8 @@ return new class extends Migration { $table->id(); $table->string('handle')->unique(); $table->string('title'); - $table->json('sites')->nullable(); - if (DB::connection()->getDriverName() === 'pgsql') { - $table->jsonb('settings')->nullable(); - } else { - $table->json('settings')->nullable(); - } + $table->jsonb('sites')->nullable(); + $table->jsonb('settings')->nullable(); $table->timestamps(); }); } diff --git a/database/migrations/create_terms_table.php.stub b/database/migrations/create_terms_table.php.stub index 1074bcf0..84150978 100644 --- a/database/migrations/create_terms_table.php.stub +++ b/database/migrations/create_terms_table.php.stub @@ -14,11 +14,7 @@ return new class extends Migration { $table->string('slug'); $table->string('uri')->nullable()->index(); $table->string('taxonomy')->index(); - if (DB::connection()->getDriverName() === 'pgsql') { - $table->jsonb('data'); - } else { - $table->json('data'); - } + $table->jsonb('data'); $table->timestamps(); $table->unique(['slug', 'taxonomy', 'site']); From 12be3ad5216e5cbe8e691e2cd949e606213ad99d Mon Sep 17 00:00:00 2001 From: Lukas Date: Mon, 7 Nov 2022 17:31:22 +0100 Subject: [PATCH 4/6] remove unused imports --- database/migrations/create_asset_containers_table.php.stub | 1 - database/migrations/create_asset_table.php.stub | 1 - database/migrations/create_collections_table.php.stub | 1 - database/migrations/create_entries_table.php.stub | 1 - .../migrations/create_entries_table_with_string_ids.php.stub | 1 - database/migrations/create_fieldsets_table.php.stub | 1 - database/migrations/create_form_submissions_table.php.stub | 1 - database/migrations/create_forms_table.php.stub | 1 - database/migrations/create_globals_table.php.stub | 1 - database/migrations/create_navigation_trees_table.php.stub | 1 - database/migrations/create_navigations_table.php.stub | 1 - database/migrations/create_revisions_table.php.stub | 1 - database/migrations/create_taxonomies_table.php.stub | 1 - database/migrations/create_terms_table.php.stub | 1 - 14 files changed, 14 deletions(-) diff --git a/database/migrations/create_asset_containers_table.php.stub b/database/migrations/create_asset_containers_table.php.stub index 010a9939..589f43c4 100644 --- a/database/migrations/create_asset_containers_table.php.stub +++ b/database/migrations/create_asset_containers_table.php.stub @@ -1,7 +1,6 @@ Date: Mon, 7 Nov 2022 22:23:46 +0100 Subject: [PATCH 5/6] remove `locale` column --- database/migrations/create_navigations_table.php.stub | 1 - 1 file changed, 1 deletion(-) diff --git a/database/migrations/create_navigations_table.php.stub b/database/migrations/create_navigations_table.php.stub index 90d10271..d86b1e21 100644 --- a/database/migrations/create_navigations_table.php.stub +++ b/database/migrations/create_navigations_table.php.stub @@ -11,7 +11,6 @@ return new class extends Migration { $table->id(); $table->string('handle')->unique(); $table->string('title'); - $table->string('locale')->nullable()->index(); $table->jsonb('settings')->nullable(); $table->timestamps(); }); From fded937ceb8741622f9118af22de47756a2849be Mon Sep 17 00:00:00 2001 From: Jason Varga Date: Wed, 9 Nov 2022 16:38:47 -0500 Subject: [PATCH 6/6] Remove import irrelevant to pr --- database/migrations/create_blueprints_table.php.stub | 1 - 1 file changed, 1 deletion(-) diff --git a/database/migrations/create_blueprints_table.php.stub b/database/migrations/create_blueprints_table.php.stub index e5b5afa1..19ef5554 100644 --- a/database/migrations/create_blueprints_table.php.stub +++ b/database/migrations/create_blueprints_table.php.stub @@ -1,7 +1,6 @@