for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use FaithGen\SDK\Helpers\Helper;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateDailyServicesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create('fg_daily_services', function (Blueprint $table) {
$table->string('id')->index();
$table->string('ministry_id', 150)->index();
$table->enum('day', Helper::$weekDays);
$table->string('alias')->nullable();
$table->string('start');
$table->string('finish');
$table->timestamps();
$table->foreign('ministry_id')->references('id')->on('fg_ministries')->onDelete('cascade');
});
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('fg_daily_services');