mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-24 17:51:14 +02:00
feat: create client_applications_usage table migration
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
This commit is contained in:
parent
494f372d32
commit
33e408e266
@ -5,8 +5,8 @@ exports.up = function (db, callback) {
|
|||||||
`
|
`
|
||||||
CREATE TABLE IF NOT EXISTS client_applications_usage (
|
CREATE TABLE IF NOT EXISTS client_applications_usage (
|
||||||
app_name VARCHAR(255) REFERENCES client_applications(app_name) ON DELETE CASCADE,
|
app_name VARCHAR(255) REFERENCES client_applications(app_name) ON DELETE CASCADE,
|
||||||
project VARCHAR(255) REFERENCES projects(id) NOT NULL default 'default',
|
project VARCHAR(255) NOT NULL,
|
||||||
environment VARCHAR(100) REFERENCES environments(name) NOT NULL default 'default',
|
environment VARCHAR(100) NOT NULL,
|
||||||
PRIMARY KEY(app_name, project, environment)
|
PRIMARY KEY(app_name, project, environment)
|
||||||
) ;
|
) ;
|
||||||
`,
|
`,
|
||||||
|
Loading…
Reference in New Issue
Block a user