calculate and compound fields added
This commit is contained in:
34
database/migrations/2018_11_05_000000_add_tax_columns.php
Normal file
34
database/migrations/2018_11_05_000000_add_tax_columns.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AddTaxColumns extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('taxes', function ($table) {
|
||||
$table->boolean('calculate')->default(0);
|
||||
$table->boolean('compound')->default(0);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('taxes', function ($table) {
|
||||
$table->dropColumn([
|
||||
'calculate',
|
||||
'compound',
|
||||
]);
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user