invoiceninja/database/migrations/2015_12_27_154513_add_reminder_settings.php
2017-01-30 21:40:43 +02:00

43 lines
1.1 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
class AddReminderSettings extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('accounts', function ($table) {
$table->smallInteger('direction_reminder1')->default(1);
$table->smallInteger('direction_reminder2')->default(1);
$table->smallInteger('direction_reminder3')->default(1);
$table->smallInteger('field_reminder1')->default(1);
$table->smallInteger('field_reminder2')->default(1);
$table->smallInteger('field_reminder3')->default(1);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('accounts', function ($table) {
$table->dropColumn('direction_reminder1');
$table->dropColumn('direction_reminder2');
$table->dropColumn('direction_reminder3');
$table->dropColumn('field_reminder1');
$table->dropColumn('field_reminder2');
$table->dropColumn('field_reminder3');
});
}
}