Merge pull request #428 from berkaygure/bugfix/fix-sqlite-issues
Fixes some migration issues while working with sqlite
This commit is contained in:
commit
c375a84651
@ -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',
|
||||
]);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user