From a4b5005640228b8f5cec843e46c152080f9ff523 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Thu, 2 May 2002 19:13:45 +0000 Subject: - merged block and box modules. modules/box.module should be removed or disabled as it will cause errors otherwise. - split status into status and custom. Status will turn the block on/off, and custom defined if the user can change the status. Requires sql update. - reintroduced user page to configure blocks. --- update.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'update.php') 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 */ -- cgit v1.2.3