33 lines
571 B
PHP
33 lines
571 B
PHP
<?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',
|
|
]);
|
|
});
|
|
}
|
|
}
|