mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-23 07:15:50 -04:00
Change the pattern to identify tables that need prefix substitution to
mirror the drupal pattern of using braces {}.
This commit is contained in:
@@ -23,7 +23,7 @@ class notification_installer {
|
||||
$version = module::get_version("notification");
|
||||
|
||||
if ($version == 0) {
|
||||
$db->query("CREATE TABLE IF NOT EXISTS `[subscriptions]` (
|
||||
$db->query("CREATE TABLE IF NOT EXISTS {subscriptions} (
|
||||
`id` int(9) NOT NULL auto_increment,
|
||||
`item_id` int(9) NOT NULL,
|
||||
`user_id` int(9) NOT NULL,
|
||||
@@ -38,7 +38,7 @@ class notification_installer {
|
||||
|
||||
static function uninstall() {
|
||||
$db = Database::instance();
|
||||
$db->query("DROP TABLE IF EXISTS `[subscriptions]`;");
|
||||
$db->query("DROP TABLE IF EXISTS {subscriptions};");
|
||||
|
||||
module::delete("notification");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user