From e26d5422c65826e45e2b2ef35762e59ef46c9b5b Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Wed, 4 Feb 2026 21:06:34 +0500 Subject: [PATCH] fix order --- ...e_source_app_to_source_on_orders_table.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 database/migrations/2026_02_04_210430_change_source_app_to_source_on_orders_table.php diff --git a/database/migrations/2026_02_04_210430_change_source_app_to_source_on_orders_table.php b/database/migrations/2026_02_04_210430_change_source_app_to_source_on_orders_table.php new file mode 100644 index 0000000..6c0ad97 --- /dev/null +++ b/database/migrations/2026_02_04_210430_change_source_app_to_source_on_orders_table.php @@ -0,0 +1,34 @@ +dropColumn('source_app'); + $table->string('source')->nullable(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('orders', function (Blueprint $table) { + if (Schema::hasColumn('source')) { + $table->dropColumn('source')->nullable(); + } + if (! Schema::hasColumn('source_app')) { + $table->string('source_app')->nullable(); + } + }); + } +};