Skip to content
Snippets Groups Projects
Commit dc8f6be4 authored by Kjartan Mannes's avatar Kjartan Mannes
Browse files

- added default value to enable user block to update.php

- did a new dump of the database from a clean upgrade as my local devel is
  a little infected with additional tables.
parent f9a508d5
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -202,7 +202,7 @@ CREATE TABLE item ( ...@@ -202,7 +202,7 @@ CREATE TABLE item (
# Table structure for table 'layout' # Table structure for table 'layout'
# #
CREATE 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 block varchar(64) DEFAULT '' NOT NULL
) TYPE=MyISAM; ) TYPE=MyISAM;
...@@ -316,25 +316,6 @@ CREATE TABLE poll_choices ( ...@@ -316,25 +316,6 @@ CREATE TABLE poll_choices (
PRIMARY KEY (chid) PRIMARY KEY (chid)
) TYPE=MyISAM; ) 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' # Table structure for table 'rating'
# #
...@@ -421,7 +402,7 @@ CREATE TABLE users ( ...@@ -421,7 +402,7 @@ CREATE TABLE users (
sid varchar(32) NOT NULL default '', sid varchar(32) NOT NULL default '',
init varchar(64) default '', init varchar(64) default '',
session varchar(32) NOT NULL default '', session varchar(32) NOT NULL default '',
extrafields text, data text,
PRIMARY KEY (uid), PRIMARY KEY (uid),
UNIQUE KEY name (name) UNIQUE KEY name (name)
) TYPE=MyISAM; ) TYPE=MyISAM;
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
"2001-12-31" => "update_17", "2001-12-31" => "update_17",
"2002-01-05" => "update_18", "2002-01-05" => "update_18",
"2002-01-17" => "update_19", "2002-01-17" => "update_19",
"2002-01-27" => "update_20"
); );
// Update functions // Update functions
...@@ -317,6 +318,10 @@ function update_19() { ...@@ -317,6 +318,10 @@ function update_19() {
update_sql("ALTER TABLE users ADD data TEXT;"); 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 ** System functions
*/ */
...@@ -385,13 +390,12 @@ function update_page() { ...@@ -385,13 +390,12 @@ function update_page() {
} }
print "<html><h1>Drupal update</h1>"; print "<html><h1>Drupal update</h1>";
// Security check:
if (user_access(NULL)) { if (user_access(NULL)) {
update_page(); update_page();
} }
else { else {
print message_access(); print message_access();
} }
print "</html>"; print "</html>";
?> ?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment