From: Jan Schneider Date: Fri, 28 Jan 2011 17:41:17 +0000 (+0100) Subject: Convert Horde_Auth to migrations. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c778ce97a901d963c6678974fb6f33ac02691b8c;p=horde.git Convert Horde_Auth to migrations. --- diff --git a/framework/Auth/migration/Horde/Auth/1_horde_auth_base_tables.php b/framework/Auth/migration/Horde/Auth/1_horde_auth_base_tables.php new file mode 100644 index 000000000..ab2a5623f --- /dev/null +++ b/framework/Auth/migration/Horde/Auth/1_horde_auth_base_tables.php @@ -0,0 +1,20 @@ +tables())) { + $t = $this->createTable('horde_users', array('primaryKey' => array('user_uid'))); + $t->column('user_uid', 'string', array('limit' => 255, 'null' => false)); + $t->column('user_pass', 'string', array('limit' => 255, 'null' => false)); + $t->column('user_soft_expiration_date', 'integer'); + $t->column('user_hard_expiration_date', 'integer'); + $t->end(); + } + } + + public function down() + { + $this->dropTable('horde_users'); + } +} diff --git a/horde/scripts/sql/horde_users.sql b/horde/scripts/sql/horde_users.sql deleted file mode 100644 index 4ebe8752c..000000000 --- a/horde/scripts/sql/horde_users.sql +++ /dev/null @@ -1,8 +0,0 @@ -CREATE TABLE horde_users ( - user_uid VARCHAR(255) NOT NULL, - user_pass VARCHAR(255) NOT NULL, - user_soft_expiration_date INTEGER, - user_hard_expiration_date INTEGER, --- - PRIMARY KEY (user_uid) -);