Merge pull request #428 from berkaygure/bugfix/fix-sqlite-issues

Fixes some migration issues while working with sqlite
This commit is contained in:
Cüneyt Şentürk 2018-07-25 11:09:14 +03:00 committed by GitHub
commit c375a84651
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 7 deletions

View File

@ -28,11 +28,13 @@ class AddCurrencyColumns extends Migration
public function down() public function down()
{ {
Schema::table('currencies', function ($table) { Schema::table('currencies', function ($table) {
$table->dropColumn('precision'); $table->dropColumn([
$table->dropColumn('symbol'); 'precision',
$table->dropColumn('symbol_first'); 'symbol',
$table->dropColumn('decimal_mark'); 'symbol_first',
$table->dropColumn('thousands_separator'); 'decimal_mark',
'thousands_separator',
]);
}); });
} }
} }

View File

@ -12,11 +12,11 @@ class AddCategoryColumnInvoicesBills extends Migration
public function up() public function up()
{ {
Schema::table('invoices', function ($table) { Schema::table('invoices', function ($table) {
$table->integer('category_id'); $table->integer('category_id')->default();
}); });
Schema::table('bills', function ($table) { Schema::table('bills', function ($table) {
$table->integer('category_id'); $table->integer('category_id')->default();
}); });
} }