diff options
Diffstat (limited to 'update.php')
-rw-r--r-- | update.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/update.php b/update.php index 9da3382f7..31e692a53 100644 --- a/update.php +++ b/update.php @@ -60,7 +60,8 @@ $mysql_updates = array( "2002-04-14 : new taxonomy system" => "update_26", "2002-04-16" => "update_27", "2002-04-20" => "update_28", - "2002-04-23 : roles cleanup" => "update_29" + "2002-04-23 : roles cleanup" => "update_29", + "2002-05-02" => "update_30" ); // Update functions @@ -424,6 +425,13 @@ function update_29() { update_sql("ALTER TABLE role DROP perm"); } +function update_30() { + update_sql("ALTER TABLE blocks ADD custom tinyint(2) not null;"); + update_sql("UPDATE blocks SET module = 'block' WHERE module = 'boxes';"); + update_sql("UPDATE blocks SET status = 1, custom = 1 WHERE status = 1;"); + update_sql("UPDATE blocks SET status = 1, custom = 0 WHERE status = 2;"); +} + /* ** System functions */ |