瀏覽代碼

Fix mysql bug and remove redundant file

https
jakobsn 6 年之前
父節點
當前提交
78be90a300
共有 2 個檔案被更改,包括 2 行新增36 行删除
  1. +2
    -2
      mysql/sql/init.sql
  2. +0
    -34
      templates/index.html

+ 2
- 2
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)
);



+ 0
- 34
templates/index.html 查看文件

@@ -1,34 +0,0 @@
$def with (login_form, friends)

<head>
<title>Friends</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="static/styles/stylesheet.css">

</head>

<body>

<h1>Friends</h1>

<img src="static/images/friends.jpeg" alt="Friends">

<h3>Login, or become a friend!</h3>

<form method="POST">
$:login_form.render()
</form>

$if session.username:
<h1>Logged in as $session.username</h1>
<a href="logout">Logout</a>

<h3>Registered friends:</h3>
<ul>
$for name in friends:
<li id="t$name.userid">$name.username</li>
</ul>

</body>

Loading…
取消
儲存