2018-11-05 19:51:01 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
|
|
|
|
class AddTaxColumns extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::table('taxes', function ($table) {
|
2018-11-06 17:55:31 +03:00
|
|
|
$table->string('type')->default('normal');
|
2018-11-05 19:51:01 +03:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::table('taxes', function ($table) {
|
|
|
|
$table->dropColumn([
|
2018-11-06 17:55:31 +03:00
|
|
|
'type',
|
2018-11-05 19:51:01 +03:00
|
|
|
]);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|