ID should be primary key on apps model and name should be unique. This allows for renaming apps in the future. (#1048)

This commit is contained in:
Richard Connon
2018-06-07 12:00:16 +01:00
committed by GitHub
parent 242f1571f3
commit 80569c8f21
2 changed files with 86 additions and 2 deletions

View File

@@ -59,8 +59,8 @@ var tables = [...]string{`CREATE TABLE IF NOT EXISTS routes (
);`,
`CREATE TABLE IF NOT EXISTS apps (
id varchar(256),
name varchar(256) NOT NULL PRIMARY KEY,
id varchar(256) NOT NULL PRIMARY KEY,
name varchar(256) NOT NULL UNIQUE,
config text NOT NULL,
annotations text NOT NULL,
syslog_url text,