for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTicketsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create('cas_tickets', function (Blueprint $table) {
$table->increments('id');
$table->string('ticket', 32)->unique();
$table->string('service_url', 1024);
$table->integer('service_id')->unsigned();
$table->integer('user_id')->unsigned();
$table->timestamp('created_at')->nullable();
$table->timestamp('expire_at')->nullable();
$table->foreign('service_id')->references('id')->on('cas_services');
$table->foreign('user_id')->references(config('cas.user_table.id'))->on(config('cas.user_table.name'));
});
}
* Reverse the migrations.
public function down()
Schema::drop('cas_tickets');