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()
|
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',
|
||||||
|
]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user