Skip to content

Commit 00c116b

Browse files
Merge pull request #8 from devinweb/fix-migrations
Fix transaction migration
2 parents 4bc253a + 7f25f87 commit 00c116b

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

database/migrations/2022_09_21_103553_create_transactions_table.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ public function up()
2626
$table->json('data')->nullable();
2727
$table->foreign('user_id')->references('id')->on('users')
2828
->onUpdate('cascade')->onDelete('set null');
29-
$table->foreign('parent')->references('transaction_ref')->on('transactions')
30-
->onUpdate('cascade')->onDelete('set null');
3129

3230
$table->timestamps();
3331
});

database/migrations/create_transactions_table.php.stub

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ class CreateTransactionsTable extends Migration
2626
$table->json('data')->nullable();
2727
$table->foreign('user_id')->references('id')->on('users')
2828
->onUpdate('cascade')->onDelete('set null');
29-
$table->foreign('parent')->references('transaction_ref')->on('transactions')
30-
->onUpdate('cascade')->onDelete('set null');
3129

3230
$table->timestamps();
3331
});

0 commit comments

Comments
 (0)