From 96e5a98dcc4b68c4d768fd1415356a62d118cde7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=2E=20Nagy=20Gerg=C5=91?= Date: Tue, 16 Apr 2024 14:23:59 +0200 Subject: [PATCH] add missing migration --- ...10_182923_alter_bazar_categories_table.php | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 database/migrations/2024_04_10_182923_alter_bazar_categories_table.php diff --git a/database/migrations/2024_04_10_182923_alter_bazar_categories_table.php b/database/migrations/2024_04_10_182923_alter_bazar_categories_table.php new file mode 100644 index 00000000..948ce847 --- /dev/null +++ b/database/migrations/2024_04_10_182923_alter_bazar_categories_table.php @@ -0,0 +1,30 @@ +after('id', static function (Blueprint $table): void { + $table->foreignId('parent_id')->nullable()->constrained('bazar_categories')->nullOnDelete(); + }); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('bazar_categories', static function (Blueprint $table): void { + $table->dropColumn('parent_id'); + }); + } +};