1
0
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:
andreas-unleash 2023-08-17 17:33:52 +03:00
parent 494f372d32
commit 33e408e266
No known key found for this signature in database
GPG Key ID: DB82A1577B38F66B

View File

@ -5,8 +5,8 @@ exports.up = function (db, callback) {
`
CREATE TABLE IF NOT EXISTS client_applications_usage (
app_name VARCHAR(255) REFERENCES client_applications(app_name) ON DELETE CASCADE,
project VARCHAR(255) REFERENCES projects(id) NOT NULL default 'default',
environment VARCHAR(100) REFERENCES environments(name) NOT NULL default 'default',
project VARCHAR(255) NOT NULL,
environment VARCHAR(100) NOT NULL,
PRIMARY KEY(app_name, project, environment)
) ;
`,