akaunting/database/migrations/2018_10_27_000000_add_reconciled_column.php
2018-10-27 17:57:40 +03:00

55 lines
1.2 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
class AddReconciledColumn extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('bill_payments', function ($table) {
$table->boolean('reconciled')->default(0);
});
Schema::table('invoice_payments', function ($table) {
$table->boolean('reconciled')->default(0);
});
Schema::table('payments', function ($table) {
$table->boolean('reconciled')->default(0);
});
Schema::table('revenues', function ($table) {
$table->boolean('reconciled')->default(0);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('bill_payments', function ($table) {
$table->dropColumn('reconciled');
});
Schema::table('invoice_payments', function ($table) {
$table->dropColumn('reconciled');
});
Schema::table('payments', function ($table) {
$table->dropColumn('reconciled');
});
Schema::table('revenues', function ($table) {
$table->dropColumn('reconciled');
});
}
}