Merge branch 'master' into feature/add-tests
This commit is contained in:
@ -26,13 +26,15 @@ class AddCurrencyColumns extends Migration
|
||||
* @return void
|
||||
*/
|
||||
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');
|
||||
});
|
||||
}
|
||||
{
|
||||
Schema::table('currencies', function ($table) {
|
||||
$table->dropColumn([
|
||||
'precision',
|
||||
'symbol',
|
||||
'symbol_first',
|
||||
'decimal_mark',
|
||||
'thousands_separator',
|
||||
]);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -4,21 +4,21 @@ use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AddCategoryColumnInvoicesBills extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('invoices', function ($table) {
|
||||
$table->integer('category_id');
|
||||
});
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('invoices', function ($table) {
|
||||
$table->integer('category_id')->default();
|
||||
});
|
||||
|
||||
Schema::table('bills', function ($table) {
|
||||
$table->integer('category_id');
|
||||
});
|
||||
}
|
||||
Schema::table('bills', function ($table) {
|
||||
$table->integer('category_id')->default();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
|
Reference in New Issue
Block a user