Kaynağa Gözat

Fix mysql bug and remove redundant file

https
jakobsn 6 yıl önce
ebeveyn
işleme
78be90a300
2 değiştirilmiş dosya ile 2 ekleme ve 36 silme
  1. +2
    -2
      mysql/sql/init.sql
  2. +0
    -34
      templates/index.html

+ 2
- 2
mysql/sql/init.sql Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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>

Yükleniyor…
İptal
Kaydet