@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('password_resets', function (Blueprint $table) { |
|
| 16 | + Schema::create('password_resets', function(Blueprint $table) { |
|
| 17 | 17 | $table->string('email')->index(); |
| 18 | 18 | $table->string('token')->index(); |
| 19 | 19 | $table->timestamp('created_at')->nullable(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('brand_model', function (Blueprint $table) { |
|
| 16 | + Schema::create('brand_model', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('name', 80); |
| 19 | 19 | $table->string('description', 120); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('material_type', function (Blueprint $table) { |
|
| 16 | + Schema::create('material_type', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('name', 80); |
| 19 | 19 | $table->string('description', 120); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('provider', function (Blueprint $table) { |
|
| 16 | + Schema::create('provider', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('name', 120); |
| 19 | 19 | $table->string('shortName', 50); |
@@ -7,24 +7,24 @@ |
||
| 7 | 7 | class CreateNewsTable extends Migration |
| 8 | 8 | { |
| 9 | 9 | /** |
| 10 | - * Run the migrations. |
|
| 11 | - * |
|
| 12 | - * @return void |
|
| 13 | - */ |
|
| 14 | - public function up() |
|
| 15 | - { |
|
| 16 | - // create table 'news' |
|
| 17 | - Schema::create('news', function (Blueprint $table) { |
|
| 18 | - $table->increments('id'); |
|
| 19 | - $table->string('title', 255); |
|
| 20 | - $table->string('slug', 100)->unique(); |
|
| 21 | - $table->text('short_description'); |
|
| 22 | - $table->text('full_content'); |
|
| 23 | - $table->string('author', 100); |
|
| 24 | - $table->string('category', 100); |
|
| 25 | - $table->timestamps(); // timestamps() creates created_at & updated_at fields |
|
| 26 | - }); |
|
| 27 | - } |
|
| 10 | + * Run the migrations. |
|
| 11 | + * |
|
| 12 | + * @return void |
|
| 13 | + */ |
|
| 14 | + public function up() |
|
| 15 | + { |
|
| 16 | + // create table 'news' |
|
| 17 | + Schema::create('news', function (Blueprint $table) { |
|
| 18 | + $table->increments('id'); |
|
| 19 | + $table->string('title', 255); |
|
| 20 | + $table->string('slug', 100)->unique(); |
|
| 21 | + $table->text('short_description'); |
|
| 22 | + $table->text('full_content'); |
|
| 23 | + $table->string('author', 100); |
|
| 24 | + $table->string('category', 100); |
|
| 25 | + $table->timestamps(); // timestamps() creates created_at & updated_at fields |
|
| 26 | + }); |
|
| 27 | + } |
|
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * Reverse the migrations. |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | 16 | // create table 'news' |
| 17 | - Schema::create('news', function (Blueprint $table) { |
|
| 17 | + Schema::create('news', function(Blueprint $table) { |
|
| 18 | 18 | $table->increments('id'); |
| 19 | 19 | $table->string('title', 255); |
| 20 | 20 | $table->string('slug', 100)->unique(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('providers', function (Blueprint $table) { |
|
| 16 | + Schema::create('providers', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('name', 120); |
| 19 | 19 | $table->string('shortName', 50); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('users', function (Blueprint $table) { |
|
| 16 | + Schema::create('users', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('name'); |
| 19 | 19 | $table->string('email')->unique(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('location', function (Blueprint $table) { |
|
| 16 | + Schema::create('location', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('name', 100); |
| 19 | 19 | $table->string('shortName', 50); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('courses', function (Blueprint $table) { |
|
| 16 | + Schema::create('courses', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->timestamps(); |
| 19 | 19 | }); |