Add reminders column on invoices table

This commit is contained in:
David Callizaya 2021-10-28 17:46:18 -04:00
parent a9f422bbda
commit dc7be8fc77
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddRemindersOnInvoicesTable extends Migration
{
/**
* Add reminders column on invoices table.
*
* @return void
*/
public function up()
{
Schema::table('invoices', function (Blueprint $table) {
$table->integer('reminders')->default(0);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('invoices', function (Blueprint $table) {
$table->dropColumn('reminders');
});
}
}