Commit 9d3d374b authored by Dries's avatar Dries
Browse files

- Patch by Killes: drop the 'attributes' field from the 'users' table.  It
  is no longer used.
parent 32e46a37
......@@ -202,7 +202,6 @@ CREATE TABLE [dbo].[node] (
[promote] [int] NOT NULL ,
[moderate] [int] NOT NULL ,
[users] [text] NULL ,
[attributes] [varchar] (255) NULL ,
[teaser] [text] NOT NULL ,
[body] [text] NOT NULL ,
[changed] [int] NOT NULL ,
......
......@@ -288,7 +288,6 @@ CREATE TABLE node (
promote int(2) NOT NULL default '0',
moderate int(2) NOT NULL default '0',
users longtext NOT NULL,
attributes varchar(255) NOT NULL default '',
teaser longtext NOT NULL,
body longtext NOT NULL,
changed int(11) NOT NULL default '0',
......
......@@ -277,7 +277,6 @@ CREATE TABLE node (
promote integer NOT NULL default '0',
moderate integer NOT NULL default '0',
users text NOT NULL default '',
attributes varchar(255) NOT NULL default '',
teaser text NOT NULL default '',
body text NOT NULL default '',
changed integer NOT NULL default '0',
......
......@@ -67,7 +67,8 @@
"2004-01-06" => "update_75",
"2004-01-11" => "update_76",
"2004-01-13" => "update_77",
"2004-02-03" => "update_78"
"2004-02-03" => "update_78",
"2004-02-21" => "update_79"
);
function update_32() {
......@@ -517,7 +518,7 @@ function update_67() {
// Taking no action. PostgreSQL is not always capable of dropping columns.
}
else {
update_sql("ALTER TABLE users DROP homepage");
update_sql("ALTER TABLE {users} DROP homepage");
}
}
......@@ -528,7 +529,7 @@ function update_68() {
else {
$max = db_result(db_query("SELECT MAX(aid) FROM {access};"));
update_sql("INSERT INTO {sequences} (name, id) VALUES ('access_aid', '$max')");
update_sql("ALTER TABLE access CHANGE aid aid tinyint(10) NOT NULL ");
update_sql("ALTER TABLE {access} CHANGE aid aid tinyint(10) NOT NULL ");
}
}
......@@ -671,6 +672,15 @@ function update_78() {
}
}
function update_79() {
if ($GLOBALS["db_type"] == "pgsql") {
// Taking no action. PostgreSQL is not always capable of dropping columns.
}
else {
update_sql("ALTER TABLE {node} DROP attributes");
}
}
/*
** System functions
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment