diff --git a/database/migrations/2017_12_09_000000_add_currency_columns.php b/database/migrations/2017_12_09_000000_add_currency_columns.php index 0da22dcef..1d6aeef23 100644 --- a/database/migrations/2017_12_09_000000_add_currency_columns.php +++ b/database/migrations/2017_12_09_000000_add_currency_columns.php @@ -28,11 +28,13 @@ class AddCurrencyColumns extends Migration public function down() { Schema::table('currencies', function ($table) { - $table->dropColumn('precision'); - $table->dropColumn('symbol'); - $table->dropColumn('symbol_first'); - $table->dropColumn('decimal_mark'); - $table->dropColumn('thousands_separator'); + $table->dropColumn([ + 'precision', + 'symbol', + 'symbol_first', + 'decimal_mark', + 'thousands_separator', + ]); }); } } diff --git a/database/migrations/2018_04_23_000000_add_category_column_invoices_bills.php b/database/migrations/2018_04_23_000000_add_category_column_invoices_bills.php index d32668d85..24c9eb6c2 100644 --- a/database/migrations/2018_04_23_000000_add_category_column_invoices_bills.php +++ b/database/migrations/2018_04_23_000000_add_category_column_invoices_bills.php @@ -12,11 +12,11 @@ class AddCategoryColumnInvoicesBills extends Migration public function up() { Schema::table('invoices', function ($table) { - $table->integer('category_id'); + $table->integer('category_id')->default(); }); Schema::table('bills', function ($table) { - $table->integer('category_id'); + $table->integer('category_id')->default(); }); }