123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateTasks extends Migration {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('tasks', function($table)
- {
- $table->increments('id');
- $table->string('yourname');
- $table->string('youremail');
- $table->string('title');
- $table->text('description');
- $table->string('case');
- $table->boolean('done');
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::drop('tasks');
- }
- }
|