aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-core
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2017-03-31 15:44:15 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2017-04-13 11:51:55 +0200
commit7248330a003261db5c27b683f74d759169191a45 (patch)
tree0fc860e626d225cad0c66e5acba456e2927c8b7b /server/sonar-db-core
parent94dda03d26228c7c9bb11164fc9825e23767471e (diff)
downloadsonarqube-7248330a003261db5c27b683f74d759169191a45.tar.gz
sonarqube-7248330a003261db5c27b683f74d759169191a45.zip
SONAR-9019 Add ORGANIZATIONS.DEFAULT_GROUP_ID column
Diffstat (limited to 'server/sonar-db-core')
-rw-r--r--server/sonar-db-core/src/main/resources/org/sonar/db/version/rows-h2.sql1
-rw-r--r--server/sonar-db-core/src/main/resources/org/sonar/db/version/schema-h2.ddl1
2 files changed, 2 insertions, 0 deletions
diff --git a/server/sonar-db-core/src/main/resources/org/sonar/db/version/rows-h2.sql b/server/sonar-db-core/src/main/resources/org/sonar/db/version/rows-h2.sql
index 951d88be4b7..fda9e9f6e99 100644
--- a/server/sonar-db-core/src/main/resources/org/sonar/db/version/rows-h2.sql
+++ b/server/sonar-db-core/src/main/resources/org/sonar/db/version/rows-h2.sql
@@ -557,6 +557,7 @@ INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('1620');
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('1621');
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('1622');
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('1623');
+INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('1624');
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', false, '1418215735482', '1418215735482');
ALTER TABLE USERS ALTER COLUMN ID RESTART WITH 2;
diff --git a/server/sonar-db-core/src/main/resources/org/sonar/db/version/schema-h2.ddl b/server/sonar-db-core/src/main/resources/org/sonar/db/version/schema-h2.ddl
index d662a5fd67b..1571813a23f 100644
--- a/server/sonar-db-core/src/main/resources/org/sonar/db/version/schema-h2.ddl
+++ b/server/sonar-db-core/src/main/resources/org/sonar/db/version/schema-h2.ddl
@@ -9,6 +9,7 @@ CREATE TABLE "ORGANIZATIONS" (
"USER_ID" INTEGER,
"DEFAULT_PERM_TEMPLATE_PROJECT" VARCHAR(40),
"DEFAULT_PERM_TEMPLATE_VIEW" VARCHAR(40),
+ "DEFAULT_GROUP_ID" INTEGER,
"CREATED_AT" BIGINT NOT NULL,
"UPDATED_AT" BIGINT NOT NULL
);