diff --git a/deploy/db_migrations/identity-svc/0001_create_base_tables.up.sql b/deploy/db_migrations/identity-svc/0001_create_base_tables.up.sql index 6cca0ef..dfe1c2b 100644 --- a/deploy/db_migrations/identity-svc/0001_create_base_tables.up.sql +++ b/deploy/db_migrations/identity-svc/0001_create_base_tables.up.sql @@ -45,9 +45,10 @@ CREATE TABLE identity.url_access id uuid NOT NULL DEFAULT uuid_generate_v4(), roles json NOT NULL, url character varying(255) NOT NULL, + method character varying(10) NOT NULL, service character varying(100) NOT NULL, PRIMARY KEY (id), - UNIQUE (url, service) + UNIQUE (url, method, service) );