Merge pull request #602 from cuneytsenturk/tax-rate
Add calculate and compound feature on Tax
This commit is contained in:
32
database/migrations/2018_11_05_000000_add_tax_columns.php
Normal file
32
database/migrations/2018_11_05_000000_add_tax_columns.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AddTaxColumns extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('taxes', function ($table) {
|
||||
$table->string('type')->default('normal');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('taxes', function ($table) {
|
||||
$table->dropColumn([
|
||||
'type',
|
||||
]);
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user