瀏覽代碼

Merge branch 'master' of github.com:jakobsn/vulnapp

https
jakobsn 6 年之前
父節點
當前提交
d5ee00dc5f
共有 1 個檔案被更改,包括 1 行新增9 行删除
  1. +1
    -9
      mysql/sql/init.sql

+ 1
- 9
mysql/sql/init.sql 查看文件

@@ -14,12 +14,6 @@ CREATE TABLE users (
PRIMARY KEY (userid)
);

CREATE TABLE guestbook (
entryid INT UNSIGNED AUTO_INCREMENT,
text VARCHAR(255) NOT NULL,
PRIMARY KEY (entryid)
);

/*
* Project tables
*/
@@ -115,7 +109,7 @@ CREATE TABLE delivery (
);

CREATE TABLE task_offer (
offerid INT UNSIGNED AUTO_INCREMENT,1452 (23000): Cannot add or update a child row: a foreign key constraint fails (`db`.`tasks`, CONSTRAINT `tasks_ibfk_1` FOREIGN KEY (`teamid`) REFERENCES `teams` (`teamid`))
offerid INT UNSIGNED AUTO_INCREMENT,
taskid INT UNSIGNED NOT NULL,
title VARCHAR(200) NOT NULL,
price INT,
@@ -132,8 +126,6 @@ CREATE TABLE task_offer (

insert into users values (NULL, "admin", "password", "Admin Modsen", "ntnu", "12345678", "street", "trondheim", "trondheim", "1234", "norway");

insert into guestbook values (NULL, "Hello World");

insert into project_category values (NULL, "Test");

insert into teams values (0, "NO TEAM", FALSE);


Loading…
取消
儲存