mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user