aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-db/src
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-02-10 15:41:57 +0100
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-02-10 18:29:38 +0100
commit539323544aeeb1796a615e43c18051447fdcc1d7 (patch)
tree4e0dcc94a46e9c8b51df376182ac70cf261cfee1 /sonar-db/src
parentac2072c8343e6701761762e7ba02890395872db8 (diff)
downloadsonarqube-539323544aeeb1796a615e43c18051447fdcc1d7.tar.gz
sonarqube-539323544aeeb1796a615e43c18051447fdcc1d7.zip
SONAR-8752 add column ORGANIZATIONS.USER_ID
Diffstat (limited to 'sonar-db/src')
-rw-r--r--sonar-db/src/main/resources/org/sonar/db/version/rows-h2.sql1
-rw-r--r--sonar-db/src/main/resources/org/sonar/db/version/schema-h2.ddl1
2 files changed, 2 insertions, 0 deletions
diff --git a/sonar-db/src/main/resources/org/sonar/db/version/rows-h2.sql b/sonar-db/src/main/resources/org/sonar/db/version/rows-h2.sql
index 5051b8112d8..a6b2168a67b 100644
--- a/sonar-db/src/main/resources/org/sonar/db/version/rows-h2.sql
+++ b/sonar-db/src/main/resources/org/sonar/db/version/rows-h2.sql
@@ -528,6 +528,7 @@ INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('1511');
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('1512');
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('1513');
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('1514');
+INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('1516');
INSERT INTO USERS(ID, LOGIN, NAME, EMAIL, EXTERNAL_IDENTITY, EXTERNAL_IDENTITY_PROVIDER, USER_LOCAL, CRYPTED_PASSWORD, SALT, IS_ROOT, CREATED_AT, UPDATED_AT) VALUES (1, 'admin', 'Administrator', '', 'admin', 'sonarqube', true, 'a373a0e667abb2604c1fd571eb4ad47fe8cc0878', '48bc4b0d93179b5103fd3885ea9119498e9d161b', true, '1418215735482', '1418215735482');
ALTER TABLE USERS ALTER COLUMN ID RESTART WITH 2;
diff --git a/sonar-db/src/main/resources/org/sonar/db/version/schema-h2.ddl b/sonar-db/src/main/resources/org/sonar/db/version/schema-h2.ddl
index 742cdc0d75c..4c459333be0 100644
--- a/sonar-db/src/main/resources/org/sonar/db/version/schema-h2.ddl
+++ b/sonar-db/src/main/resources/org/sonar/db/version/schema-h2.ddl
@@ -6,6 +6,7 @@ CREATE TABLE "ORGANIZATIONS" (
"URL" VARCHAR(256),
"AVATAR_URL" VARCHAR(256),
"GUARDED" BOOLEAN NOT NULL,
+ "USER_ID" INTEGER,
"DEFAULT_PERM_TEMPLATE_PROJECT" VARCHAR(40),
"DEFAULT_PERM_TEMPLATE_VIEW" VARCHAR(40),
"CREATED_AT" BIGINT NOT NULL,