From 3a109b6f8215b8bb5993dc6e4fc5cad0a122e5ba Mon Sep 17 00:00:00 2001
From: Vytor Calixto <vytorcalixto@gmail.com>
Date: Sun, 10 Apr 2016 22:51:17 -0300
Subject: [PATCH] Criada migration para Event

---
 .../2016_04_11_004142_create_events_table.php | 32 +++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 database/migrations/2016_04_11_004142_create_events_table.php

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 0000000..c0a8fda
--- /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');
+    }
+}
-- 
GitLab