2018-10-27 17:57:40 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
2019-12-16 12:04:27 +03:00
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
2018-10-27 17:57:40 +03:00
|
|
|
|
|
|
|
class AddReconciledColumn extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
2019-12-16 12:04:27 +03:00
|
|
|
Schema::table('bill_payments', function (Blueprint $table) {
|
2018-10-27 17:57:40 +03:00
|
|
|
$table->boolean('reconciled')->default(0);
|
|
|
|
});
|
|
|
|
|
2019-12-16 12:04:27 +03:00
|
|
|
Schema::table('invoice_payments', function (Blueprint $table) {
|
2018-10-27 17:57:40 +03:00
|
|
|
$table->boolean('reconciled')->default(0);
|
|
|
|
});
|
|
|
|
|
2019-12-16 12:04:27 +03:00
|
|
|
Schema::table('payments', function (Blueprint $table) {
|
2018-10-27 17:57:40 +03:00
|
|
|
$table->boolean('reconciled')->default(0);
|
|
|
|
});
|
|
|
|
|
2019-12-16 12:04:27 +03:00
|
|
|
Schema::table('revenues', function (Blueprint $table) {
|
2018-10-27 17:57:40 +03:00
|
|
|
$table->boolean('reconciled')->default(0);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
2019-12-16 12:04:27 +03:00
|
|
|
Schema::table('bill_payments', function (Blueprint $table) {
|
2018-10-27 17:57:40 +03:00
|
|
|
$table->dropColumn('reconciled');
|
|
|
|
});
|
|
|
|
|
2019-12-16 12:04:27 +03:00
|
|
|
Schema::table('invoice_payments', function (Blueprint $table) {
|
2018-10-27 17:57:40 +03:00
|
|
|
$table->dropColumn('reconciled');
|
|
|
|
});
|
|
|
|
|
2019-12-16 12:04:27 +03:00
|
|
|
Schema::table('payments', function (Blueprint $table) {
|
2018-10-27 17:57:40 +03:00
|
|
|
$table->dropColumn('reconciled');
|
|
|
|
});
|
|
|
|
|
2019-12-16 12:04:27 +03:00
|
|
|
Schema::table('revenues', function (Blueprint $table) {
|
2018-10-27 17:57:40 +03:00
|
|
|
$table->dropColumn('reconciled');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|