summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-09-09 01:33:51 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-09-09 01:33:51 +1000
commiteea4e42609e319b38f14bca9f31cc3327ffaf175 (patch)
tree50eff229bcb7314e6f22837f1046a151adf3ddf7 /install.php
parent9a846d5ad5838d4db824623d9916d6b4e34c29ee (diff)
Add ability to create custom user/permissions groups
Diffstat (limited to 'install.php')
-rw-r--r--install.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/install.php b/install.php
index 45244b90..639a90c9 100644
--- a/install.php
+++ b/install.php
@@ -1,7 +1,7 @@
<?php
// Installation/upgrade file
-define('VERSION', 'v0.9.6-dev-19');
+define('VERSION', 'v0.9.6-dev-20');
require 'inc/functions.php';
@@ -407,6 +407,11 @@ if (file_exists($config['has_installed'])) {
KEY `filehash` (`filehash`),
KEY `time` (`time`)
) ENGINE=MyISAM DEFAULT CHARSET=ascii COLLATE=ascii_bin AUTO_INCREMENT=1 ;") or error(db_error());
+ case 'v0.9.6-dev-19':
+ query("UPDATE ``mods`` SET `type` = 10 WHERE `type` = 0") or error(db_error());
+ query("UPDATE ``mods`` SET `type` = 20 WHERE `type` = 1") or error(db_error());
+ query("UPDATE ``mods`` SET `type` = 30 WHERE `type` = 2") or error(db_error());
+ query("ALTER TABLE ``mods`` CHANGE `type` `type` smallint(1) NOT NULL") or error(db_error());
case false:
// Update version number
file_write($config['has_installed'], VERSION);