Skip to content
Snippets Groups Projects
Commit cee3d5f0 authored by Goik Martin's avatar Goik Martin
Browse files

Cosmetics

parent baa4bf28
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ CREATE TABLE StudyCourse ( ...@@ -7,7 +7,7 @@ CREATE TABLE StudyCourse (
,shortName CHAR(3) UNIQUE ,shortName CHAR(3) UNIQUE
,program CHAR(1) /* Bachelor or Master program? */ ,program CHAR(1) /* Bachelor or Master program? */
,CHECK (program IN ('B', 'M')) /* Mysql does not really honour CHECK constraints, but pretend it does! */ ,CHECK (program IN ('B', 'M')) /* Mysql does not really honour CHECK constraints, but pretend it does! */
) ENGINE=InnoDB; );
CREATE TABLE Student ( CREATE TABLE Student (
id INTEGER NOT NULL PRIMARY KEY id INTEGER NOT NULL PRIMARY KEY
...@@ -15,7 +15,7 @@ CREATE TABLE Student ( ...@@ -15,7 +15,7 @@ CREATE TABLE Student (
,email VARCHAR(255) NOT NULL UNIQUE ,email VARCHAR(255) NOT NULL UNIQUE
,studyCourse INTEGER ,studyCourse INTEGER
,FOREIGN KEY(studyCourse) REFERENCES StudyCourse(id) ,FOREIGN KEY(studyCourse) REFERENCES StudyCourse(id)
) ENGINE=InnoDB; );
-- example data corresponding to university.xml -- -- example data corresponding to university.xml --
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment