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()
{
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',
]);
});
}
}

View File

@ -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();
});
}