From 4b5cc5a4a130f2eb3a8f75b07c39d5832a6033ae Mon Sep 17 00:00:00 2001 From: "Aaron C. de Bruyn" Date: Wed, 24 Dec 2014 17:02:51 -0800 Subject: [PATCH] More style fixes --- ...12_13_121410_AlterTableIncidentsRemoveDefaultComponent.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/database/migrations/2014_12_13_121410_AlterTableIncidentsRemoveDefaultComponent.php b/app/database/migrations/2014_12_13_121410_AlterTableIncidentsRemoveDefaultComponent.php index 1c9773f2..2f8dc9f4 100644 --- a/app/database/migrations/2014_12_13_121410_AlterTableIncidentsRemoveDefaultComponent.php +++ b/app/database/migrations/2014_12_13_121410_AlterTableIncidentsRemoveDefaultComponent.php @@ -16,7 +16,7 @@ class AlterTableIncidentsRemoveDefaultComponent extends Migration Schema::table('incidents', function (Blueprint $table) { if (Config::get('database')['default'] === 'mysql') { DB::statement("ALTER TABLE incidents CHANGE component_id component_id TINYINT(4) NOT NULL DEFAULT '0';"); - } else if (Config::get('database')['default'] === 'pgsql') { + } elseif (Config::get('database')['default'] === 'pgsql') { DB::statement("ALTER TABLE incidents ALTER COLUMN component_id SET DEFAULT '0';"); } }); @@ -32,7 +32,7 @@ class AlterTableIncidentsRemoveDefaultComponent extends Migration Schema::table('incidents', function (Blueprint $table) { if (Config::get('database')['default'] === 'mysql') { DB::statement("ALTER TABLE incidents CHANGE component_id component_id TINYINT(4) NOT NULL DEFAULT '1';"); - } else if (Config::get('database')['default'] === 'pgsql') { + } elseif (Config::get('database')['default'] === 'pgsql') { DB::statement("ALTER TABLE incidents ALTER COLUMN component_id SET DEFAULT '1';"); } });