From 78be90a300564b0c3dce0c9918bf1bf21a5ae44a Mon Sep 17 00:00:00 2001 From: jakobsn Date: Tue, 12 Nov 2019 11:42:03 +0100 Subject: [PATCH] Fix mysql bug and remove redundant file --- mysql/sql/init.sql | 4 ++-- templates/index.html | 34 ---------------------------------- 2 files changed, 2 insertions(+), 36 deletions(-) delete mode 100644 templates/index.html diff --git a/mysql/sql/init.sql b/mysql/sql/init.sql index 5c88a66..69efba1 100644 --- a/mysql/sql/init.sql +++ b/mysql/sql/init.sql @@ -25,7 +25,7 @@ CREATE TABLE guestbook ( */ CREATE TABLE teams ( - teamid INT AUTO_INCREMENT, + teamid INT UNSIGNED AUTO_INCREMENT, team_name VARCHAR(200) NOT NULL, write_permission BOOLEAN, PRIMARY KEY (teamid) @@ -86,7 +86,7 @@ CREATE TABLE tasks ( task_status VARCHAR(64) NOT NULL, -- This should be Waiting for delivery, Delivered and waiting for acceptance, Delivery has been accepted, awaiting payment, Payment for delivery is done or Declined delivery, please revise feedback VARCHAR(500) NULL, PRIMARY KEY (taskid), - FOREIGN KEY (teamid) REFERENCES teams(teamid) + FOREIGN KEY (teamid) REFERENCES teams(teamid), FOREIGN KEY (projectid) REFERENCES projects(projectid) ); diff --git a/templates/index.html b/templates/index.html deleted file mode 100644 index dac92c7..0000000 --- a/templates/index.html +++ /dev/null @@ -1,34 +0,0 @@ -$def with (login_form, friends) - - - Friends - - - - - - - -

Friends

- - Friends - -

Login, or become a friend!

- -
- $:login_form.render() -
- - - $if session.username: -

Logged in as $session.username

- Logout - -

Registered friends:

- - - -