fix issues

This commit is contained in:
Mohit Panjwani
2021-11-30 21:55:25 +05:30
parent 9629771d22
commit f3dad8d48b
2 changed files with 48 additions and 61 deletions

View File

@ -16,8 +16,7 @@ class AddBaseColumnsToExpenseTable extends Migration
Schema::table('expenses', function (Blueprint $table) {
$table->decimal('exchange_rate', 19, 6)->nullable();
$table->unsignedBigInteger('base_amount')->nullable();
$table->unsignedInteger('currency_id');
$table->foreign('currency_id')->references('id')->on('currencies');
$table->unsignedInteger('currency_id')->nullable();
});
}