From 276d17e51d2124128e883d4cd6188dc02b0328af Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Thu, 23 Oct 2025 08:54:59 +0200 Subject: [PATCH] Updated migration --- .../db_migrations/identity-svc/0001_create_base_tables.up.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) );