2016-05-19 19:33:53 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
2021-06-10 13:15:52 -07:00
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
2016-05-19 19:33:53 -07:00
|
|
|
|
|
|
|
class AddAlterInterval extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::table('settings', function (Blueprint $table) {
|
|
|
|
$table->integer('alert_interval')->nullable()->default('30');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::table('settings', function ($table) {
|
|
|
|
$table->dropColumn(
|
|
|
|
'alert_interval'
|
|
|
|
);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|