From f05d8753674d9da2abc6a76e81fdd4073e58e455 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Wed, 21 Feb 2024 22:10:04 +1100 Subject: [PATCH] Adds sort_order to deferred_bindings table --- ...2013_10_01_000001_Db_Deferred_Bindings.php | 2 ++ ...Db_Add_Pivot_Data_To_Deferred_Bindings.php | 21 ------------------- 2 files changed, 2 insertions(+), 21 deletions(-) delete mode 100644 src/Database/Migrations/2021_10_01_000004_Db_Add_Pivot_Data_To_Deferred_Bindings.php diff --git a/src/Database/Migrations/2013_10_01_000001_Db_Deferred_Bindings.php b/src/Database/Migrations/2013_10_01_000001_Db_Deferred_Bindings.php index 61528871c..aa0ed9ed1 100644 --- a/src/Database/Migrations/2013_10_01_000001_Db_Deferred_Bindings.php +++ b/src/Database/Migrations/2013_10_01_000001_Db_Deferred_Bindings.php @@ -14,7 +14,9 @@ public function up() $table->string('slave_type'); $table->integer('slave_id'); $table->string('session_key'); + $table->mediumText('pivot_data')->nullable(); $table->boolean('is_bind')->default(true); + $table->integer('sort_order')->nullable(); $table->timestamps(); }); } diff --git a/src/Database/Migrations/2021_10_01_000004_Db_Add_Pivot_Data_To_Deferred_Bindings.php b/src/Database/Migrations/2021_10_01_000004_Db_Add_Pivot_Data_To_Deferred_Bindings.php deleted file mode 100644 index 2b0238242..000000000 --- a/src/Database/Migrations/2021_10_01_000004_Db_Add_Pivot_Data_To_Deferred_Bindings.php +++ /dev/null @@ -1,21 +0,0 @@ -mediumText('pivot_data')->nullable()->after('slave_id'); - }); - } - - public function down() - { - Schema::table('deferred_bindings', function (Blueprint $table) { - $table->dropColumn('pivot_data'); - }); - } -};