Commit 6085e59d authored by jurgbohn's avatar jurgbohn

Places created before references in install.php

parent a39fe839
......@@ -44,6 +44,12 @@ if (isset($_POST['install'])) {
//Create tables
$res = $mdb2->query("CREATE TABLE Places(
location_uri VARCHAR(255),
latitude FLOAT,
longitude FLOAT,
country CHAR(2));");
$mdb2->query("CREATE TABLE Users (
username VARCHAR(64) PRIMARY KEY,
password VARCHAR(32) NOT NULL,
......@@ -154,12 +160,6 @@ if (isset($_POST['install'])) {
album VARCHAR(255),
track VARCHAR(255));");
$res = $mdb2->query("CREATE TABLE Places(
location_uri VARCHAR(255),
latitude FLOAT,
longitude FLOAT,
country CHAR(2));");
$res = $mdb2->query("CREATE TABLE Error(
id int(11) AUTO_INCREMENT KEY,
msg text,
......
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