Skip to content

Instantly share code, notes, and snippets.

@tushargugnani
Created February 26, 2019 05:21
Show Gist options
  • Save tushargugnani/0586e0a7b739d885def4f4d1b46e70ba to your computer and use it in GitHub Desktop.
Save tushargugnani/0586e0a7b739d885def4f4d1b46e70ba to your computer and use it in GitHub Desktop.
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePagesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('pages', function (Blueprint $table) {
$table->increments('id');
$table->string('url','1024');
$table->text('title')->nullable();
$table->unsignedInteger('status')->nullable();
$table->boolean('isCrawled');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('pages');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment