diff --git a/database/migrations/2016_04_11_004142_create_events_table.php b/database/migrations/2016_04_11_004142_create_events_table.php new file mode 100644 index 0000000000000000000000000000000000000000..c0a8fda96488c563c54b131a1019524caf79570a --- /dev/null +++ b/database/migrations/2016_04_11_004142_create_events_table.php @@ -0,0 +1,32 @@ +<?php + +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Database\Migrations\Migration; + +class CreateEventsTable extends Migration +{ + /** + * Run the migrations. + * + * @return void + */ + public function up() + { + Schema::create('events', function (Blueprint $table) { + $table->increments('id'); + $table->string('name'); + $table->integer('hours'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('events'); + } +}