summaryrefslogtreecommitdiff
path: root/migrations/2017_03_30_000000_create_region_table.php
diff options
context:
space:
mode:
Diffstat (limited to 'migrations/2017_03_30_000000_create_region_table.php')
-rw-r--r--migrations/2017_03_30_000000_create_region_table.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/migrations/2017_03_30_000000_create_region_table.php b/migrations/2017_03_30_000000_create_region_table.php
new file mode 100644
index 0000000..70a4e7b
--- /dev/null
+++ b/migrations/2017_03_30_000000_create_region_table.php
@@ -0,0 +1,32 @@
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class CreateRegionTable extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::create('region', function (Blueprint $table) {
+ $table->increments('id');
+
+ $table->string('name');
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::dropIfExists('region');
+ }
+}