Add authors in themes

This commit is contained in:
nemunaire 2016-01-23 12:21:02 +01:00
commit 859dbc68cb
4 changed files with 24 additions and 17 deletions

View file

@ -23,7 +23,8 @@ func DBCreate() error {
_, err := db.Exec(`
CREATE TABLE IF NOT EXISTS themes(
id_theme INTEGER NOT NULL PRIMARY KEY,
name TEXT NOT NULL
name TEXT NOT NULL UNIQUE,
authors TEXT NOT NULL
);
CREATE TABLE IF NOT EXISTS teams(
id_team INTEGER NOT NULL PRIMARY KEY,