aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-dao/src/schema/schema-sq.ddl
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2023-04-28 16:58:36 -0500
committersonartech <sonartech@sonarsource.com>2023-05-04 20:03:11 +0000
commit269eb98300821838ed90792726fe0246113e61ba (patch)
treef7d6adf130840c853ca4fe47699bca5f1b8ccc0f /server/sonar-db-dao/src/schema/schema-sq.ddl
parente0202e205709f1b06b56f7f108b12476860412d4 (diff)
downloadsonarqube-269eb98300821838ed90792726fe0246113e61ba.tar.gz
sonarqube-269eb98300821838ed90792726fe0246113e61ba.zip
SONAR-18917 Project analysis token isn't updated when project is rekeyed
Diffstat (limited to 'server/sonar-db-dao/src/schema/schema-sq.ddl')
-rw-r--r--server/sonar-db-dao/src/schema/schema-sq.ddl4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-db-dao/src/schema/schema-sq.ddl b/server/sonar-db-dao/src/schema/schema-sq.ddl
index 08a75b195be..4395b873456 100644
--- a/server/sonar-db-dao/src/schema/schema-sq.ddl
+++ b/server/sonar-db-dao/src/schema/schema-sq.ddl
@@ -994,9 +994,9 @@ CREATE TABLE "USER_TOKENS"(
"TOKEN_HASH" CHARACTER VARYING(255) NOT NULL,
"LAST_CONNECTION_DATE" BIGINT,
"CREATED_AT" BIGINT NOT NULL,
- "PROJECT_KEY" CHARACTER VARYING(255),
"TYPE" CHARACTER VARYING(100) NOT NULL,
- "EXPIRATION_DATE" BIGINT
+ "EXPIRATION_DATE" BIGINT,
+ "PROJECT_UUID" CHARACTER VARYING(40)
);
ALTER TABLE "USER_TOKENS" ADD CONSTRAINT "PK_USER_TOKENS" PRIMARY KEY("UUID");
CREATE UNIQUE INDEX "USER_TOKENS_USER_UUID_NAME" ON "USER_TOKENS"("USER_UUID" NULLS FIRST, "NAME" NULLS FIRST);