Initial implementation of new task mgmt system 👮

This commit is contained in:
Dane Everitt 2017-09-09 23:55:21 -05:00
parent f157c06d04
commit bab28dbc85
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
31 changed files with 1535 additions and 132 deletions

View file

@ -0,0 +1,31 @@
<?php
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddNullableNextRunColumn extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::table('tasks', function (Blueprint $table) {
$table = DB::getQueryGrammar()->wrapTable('tasks');
DB::statement('ALTER TABLE ' . $table . ' CHANGE `next_run` `next_run` TIMESTAMP NULL;');
});
}
/**
* Reverse the migrations.
*/
public function down()
{
Schema::table('tasks', function (Blueprint $table) {
$table = DB::getQueryGrammar()->wrapTable('tasks');
DB::statement('ALTER TABLE ' . $table . ' CHANGE `next_run` `next_run` TIMESTAMP NOT NULL;');
});
}
}