Skip to content
This repository
Browse code

Added 'drop' statements to DDL

  • Loading branch information...
commit 4c88009149984549462ef855340b6860de99ad6b 1 parent 0d50eed
Dave Cross authored February 03, 2014

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. 3  db/lystyng.sql
3  db/lystyng.sql
... ...
@@ -1,3 +1,4 @@
  1
+drop table if exists `user`;
1 2
 create table `user` (
2 3
   id integer primary key auto_increment,
3 4
   username varchar(20) not null,
@@ -6,6 +7,7 @@ create table `user` (
6 7
   password char(64) not null
7 8
 ) ENGINE=INNODB CHARSET=utf8;
8 9
 
  10
+drop table if exists `list`;
9 11
 create table list (
10 12
   id integer primary key auto_increment,
11 13
   title varchar(200) not null,
@@ -15,6 +17,7 @@ create table list (
15 17
   foreign key (user) references `user`(id)
16 18
 ) ENGINE=INNODB CHARSET=utf8;
17 19
 
  20
+drop table if exists `list_item`;
18 21
 create table list_item (
19 22
   id integer primary key auto_increment,
20 23
   title varchar(200) not null,

0 notes on commit 4c88009

Please sign in to comment.
Something went wrong with that request. Please try again.