Last active
April 26, 2018 18:28
-
-
Save shellprog/e6ec96f839f47d660c56d60f711cd1cf to your computer and use it in GitHub Desktop.
CreateTasksTable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class CreateTasksTable extends Migration { | |
public function up() | |
{ | |
Schema::create('tasks', function(Blueprint $table) | |
{ | |
$table->create(); | |
$table->increments("id"); | |
$table->string("title", 255); | |
$table->enum('status', array('0', '1'))->default('0'); | |
$table->timestamps(); | |
}); | |
} | |
public function down() | |
{ | |
Schema::drop('tasks'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment