Merge branch 'master' into feature/add-tests

This commit is contained in:
Berkay GÜRE
2018-07-25 17:02:17 +03:00
committed by GitHub
33 changed files with 161 additions and 67 deletions

View File

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

View File

@ -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.