mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-28 00:43:58 +00:00
Merge branch 'dillon/151-fix-wallet-double-refund' into vapor/development
This commit is contained in:
@@ -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');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
+14
-10
@@ -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');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user