diff --git a/database/database.mysql b/database/database.mysql index 2e96cda1e5cf86907f689b3dcf42e68862eaaf0c..2adcf53be390fe1a0b166ca6b4eb29cfdb330064 100644 --- a/database/database.mysql +++ b/database/database.mysql @@ -202,7 +202,7 @@ CREATE TABLE item ( # Table structure for table 'layout' # CREATE TABLE layout ( - user int(11) DEFAULT '0' NOT NULL, + uid int(11) DEFAULT '0' NOT NULL, block varchar(64) DEFAULT '' NOT NULL ) TYPE=MyISAM; @@ -316,25 +316,6 @@ CREATE TABLE poll_choices ( PRIMARY KEY (chid) ) TYPE=MyISAM; -# -# Table structure for table 'project' -# - -CREATE TABLE project ( - nid int(10) unsigned NOT NULL default '0', - pid int(10) unsigned NOT NULL default '0', - pstatus tinyint(2) NOT NULL default '0', - area varchar(255) NOT NULL default '', - priority tinyint(2) NOT NULL default '0', - version varchar(255) NOT NULL default '', - assigned int(10) unsigned NOT NULL default '0', - file text, - ptype varchar(255) NOT NULL default '', - PRIMARY KEY (nid), - KEY pid (pid), - KEY assigned (assigned) -) TYPE=MyISAM; - # # Table structure for table 'rating' # @@ -421,7 +402,7 @@ CREATE TABLE users ( sid varchar(32) NOT NULL default '', init varchar(64) default '', session varchar(32) NOT NULL default '', - extrafields text, + data text, PRIMARY KEY (uid), UNIQUE KEY name (name) ) TYPE=MyISAM; diff --git a/update.php b/update.php index 90564ea213c24c17ac9c11ac02f75e9f17618d3f..b053b0578a7838fb3c2d58c81aed3766a674d1f6 100644 --- a/update.php +++ b/update.php @@ -44,6 +44,7 @@ "2001-12-31" => "update_17", "2002-01-05" => "update_18", "2002-01-17" => "update_19", + "2002-01-27" => "update_20" ); // Update functions @@ -317,6 +318,10 @@ function update_19() { update_sql("ALTER TABLE users ADD data TEXT;"); } +function update_20() { + update_sql("INSERT INTO blocks SET name='User information', module='user', delta='0', status='2', weight='0', region='1', remove='0', path='';"); +} + /* ** System functions */ @@ -385,13 +390,12 @@ function update_page() { } print "<html><h1>Drupal update</h1>"; +// Security check: if (user_access(NULL)) { update_page(); } else { print message_access(); } - print "</html>"; - ?> \ No newline at end of file