akaunting/database/migrations/2018_06_30_000000_modify_enabled_column.php

50 lines
1.2 KiB
PHP

<?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) {
$table->boolean('enabled')->default(1)->change();
});
Schema::table('categories', function (Blueprint $table) {
$table->boolean('enabled')->default(1)->change();
});
Schema::table('currencies', function (Blueprint $table) {
$table->boolean('enabled')->default(1)->change();
});
Schema::table('items', function (Blueprint $table) {
$table->boolean('enabled')->default(1)->change();
});
Schema::table('customers', function (Blueprint $table) {
$table->boolean('enabled')->default(1)->change();
});
Schema::table('vendors', function (Blueprint $table) {
$table->boolean('enabled')->default(1)->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
}
}