for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
/**
* Migration auto-generated by Sequel Pro Laravel Export (1.5.0)
* @see https://github.com/cviebrock/sequel-pro-laravel-export
*/
class CreateDatastorePagesTable extends Migration
{
* Run the migrations.
*
* @return void
public function up()
Schema::create('datastore_pages', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('title', 255)->nullable();
$table->string('slug', 255)->nullable();
$table->unsignedBigInteger('asset')->nullable()->default(0);
$table->foreign('asset', 'datastore_asset_foreign_key')->references('id')->on('datastore')->onDelete('RESTRICT
')->onUpdate('RESTRICT');
});
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('datastore_pages');