From 22c03c8075c9cf4fe1ca02e0afd678a161ea25e5 Mon Sep 17 00:00:00 2001 From: notCharles Date: Sat, 20 Apr 2024 17:57:14 -0400 Subject: [PATCH] add sort column --- .../2024_04_20_214441_add_egg_var_sort.php | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 database/migrations/2024_04_20_214441_add_egg_var_sort.php diff --git a/database/migrations/2024_04_20_214441_add_egg_var_sort.php b/database/migrations/2024_04_20_214441_add_egg_var_sort.php new file mode 100644 index 0000000000..f1a4346cd4 --- /dev/null +++ b/database/migrations/2024_04_20_214441_add_egg_var_sort.php @@ -0,0 +1,28 @@ +unsignedTinyInteger('sort')->nullable()->after('egg_id'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('egg_variables', function (Blueprint $table) { + $table->dropColumn('sort'); + }); + } +};