summaryrefslogtreecommitdiffstats
path: root/application/migrations/011_apikeys_add_access_level.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/migrations/011_apikeys_add_access_level.php')
-rw-r--r--application/migrations/011_apikeys_add_access_level.php14
1 files changed, 4 insertions, 10 deletions
diff --git a/application/migrations/011_apikeys_add_access_level.php b/application/migrations/011_apikeys_add_access_level.php
index 29a2f769b..2fdbc7271 100644
--- a/application/migrations/011_apikeys_add_access_level.php
+++ b/application/migrations/011_apikeys_add_access_level.php
@@ -5,14 +5,11 @@ class Migration_apikeys_add_access_level extends CI_Migration {
public function up()
{
- if ($this->db->dbdriver == 'postgre')
- {
+ if ($this->db->dbdriver == 'postgre') {
$this->db->query('
alter table "apikeys" add "access_level" varchar(255) default \'apikey\'
');
- }
- else
- {
+ } else {
$this->db->query("
alter table `apikeys` add `access_level` varchar(255) default 'apikey';
");
@@ -21,14 +18,11 @@ class Migration_apikeys_add_access_level extends CI_Migration {
public function down()
{
- if ($this->db->dbdriver == 'postgre')
- {
+ if ($this->db->dbdriver == 'postgre') {
$this->db->query('
alter table "apikeys" drop "access_level"
');
- }
- else
- {
+ } else {
$this->db->query('
alter table `apikeys` drop `access_level`
');