We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit e16f04dc authored by elleo's avatar elleo

Add missing ';' (fixes bug #26400)

Make use of int/INTEGER more consistent in database table creation
parent a9287190
...@@ -54,7 +54,7 @@ if (isset($_POST['install'])) { ...@@ -54,7 +54,7 @@ if (isset($_POST['install'])) {
$mdb2->query("CREATE TABLE Countries ( $mdb2->query("CREATE TABLE Countries (
country varchar(2) PRIMARY KEY, country varchar(2) PRIMARY KEY,
country_name varchar(200), country_name varchar(200),
wikipedia_en varchar(120));") wikipedia_en varchar(120));");
$mdb2->query("CREATE TABLE Users ( $mdb2->query("CREATE TABLE Users (
username VARCHAR(64) PRIMARY KEY, username VARCHAR(64) PRIMARY KEY,
...@@ -64,12 +64,12 @@ if (isset($_POST['install'])) { ...@@ -64,12 +64,12 @@ if (isset($_POST['install'])) {
bio TEXT, bio TEXT,
homepage VARCHAR(255), homepage VARCHAR(255),
location VARCHAR(255), location VARCHAR(255),
created int NOT NULL, created INTEGER NOT NULL,
modified INTEGER, modified INTEGER,
userlevel INTEGER DEFAULT 0, userlevel INTEGER DEFAULT 0,
webid_uri VARCHAR(255), webid_uri VARCHAR(255),
avatar_uri VARCHAR(255), avatar_uri VARCHAR(255),
active integer DEFAULT 1, active INTEGER DEFAULT 1,
location_uri VARCHAR(255) REFERENCES Places(location_uri))"); location_uri VARCHAR(255) REFERENCES Places(location_uri))");
$res = $mdb2->query("CREATE TABLE Groups ( $res = $mdb2->query("CREATE TABLE Groups (
...@@ -78,7 +78,7 @@ if (isset($_POST['install'])) { ...@@ -78,7 +78,7 @@ if (isset($_POST['install'])) {
fullname VARCHAR(255), fullname VARCHAR(255),
bio TEXT, bio TEXT,
homepage VARCHAR(255), homepage VARCHAR(255),
created int NOT NULL, created INTEGER NOT NULL,
modified INTEGER, modified INTEGER,
avatar_uri VARCHAR(255), avatar_uri VARCHAR(255),
grouptype INTEGER)"); grouptype INTEGER)");
...@@ -86,7 +86,7 @@ if (isset($_POST['install'])) { ...@@ -86,7 +86,7 @@ if (isset($_POST['install'])) {
$res = $mdb2->query("CREATE TABLE Group_Members ( $res = $mdb2->query("CREATE TABLE Group_Members (
groupname VARCHAR(64) REFERENCES Groups(groupname), groupname VARCHAR(64) REFERENCES Groups(groupname),
member VARCHAR(64) REFERENCES Users(username), member VARCHAR(64) REFERENCES Users(username),
joined int NOT NULL"); joined INTEGER NOT NULL");
$mdb2->query("CREATE TABLE AccountActivation( $mdb2->query("CREATE TABLE AccountActivation(
username VARCHAR(64), username VARCHAR(64),
...@@ -206,15 +206,15 @@ if (isset($_POST['install'])) { ...@@ -206,15 +206,15 @@ if (isset($_POST['install'])) {
track VARCHAR(255))"); track VARCHAR(255))");
$res = $mdb2->query("CREATE TABLE Error( $res = $mdb2->query("CREATE TABLE Error(
id int(11) AUTO_INCREMENT KEY, id INTEGER(11) AUTO_INCREMENT KEY,
msg text, msg TEXT,
data text, data TEXT,
time int)"); time INTEGER)");
$res = $mdb2->query("CREATE TABLE Recovery_Request( $res = $mdb2->query("CREATE TABLE Recovery_Request(
username VARCHAR(64), username VARCHAR(64),
email VARCHAR(255), email VARCHAR(255),
code VARCHAR(32), code VARCHAR(32),
expires int, expires INTEGER,
PRIMARY KEY(username))"); PRIMARY KEY(username))");
$res = $mdb2->query("CREATE TABLE Radio_Sessions( $res = $mdb2->query("CREATE TABLE Radio_Sessions(
......
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