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(); + } + }); + } +};