diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-05-02 19:13:45 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-05-02 19:13:45 +0000 |
commit | a4b5005640228b8f5cec843e46c152080f9ff523 (patch) | |
tree | d94ebdbc76f5c238d34220685256274d810375a3 /update.php | |
parent | c3a36313aca1468b0e224f47d7f22d0025a8c798 (diff) | |
download | brdo-a4b5005640228b8f5cec843e46c152080f9ff523.tar.gz brdo-a4b5005640228b8f5cec843e46c152080f9ff523.tar.bz2 |
- 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.
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 */ |