Skip to content
Snippets Groups Projects
Commit 780a345f authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Added some explanation to the top of the file and fixed a braino.
parent a0ddc1af
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
include_once "includes/common.inc"; include_once "includes/common.inc";
/*
** USAGE:
**
** - Point your browser to "http://www.site.com/update.php" and follow
** the instructions.
**
** NOTES:
**
** - If you upgrade from Drupal 3.00, you have to update your watchdog
** table manually before executing/starting this script. Simply do:
**
** sql> ALTER TABLE watchdog CHANGE user uid int(10) DEFAULT '0' NOT NULL;
** sql> ALTER TABLE watchdog CHANGE id wid int(5) DEFAULT '0' NOT NULL auto_increment;
**
** You'll also have to by-pass the access check near the bottom such
** that you can gain access to the form: search for "user_access()".
*/
if (!get_cfg_var("safe_mode")) { if (!get_cfg_var("safe_mode")) {
set_time_limit(180); set_time_limit(180);
} }
...@@ -249,6 +267,13 @@ function update_12() { ...@@ -249,6 +267,13 @@ function update_12() {
update_sql("ALTER TABLE book ADD format tinyint(2) DEFAULT '0';"); update_sql("ALTER TABLE book ADD format tinyint(2) DEFAULT '0';");
} }
function update_13() {
update_sql("ALTER TABLE referer RENAME AS referrer;");
update_sql("DROP TABLE blog;");
update_sql("DROP TABLE story;");
update_sql("DROP TABLE forum;");
}
function update_14() { function update_14() {
update_sql("CREATE TABLE directory ( update_sql("CREATE TABLE directory (
link varchar(255) DEFAULT '' NOT NULL, link varchar(255) DEFAULT '' NOT NULL,
...@@ -332,5 +357,7 @@ function update_page() { ...@@ -332,5 +357,7 @@ function 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.
Finish editing this message first!
Please register or to comment