From 945e97e1ea430679afe7e5f53ab4a1dde601b8fd Mon Sep 17 00:00:00 2001 From: Pablo Barrios Date: Thu, 31 Aug 2023 11:55:17 -0300 Subject: [PATCH] Update migration herlper for translations to default active field to false to comply with some versions of PostgreSQL --- src/Helpers/migrations_helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Helpers/migrations_helpers.php b/src/Helpers/migrations_helpers.php index c1f408cf3..851a047e3 100644 --- a/src/Helpers/migrations_helpers.php +++ b/src/Helpers/migrations_helpers.php @@ -79,7 +79,7 @@ function createDefaultTranslationsTableFields($table, $tableNameSingular, $table $table->softDeletes(); $table->timestamps(); $table->string('locale', 7)->index(); - $table->boolean('active'); + $table->boolean('active')->default(false); $table->foreign("{$tableNameSingular}_id", "fk_{$tableNameSingular}_translations_{$tableNameSingular}_id")->references('id')->on($tableNamePlural)->onDelete('CASCADE'); $table->unique(["{$tableNameSingular}_id", 'locale'], "{$tableNameSingular}_id_locale_unique");