2018-06-30 12:37:19 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
|
|
|
|
class ModifyEnabledColumn extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::table('accounts', function (Blueprint $table) {
|
2018-07-02 13:43:05 +03:00
|
|
|
$table->boolean('enabled')->default(1)->change();
|
2018-06-30 12:37:19 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
Schema::table('categories', function (Blueprint $table) {
|
2018-07-02 13:43:05 +03:00
|
|
|
$table->boolean('enabled')->default(1)->change();
|
2018-06-30 12:37:19 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
Schema::table('currencies', function (Blueprint $table) {
|
2018-07-02 13:43:05 +03:00
|
|
|
$table->boolean('enabled')->default(1)->change();
|
2018-06-30 12:37:19 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
Schema::table('items', function (Blueprint $table) {
|
2018-07-02 13:43:05 +03:00
|
|
|
$table->boolean('enabled')->default(1)->change();
|
2018-06-30 12:37:19 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
Schema::table('customers', function (Blueprint $table) {
|
2018-07-02 13:43:05 +03:00
|
|
|
$table->boolean('enabled')->default(1)->change();
|
2018-06-30 12:37:19 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
Schema::table('vendors', function (Blueprint $table) {
|
2018-07-02 13:43:05 +03:00
|
|
|
$table->boolean('enabled')->default(1)->change();
|
2018-06-30 12:37:19 +03:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|