summaryrefslogtreecommitdiff
path: root/modules/image_block/helpers/image_block_installer.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/image_block/helpers/image_block_installer.php')
-rw-r--r--modules/image_block/helpers/image_block_installer.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/modules/image_block/helpers/image_block_installer.php b/modules/image_block/helpers/image_block_installer.php
index 6b0ec20b..386ad2f5 100644
--- a/modules/image_block/helpers/image_block_installer.php
+++ b/modules/image_block/helpers/image_block_installer.php
@@ -24,18 +24,12 @@ class image_block_installer {
if ($version == 0) {
$db = Database::instance();
- $db->query("ALTER TABLE `items` ADD `rand_key` FLOAT DEFAULT NULL");
- $db->query("UPDATE `items` SET `rand_key` = RAND()");
- $db->query("CREATE INDEX `random_index` ON `items` (rand_key DESC)");
-
module::set_version("image_block", 1);
}
}
static function uninstall() {
$db = Database::instance();
- // Dropping the column should drop the index as well.
- $db->query("ALTER TABLE `items` DROP `rand_key`");
module::delete("image_block");
}