Skip to content

Commit

Permalink
Merge pull request bcit-ci#779 from marcopineschi/patch-1
Browse files Browse the repository at this point in the history
Corrected for compatibility with CI v3
  • Loading branch information
benedmunds committed May 28, 2015
2 parents 1457cfa + 1dfd187 commit 444ccb4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions migrations/001_install_ion_auth.php
Expand Up @@ -5,7 +5,7 @@ class Migration_Install_ion_auth extends CI_Migration {
public function up()
{
// Drop table 'groups' if it exists
$this->dbforge->drop_table('groups');
$this->dbforge->drop_table('groups', TRUE);

// Table structure for table 'groups'
$this->dbforge->add_field(array(
Expand Down Expand Up @@ -44,7 +44,7 @@ public function up()


// Drop table 'users' if it exists
$this->dbforge->drop_table('users');
$this->dbforge->drop_table('users', TRUE);

// Table structure for table 'users'
$this->dbforge->add_field(array(
Expand Down Expand Up @@ -159,7 +159,7 @@ public function up()


// Drop table 'users_groups' if it exists
$this->dbforge->drop_table('users_groups');
$this->dbforge->drop_table('users_groups', TRUE);

// Table structure for table 'users_groups'
$this->dbforge->add_field(array(
Expand Down Expand Up @@ -200,7 +200,7 @@ public function up()


// Drop table 'login_attempts' if it exists
$this->dbforge->drop_table('login_attempts');
$this->dbforge->drop_table('login_attempts', TRUE);

// Table structure for table 'login_attempts'
$this->dbforge->add_field(array(
Expand Down Expand Up @@ -233,9 +233,9 @@ public function up()

public function down()
{
$this->dbforge->drop_table('users');
$this->dbforge->drop_table('groups');
$this->dbforge->drop_table('users_groups');
$this->dbforge->drop_table('login_attempts');
$this->dbforge->drop_table('users', TRUE);
$this->dbforge->drop_table('groups', TRUE);
$this->dbforge->drop_table('users_groups', TRUE);
$this->dbforge->drop_table('login_attempts', TRUE);
}
}

0 comments on commit 444ccb4

Please sign in to comment.