mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
43 lines
1.1 KiB
PHP
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');
|
|
});
|
|
}
|
|
}
|