diff --git a/database/migrations/2024_11_17_163407_create_failover_transaction_table.php b/database/migrations/2024_11_17_163407_create_failover_transaction_table.php deleted file mode 100644 index 14717ad..0000000 --- a/database/migrations/2024_11_17_163407_create_failover_transaction_table.php +++ /dev/null @@ -1,39 +0,0 @@ -create('failover_transaction', function (Blueprint $table) { - $table->id(); - $table->string('kodcaw',10); - $table->string('teller',255); - $table->string('old_norujukan',50); - $table->string('new_norujukan',50)->nullable(); - $table->boolean('db_caw')->default(false); // Boolean for db_caw, default to false - $table->boolean('db_online')->default(false); - $table->enum('status', ['pending', 'resolved', 'failed'])->default('pending'); // Use ENUM for statuses - $table->timestamp('resolve_time')->nullable(); // Timestamp for resolve time, nullable - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::connection('mysql7')->dropIfExists('failover_transaction'); - } -} diff --git a/database/migrations/2024_11_18_111139_create_failover_transaction_failed_table.php b/database/migrations/2024_11_18_111139_create_failover_transaction_failed_table.php deleted file mode 100644 index e322922..0000000 --- a/database/migrations/2024_11_18_111139_create_failover_transaction_failed_table.php +++ /dev/null @@ -1,36 +0,0 @@ -id(); - $table->unsignedBigInteger('original_id'); // Reference to failover_transaction - $table->string('kodcaw'); - $table->string('norujukan'); - $table->integer('code_error'); - $table->text('error_message')->nullable(); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('failover_transaction_failed'); - } -}