Apply fixes from StyleCI (#581)
This commit is contained in:
parent
b8d7d99096
commit
340193c013
15 changed files with 165 additions and 166 deletions
|
@ -24,24 +24,24 @@ class AddForeignAllocations extends Migration
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('allocations', function (Blueprint $table) {
|
||||
$table->dropForeign('allocations_assigned_to_foreign');
|
||||
$table->dropForeign('allocations_node_foreign');
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('allocations', function (Blueprint $table) {
|
||||
$table->dropForeign('allocations_assigned_to_foreign');
|
||||
$table->dropForeign('allocations_node_foreign');
|
||||
|
||||
$table->dropIndex('allocations_assigned_to_foreign');
|
||||
$table->dropIndex('allocations_node_foreign');
|
||||
});
|
||||
$table->dropIndex('allocations_assigned_to_foreign');
|
||||
$table->dropIndex('allocations_node_foreign');
|
||||
});
|
||||
|
||||
DB::statement('ALTER TABLE allocations
|
||||
DB::statement('ALTER TABLE allocations
|
||||
MODIFY COLUMN assigned_to MEDIUMINT(8) UNSIGNED NULL,
|
||||
MODIFY COLUMN node MEDIUMINT(8) UNSIGNED NOT NULL
|
||||
');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,18 +20,18 @@ class AddForeignApiPermissions extends Migration
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('api_permissions', function (Blueprint $table) {
|
||||
$table->dropForeign('api_permissions_key_id_foreign');
|
||||
$table->dropIndex('api_permissions_key_id_foreign');
|
||||
});
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('api_permissions', function (Blueprint $table) {
|
||||
$table->dropForeign('api_permissions_key_id_foreign');
|
||||
$table->dropIndex('api_permissions_key_id_foreign');
|
||||
});
|
||||
|
||||
DB::statement('ALTER TABLE api_permissions MODIFY key_id MEDIUMINT(8) UNSIGNED NOT NULL');
|
||||
}
|
||||
DB::statement('ALTER TABLE api_permissions MODIFY key_id MEDIUMINT(8) UNSIGNED NOT NULL');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,19 +19,19 @@ class AddForeignPermissions extends Migration
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('permissions', function (Blueprint $table) {
|
||||
$table->dropForeign('permissions_user_id_foreign');
|
||||
$table->dropForeign('permissions_server_id_foreign');
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('permissions', function (Blueprint $table) {
|
||||
$table->dropForeign('permissions_user_id_foreign');
|
||||
$table->dropForeign('permissions_server_id_foreign');
|
||||
|
||||
$table->dropIndex('permissions_user_id_foreign');
|
||||
$table->dropIndex('permissions_server_id_foreign');
|
||||
});
|
||||
}
|
||||
$table->dropIndex('permissions_user_id_foreign');
|
||||
$table->dropIndex('permissions_server_id_foreign');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,21 +24,21 @@ class AddForeignServerVariables extends Migration
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('server_variables', function (Blueprint $table) {
|
||||
$table->dropForeign(['server_id']);
|
||||
$table->dropForeign(['variable_id']);
|
||||
});
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('server_variables', function (Blueprint $table) {
|
||||
$table->dropForeign(['server_id']);
|
||||
$table->dropForeign(['variable_id']);
|
||||
});
|
||||
|
||||
DB::statement('ALTER TABLE server_variables
|
||||
DB::statement('ALTER TABLE server_variables
|
||||
MODIFY COLUMN server_id MEDIUMINT(8) UNSIGNED NULL,
|
||||
MODIFY COLUMN variable_id MEDIUMINT(8) UNSIGNED NOT NULL
|
||||
');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,18 +20,18 @@ class AddForeignServiceOptions extends Migration
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('service_options', function (Blueprint $table) {
|
||||
$table->dropForeign('service_options_parent_service_foreign');
|
||||
$table->dropIndex('service_options_parent_service_foreign');
|
||||
});
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('service_options', function (Blueprint $table) {
|
||||
$table->dropForeign('service_options_parent_service_foreign');
|
||||
$table->dropIndex('service_options_parent_service_foreign');
|
||||
});
|
||||
|
||||
DB::statement('ALTER TABLE service_options MODIFY parent_service MEDIUMINT(8) UNSIGNED NOT NULL');
|
||||
}
|
||||
DB::statement('ALTER TABLE service_options MODIFY parent_service MEDIUMINT(8) UNSIGNED NOT NULL');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,18 +20,18 @@ class AddForeignServiceVariables extends Migration
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('service_variables', function (Blueprint $table) {
|
||||
$table->dropForeign('service_variables_option_id_foreign');
|
||||
$table->dropIndex('service_variables_option_id_foreign');
|
||||
});
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('service_variables', function (Blueprint $table) {
|
||||
$table->dropForeign('service_variables_option_id_foreign');
|
||||
$table->dropIndex('service_variables_option_id_foreign');
|
||||
});
|
||||
|
||||
DB::statement('ALTER TABLE service_variables MODIFY option_id MEDIUMINT(8) UNSIGNED NOT NULL');
|
||||
}
|
||||
DB::statement('ALTER TABLE service_variables MODIFY option_id MEDIUMINT(8) UNSIGNED NOT NULL');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue