diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-28 06:37:28 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-28 06:37:28 +0000 |
commit | c04ff8e02f01691dc2e325efc523e43f3aebaf95 (patch) | |
tree | 8fbdfe90c1bb04b9b8b74500904c09f126430e19 /modules/user/helpers | |
parent | ad56995bafffeca89c44b07cb4f25da7b36a1a99 (diff) |
Change the pattern to identify tables that need prefix substitution to
mirror the drupal pattern of using braces {}.
Diffstat (limited to 'modules/user/helpers')
-rw-r--r-- | modules/user/helpers/user_installer.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/user/helpers/user_installer.php b/modules/user/helpers/user_installer.php index 414327f5..c677d01a 100644 --- a/modules/user/helpers/user_installer.php +++ b/modules/user/helpers/user_installer.php @@ -23,7 +23,7 @@ class user_installer { $version = module::get_version("user"); if ($version == 0) { - $db->query("CREATE TABLE IF NOT EXISTS `[users]` ( + $db->query("CREATE TABLE IF NOT EXISTS {users} ( `id` int(9) NOT NULL auto_increment, `name` varchar(32) NOT NULL, `full_name` varchar(255) NOT NULL, @@ -41,7 +41,7 @@ class user_installer { UNIQUE KEY(`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;"); - $db->query("CREATE TABLE IF NOT EXISTS `[groups]` ( + $db->query("CREATE TABLE IF NOT EXISTS {groups} ( `id` int(9) NOT NULL auto_increment, `name` char(64) default NULL, `special` BOOLEAN default 0, @@ -49,7 +49,7 @@ class user_installer { UNIQUE KEY(`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;"); - $db->query("CREATE TABLE IF NOT EXISTS `[groups_users]` ( + $db->query("CREATE TABLE IF NOT EXISTS {groups_users} ( `group_id` int(9) NOT NULL, `user_id` int(9) NOT NULL, PRIMARY KEY (`group_id`, `user_id`), @@ -105,9 +105,9 @@ class user_installer { } catch (Exception $e) { } $db = Database::instance(); - $db->query("DROP TABLE IF EXISTS `[users]`;"); - $db->query("DROP TABLE IF EXISTS `[groups]`;"); - $db->query("DROP TABLE IF EXISTS `[groups_users]`;"); + $db->query("DROP TABLE IF EXISTS {users};"); + $db->query("DROP TABLE IF EXISTS {groups};"); + $db->query("DROP TABLE IF EXISTS {groups_users};"); module::delete("user"); } }
\ No newline at end of file |