Skip to content
Snippets Groups Projects
Commit 78bee959 authored by natrak's avatar natrak
Browse files

- Fixed the update sql file. Changes have to start with the oldest and progress

  to the newest. It would try to change tables that had not yet been created
  causing major problems to the node module. (NOTE: if you are doing a x.xx
  update to another x.xx version you might have to force MySQL to perform it
  using the -f flag. Remember to always backup your data before making
  changes).
- Prevented 2.00-to-x.xx.php from executing. It would simply give a PHP error
  and not execute. Will wait for Dries to return before attempting to make it
  functional or remove it.
parent 839cb3f4
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
<?php <?php
die("For now you will have to do the updates from the command line.")
include "includes/common.inc"; include "includes/common.inc";
......
# 19/04/2001: # 01/04/2001:
ALTER TABLE node ADD comment int(2) DEFAULT '1' NOT NULL; CREATE TABLE access (
ALTER TABLE node ADD promote int(2) DEFAULT '1' NOT NULL; id tinyint(10) DEFAULT '0' NOT NULL auto_increment,
ALTER TABLE category ADD promote int(2) unsigned DEFAULT '0' NOT NULL; mask varchar(255) DEFAULT '' NOT NULL,
reason text NOT NULL,
UNIQUE mask (mask),
PRIMARY KEY (id)
);
CREATE TABLE cvs ( CREATE TABLE book (
user varchar(32) DEFAULT '' NOT NULL, lid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
files text, nid int(10) unsigned DEFAULT '0' NOT NULL,
status int(2) DEFAULT '0' NOT NULL, body text NOT NULL,
message text, section int(10) DEFAULT '0' NOT NULL,
timestamp int(11) DEFAULT '0' NOT NULL parent int(10) DEFAULT '0' NOT NULL,
weight tinyint(3) DEFAULT '0' NOT NULL,
PRIMARY KEY (lid)
); );
# 14/04/2001: CREATE TABLE story (
ALTER TABLE node ADD cid int(10) unsigned DEFAULT '0' NOT NULL; lid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
ALTER TABLE node ADD tid int(10) unsigned DEFAULT '0' NOT NULL; nid int(10) unsigned DEFAULT '0' NOT NULL,
ALTER TABLE story DROP section; abstract text NOT NULL,
ALTER TABLE comments ADD KEY(lid); body text NOT NULL,
section varchar(64) DEFAULT '' NOT NULL,
PRIMARY KEY (lid)
);
CREATE TABLE category ( CREATE TABLE node (
cid int(10) unsigned DEFAULT '0' NOT NULL auto_increment, nid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
name varchar(32) DEFAULT '' NOT NULL, lid int(10) DEFAULT '0' NOT NULL,
pid int(10) DEFAULT '0' NOT NULL,
log text NOT NULL,
type varchar(16) DEFAULT '' NOT NULL, type varchar(16) DEFAULT '' NOT NULL,
post int(3) DEFAULT '0' NOT NULL, title varchar(128) DEFAULT '' NOT NULL,
dump int(3) DEFAULT '0' NOT NULL, score int(11) DEFAULT '0' NOT NULL,
expire int(3) DEFAULT '0' NOT NULL, votes int(11) DEFAULT '0' NOT NULL,
comment int(2) unsigned DEFAULT '0' NOT NULL, author int(6) DEFAULT '0' NOT NULL,
submission int(2) unsigned DEFAULT '0' NOT NULL, status int(4) DEFAULT '1' NOT NULL,
UNIQUE (name), timestamp int(11) NOT NULL,
PRIMARY KEY (cid) KEY type (lid, type),
KEY author (author),
KEY title (title, type),
PRIMARY KEY (nid)
); );
CREATE TABLE topic ( alter table users change stories nodes tinyint(2) DEFAULT '10';
tid int(10) unsigned DEFAULT '0' NOT NULL auto_increment, alter table comments drop link;
pid int(10) unsigned DEFAULT '0' NOT NULL,
name varchar(32) DEFAULT '' NOT NULL,
UNIQUE (name),
PRIMARY KEY (tid)
);
# 07/04/2001: # 07/04/2001:
CREATE TABLE page ( CREATE TABLE page (
...@@ -74,52 +83,42 @@ CREATE TABLE watchdog ( ...@@ -74,52 +83,42 @@ CREATE TABLE watchdog (
ALTER TABLE users CHANGE rating rating decimal(8,2); ALTER TABLE users CHANGE rating rating decimal(8,2);
# 01/04/2001: # 14/04/2001:
ALTER TABLE node ADD cid int(10) unsigned DEFAULT '0' NOT NULL;
ALTER TABLE node ADD tid int(10) unsigned DEFAULT '0' NOT NULL;
ALTER TABLE story DROP section;
ALTER TABLE comments ADD KEY(lid);
CREATE TABLE access ( CREATE TABLE category (
id tinyint(10) DEFAULT '0' NOT NULL auto_increment, cid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
mask varchar(255) DEFAULT '' NOT NULL, name varchar(32) DEFAULT '' NOT NULL,
reason text NOT NULL, type varchar(16) DEFAULT '' NOT NULL,
UNIQUE mask (mask), post int(3) DEFAULT '0' NOT NULL,
PRIMARY KEY (id) dump int(3) DEFAULT '0' NOT NULL,
expire int(3) DEFAULT '0' NOT NULL,
comment int(2) unsigned DEFAULT '0' NOT NULL,
submission int(2) unsigned DEFAULT '0' NOT NULL,
UNIQUE (name),
PRIMARY KEY (cid)
); );
CREATE TABLE book ( CREATE TABLE topic (
lid int(10) unsigned DEFAULT '0' NOT NULL auto_increment, tid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
nid int(10) unsigned DEFAULT '0' NOT NULL, pid int(10) unsigned DEFAULT '0' NOT NULL,
body text NOT NULL, name varchar(32) DEFAULT '' NOT NULL,
section int(10) DEFAULT '0' NOT NULL, UNIQUE (name),
parent int(10) DEFAULT '0' NOT NULL, PRIMARY KEY (tid)
weight tinyint(3) DEFAULT '0' NOT NULL,
PRIMARY KEY (lid)
); );
CREATE TABLE story ( # 19/04/2001:
lid int(10) unsigned DEFAULT '0' NOT NULL auto_increment, ALTER TABLE node ADD comment int(2) DEFAULT '1' NOT NULL;
nid int(10) unsigned DEFAULT '0' NOT NULL, ALTER TABLE node ADD promote int(2) DEFAULT '1' NOT NULL;
abstract text NOT NULL, ALTER TABLE category ADD promote int(2) unsigned DEFAULT '0' NOT NULL;
body text NOT NULL,
section varchar(64) DEFAULT '' NOT NULL,
PRIMARY KEY (lid)
);
CREATE TABLE node ( CREATE TABLE cvs (
nid int(10) unsigned DEFAULT '0' NOT NULL auto_increment, user varchar(32) DEFAULT '' NOT NULL,
lid int(10) DEFAULT '0' NOT NULL, files text,
pid int(10) DEFAULT '0' NOT NULL, status int(2) DEFAULT '0' NOT NULL,
log text NOT NULL, message text,
type varchar(16) DEFAULT '' NOT NULL, timestamp int(11) DEFAULT '0' NOT NULL
title varchar(128) DEFAULT '' NOT NULL,
score int(11) DEFAULT '0' NOT NULL,
votes int(11) DEFAULT '0' NOT NULL,
author int(6) DEFAULT '0' NOT NULL,
status int(4) DEFAULT '1' NOT NULL,
timestamp int(11) NOT NULL,
KEY type (lid, type),
KEY author (author),
KEY title (title, type),
PRIMARY KEY (nid)
); );
alter table users change stories nodes tinyint(2) DEFAULT '10';
alter table comments drop link;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment