| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | */ | 
| 13 | 13 | public function up() | 
| 14 | 14 |      { | 
| 15 | -        Schema::create('categories', function (Blueprint $table) { | |
| 15 | +        Schema::create('categories', function(Blueprint $table) { | |
| 16 | 16 |              $table->increments('id'); | 
| 17 | 17 |              $table->string('slug')->unique(); | 
| 18 | 18 |              $table->string('name'); | 
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | */ | 
| 13 | 13 | public function up() | 
| 14 | 14 |      { | 
| 15 | -        Schema::create('users', function (Blueprint $table) { | |
| 15 | +        Schema::create('users', function(Blueprint $table) { | |
| 16 | 16 |              $table->increments('id'); | 
| 17 | 17 |              $table->string('username'); // Long enough as to hold an md5 | 
| 18 | 18 |              $table->string('name'); | 
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | */ | 
| 13 | 13 | public function up() | 
| 14 | 14 |      { | 
| 15 | -        Schema::create('domains', function (Blueprint $table) { | |
| 15 | +        Schema::create('domains', function(Blueprint $table) { | |
| 16 | 16 |              $table->increments('id'); | 
| 17 | 17 |              $table->string('slug', 50)->unique(); | 
| 18 | 18 |              $table->integer('owner_id')->unsigned(); | 
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | */ | 
| 13 | 13 | public function up() | 
| 14 | 14 |      { | 
| 15 | -        Schema::create('businesses', function (Blueprint $table) { | |
| 15 | +        Schema::create('businesses', function(Blueprint $table) { | |
| 16 | 16 |              $table->increments('id'); | 
| 17 | 17 |              $table->integer('category_id')->unsigned(); | 
| 18 | 18 |              $table->foreign('category_id')->references('id')->on('categories'); | 
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | */ | 
| 13 | 13 | public function up() | 
| 14 | 14 |      { | 
| 15 | -        Schema::create('business_user', function (Blueprint $table) { | |
| 15 | +        Schema::create('business_user', function(Blueprint $table) { | |
| 16 | 16 |              $table->integer('business_id')->unsigned()->index(); | 
| 17 | 17 |              $table->foreign('business_id')->references('id')->on('businesses')->onDelete('cascade'); | 
| 18 | 18 |              $table->integer('user_id')->unsigned()->index(); | 
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | */ | 
| 12 | 12 | public function up() | 
| 13 | 13 |      { | 
| 14 | -        Schema::create('service_types', function ($table) { | |
| 14 | +        Schema::create('service_types', function($table) { | |
| 15 | 15 |              $table->increments('id'); | 
| 16 | 16 |              $table->integer('business_id')->unsigned(); | 
| 17 | 17 |              $table->foreign('business_id')->references('id')->on('businesses'); | 
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | */ | 
| 13 | 13 | public function up() | 
| 14 | 14 |      { | 
| 15 | -        Schema::create('services', function (Blueprint $table) { | |
| 15 | +        Schema::create('services', function(Blueprint $table) { | |
| 16 | 16 |              $table->increments('id'); | 
| 17 | 17 |              $table->integer('business_id')->unsigned(); | 
| 18 | 18 |              $table->foreign('business_id')->references('id')->on('businesses')->onDelete('cascade'); | 
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | */ | 
| 13 | 13 | public function up() | 
| 14 | 14 |      { | 
| 15 | -        Schema::create('contacts', function (Blueprint $table) { | |
| 15 | +        Schema::create('contacts', function(Blueprint $table) { | |
| 16 | 16 |              $table->increments('id'); | 
| 17 | 17 |              $table->integer('user_id')->unsigned()->nullable(); | 
| 18 | 18 |              $table->foreign('user_id')->references('id')->on('users'); | 
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | */ | 
| 13 | 13 | public function up() | 
| 14 | 14 |      { | 
| 15 | -        Schema::create('business_contact', function (Blueprint $table) { | |
| 15 | +        Schema::create('business_contact', function(Blueprint $table) { | |
| 16 | 16 |              $table->integer('business_id')->unsigned()->index(); | 
| 17 | 17 |              $table->foreign('business_id')->references('id')->on('businesses')->onDelete('cascade'); | 
| 18 | 18 |              $table->integer('contact_id')->unsigned()->index(); |