Fix schema
PRIMARY KEY est toujours UNIQUE et NOT NULL, alors NOT NULL est redondant Assigner type VARCHAR(6) à presences.programme_id
This commit is contained in:
parent
2af75e1ecf
commit
20fa0e10d1
1 changed files with 2 additions and 2 deletions
|
@ -3,9 +3,9 @@ package dbschema
|
|||
|
||||
const Schema string = `
|
||||
CREATE TABLE IF NOT EXISTS presences (
|
||||
id VARCHAR(7) PRIMARY KEY NOT NULL,
|
||||
id VARCHAR(7) PRIMARY KEY,
|
||||
at TIMESTAMP NOT NULL,
|
||||
name VARCHAR(50) NOT NULL,
|
||||
programme_id NOT NULL
|
||||
programme_id VARCHAR(6) NOT NULL
|
||||
);
|
||||
`
|
||||
|
|
Reference in a new issue