Merge branch 'dillon/151-fix-wallet-double-refund' into vapor/development

This commit is contained in:
Dillon Ngo
2026-04-19 03:17:14 +08:00
2 changed files with 20 additions and 20 deletions
@@ -12,13 +12,11 @@ return new class extends Migration
public function up(): void
{
Schema::table('transactions', function (Blueprint $table) {
Schema::table('transactions', function (Blueprint $table) {
$table->unsignedTinyInteger('process_status')
->nullable()
->default(null)
->after('status')
->index();
});
$table->unsignedTinyInteger('process_status')
->nullable()
->default(null)
->after('status')
->index();
});
}
@@ -28,9 +26,7 @@ return new class extends Migration
public function down(): void
{
Schema::table('transactions', function (Blueprint $table) {
Schema::table('transactions', function (Blueprint $table) {
$table->dropColumn('process_status');
});
$table->dropColumn('process_status');
});
}
};
@@ -11,14 +11,16 @@ return new class extends Migration
*/
public function up(): void
{
if (!Schema::hasTable('transaction_logs')) {
return;
}
Schema::table('transaction_logs', function (Blueprint $table) {
Schema::table('transaction_logs', function (Blueprint $table) {
$table->unsignedTinyInteger('process_status')
->nullable()
->default(null)
->after('status')
->index();
});
$table->unsignedTinyInteger('process_status')
->nullable()
->default(null)
->after('status')
->index();
});
}
@@ -27,10 +29,12 @@ return new class extends Migration
*/
public function down(): void
{
if (!Schema::hasTable('transaction_logs')) {
return;
}
Schema::table('transaction_logs', function (Blueprint $table) {
Schema::table('transaction_logs', function (Blueprint $table) {
$table->dropColumn('process_status');
});
$table->dropColumn('process_status');
});
}
};