akaunting/database/migrations/2018_06_30_000000_modify_enabled_column.php

50 lines
1.2 KiB
PHP
Raw Normal View History

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