Minor fix for DB (working)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
create table promotions (
|
||||
id integer primary key autoincrement,
|
||||
name text,
|
||||
endyear integer,
|
||||
current integer
|
||||
);
|
||||
@@ -9,6 +10,6 @@ create table students (
|
||||
firstName text,
|
||||
lastName text,
|
||||
mail text,
|
||||
promo integer,
|
||||
foreign key(promo) references promo(id)
|
||||
promotionId integer,
|
||||
foreign key(promotionId) references promotions(id)
|
||||
);
|
||||
Reference in New Issue
Block a user