diff --git a/database/migrations/create_asset_containers_table.php.stub b/database/migrations/create_asset_containers_table.php.stub index ba1de19e..589f43c4 100644 --- a/database/migrations/create_asset_containers_table.php.stub +++ b/database/migrations/create_asset_containers_table.php.stub @@ -12,7 +12,7 @@ return new class extends Migration { $table->string('handle')->unique(); $table->string('title'); $table->string('disk'); - $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 eaedcc94..68ebfb66 100644 --- a/database/migrations/create_asset_table.php.stub +++ b/database/migrations/create_asset_table.php.stub @@ -10,7 +10,7 @@ return new class extends Migration { Schema::create($this->prefix('assets_meta'), function (Blueprint $table) { $table->id(); $table->string('handle')->index(); - $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 c2bf0635..19ef5554 100644 --- a/database/migrations/create_blueprints_table.php.stub +++ b/database/migrations/create_blueprints_table.php.stub @@ -12,7 +12,7 @@ return new class extends Migration { $table->id(); $table->string('namespace')->nullable()->default(null)->index(); $table->string('handle'); - $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 b39bf13b..b7f953ca 100644 --- a/database/migrations/create_collections_table.php.stub +++ b/database/migrations/create_collections_table.php.stub @@ -11,7 +11,7 @@ return new class extends Migration { $table->id(); $table->string('handle')->unique(); $table->string('title'); - $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 850ebb44..0c419c27 100644 --- a/database/migrations/create_entries_table.php.stub +++ b/database/migrations/create_entries_table.php.stub @@ -17,7 +17,7 @@ return new class extends Migration { $table->string('uri')->nullable()->index(); $table->string('date')->nullable(); $table->string('collection')->index(); - $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 c14c990c..b1db599a 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,7 @@ return new class extends Migration { $table->string('uri')->nullable()->index(); $table->string('date')->nullable(); $table->string('collection')->index(); - $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 48646398..e20dc1bb 100644 --- a/database/migrations/create_fieldsets_table.php.stub +++ b/database/migrations/create_fieldsets_table.php.stub @@ -10,7 +10,7 @@ return new class extends Migration { Schema::create($this->prefix('fieldsets'), function (Blueprint $table) { $table->id(); $table->string('handle')->unique(); - $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 e9b6ba55..1487dccf 100644 --- a/database/migrations/create_form_submissions_table.php.stub +++ b/database/migrations/create_form_submissions_table.php.stub @@ -10,7 +10,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(); - $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 e58e1f38..cee70200 100644 --- a/database/migrations/create_forms_table.php.stub +++ b/database/migrations/create_forms_table.php.stub @@ -11,7 +11,7 @@ return new class extends Migration { $table->id(); $table->string('handle')->unique(); $table->string('title'); - $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 d31ba7cc..aeed0b0d 100644 --- a/database/migrations/create_globals_table.php.stub +++ b/database/migrations/create_globals_table.php.stub @@ -11,7 +11,7 @@ return new class extends Migration { $table->id(); $table->string('handle')->unique(); $table->string('title'); - $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 5b954249..bc0ec4e4 100644 --- a/database/migrations/create_navigation_trees_table.php.stub +++ b/database/migrations/create_navigation_trees_table.php.stub @@ -12,8 +12,8 @@ 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(); + $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 8ca6b420..d86b1e21 100644 --- a/database/migrations/create_navigations_table.php.stub +++ b/database/migrations/create_navigations_table.php.stub @@ -11,7 +11,7 @@ return new class extends Migration { $table->id(); $table->string('handle')->unique(); $table->string('title'); - $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 8dc84d54..4a787417 100644 --- a/database/migrations/create_revisions_table.php.stub +++ b/database/migrations/create_revisions_table.php.stub @@ -13,7 +13,7 @@ return new class extends Migration { $table->string('action')->index(); $table->string('user')->nullable(); $table->string('message')->nullable(); - $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 d19218e3..810d5440 100644 --- a/database/migrations/create_taxonomies_table.php.stub +++ b/database/migrations/create_taxonomies_table.php.stub @@ -11,8 +11,8 @@ return new class extends Migration { $table->id(); $table->string('handle')->unique(); $table->string('title'); - $table->json('sites')->nullable(); - $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 e53afe14..22c8af62 100644 --- a/database/migrations/create_terms_table.php.stub +++ b/database/migrations/create_terms_table.php.stub @@ -13,7 +13,7 @@ return new class extends Migration { $table->string('slug'); $table->string('uri')->nullable()->index(); $table->string('taxonomy')->index(); - $table->json('data'); + $table->jsonb('data'); $table->timestamps(); $table->unique(['slug', 'taxonomy', 'site']);