2014_02_26_070333_create_tasks.php 611 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. class CreateTasks extends Migration {
  5. /**
  6. * Run the migrations.
  7. *
  8. * @return void
  9. */
  10. public function up()
  11. {
  12. Schema::create('tasks', function($table)
  13. {
  14. $table->increments('id');
  15. $table->string('yourname');
  16. $table->string('youremail');
  17. $table->string('title');
  18. $table->text('description');
  19. $table->string('case');
  20. $table->boolean('done');
  21. $table->timestamps();
  22. });
  23. }
  24. /**
  25. * Reverse the migrations.
  26. *
  27. * @return void
  28. */
  29. public function down()
  30. {
  31. Schema::drop('tasks');
  32. }
  33. }