diff --git a/database/migrations/2015_05_02_100000_store_create_tables.php b/database/migrations/2015_05_02_100000_store_create_tables.php index acfa17a..95e13c7 100644 --- a/database/migrations/2015_05_02_100000_store_create_tables.php +++ b/database/migrations/2015_05_02_100000_store_create_tables.php @@ -121,24 +121,6 @@ public function up() $table->foreign('loadout_id')->references('id')->on('loadouts') ->onUpdate('cascade')->onDelete('cascade'); }); - - // Create table for store versions - Schema::connection('store')->create('versions', function (Blueprint $table) { - $table->engine = "InnoDB"; - $table->increments('id'); - $table->string('mod_name',64); - $table->string('mod_description',64)->nullable(); - $table->string('mod_ver_convar',64)->nullable(); - $table->string('mod_ver_number',64); - $table->integer('server_id')->unsigned(); - $table->timestamp('last_updated'); - $table->timestamps(); - - $table->unique(['mod_ver_convar', 'server_id']); - - $table->foreign('server_id')->references('id')->on('servers') - ->onUpdate('cascade')->onDelete('cascade'); - }); // Create table for store servers Schema::connection('store')->create('servers', function (Blueprint $table) { @@ -151,6 +133,24 @@ public function up() $table->timestamps(); }); + // Create table for store versions + Schema::connection('store')->create('versions', function (Blueprint $table) { + $table->engine = "InnoDB"; + $table->increments('id'); + $table->string('mod_name',64); + $table->string('mod_description',64)->nullable(); + $table->string('mod_ver_convar',64)->nullable(); + $table->string('mod_ver_number',64); + $table->integer('server_id')->unsigned(); + $table->timestamp('last_updated'); + $table->timestamps(); + + $table->unique(['mod_ver_convar', 'server_id']); + + $table->foreign('server_id')->references('id')->on('servers') + ->onUpdate('cascade')->onDelete('cascade'); + }); + // Create table for store server items Schema::connection('store')->create('servers_items', function (Blueprint $table) { $table->engine = "InnoDB";