feat: adds pgsql compatibility (#72)
This commit is contained in:
@@ -18,7 +18,7 @@ class CreateTransactionsTable extends Migration
|
||||
{
|
||||
Schema::create('transactions', function (Blueprint $table) {
|
||||
$table->uuid('id')->primary();
|
||||
$table->string('symbol', 15);
|
||||
$table->string('symbol', 25);
|
||||
$table->foreignIdFor(Portfolio::class, 'portfolio_id')->constrained()->onDelete('cascade');
|
||||
$table->string('transaction_type', 15);
|
||||
$table->float('quantity', 12, 4);
|
||||
@@ -27,8 +27,6 @@ class CreateTransactionsTable extends Migration
|
||||
$table->boolean('split')->default(false);
|
||||
$table->date('date');
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('symbol')->references('symbol')->on('market_data');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user