From 35a8c59055c8446075241b039b930cd799592220 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Mon, 27 May 2024 18:53:44 +0200 Subject: [PATCH] Add private columns --- ...7_180922_create_forms_is_active_column.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 database/migrations/2024_05_27_180922_create_forms_is_active_column.php diff --git a/database/migrations/2024_05_27_180922_create_forms_is_active_column.php b/database/migrations/2024_05_27_180922_create_forms_is_active_column.php new file mode 100644 index 00000000..1c3da0da --- /dev/null +++ b/database/migrations/2024_05_27_180922_create_forms_is_active_column.php @@ -0,0 +1,34 @@ +boolean('is_active')->default(true)->after('name'); + $table->boolean('is_private')->default(false)->after('name'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('forms', function (Blueprint $table) { + $table->dropColumn('is_active'); + $table->dropColumn('is_private'); + }); + } +};