aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-db/src
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-02-08 16:36:36 +0100
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-02-10 09:48:36 +0100
commita7efc154cbe6f89074996ff9d96f59ebab4f208a (patch)
tree8d045a8f07c0d094c2c795005e0f7ce57e443c26 /sonar-db/src
parented1a03a47232447cc27821afcb2c2cb8794b4f86 (diff)
downloadsonarqube-a7efc154cbe6f89074996ff9d96f59ebab4f208a.tar.gz
sonarqube-a7efc154cbe6f89074996ff9d96f59ebab4f208a.zip
SONAR-8755 make default organization guarded
so that it can only be deleted by root
Diffstat (limited to 'sonar-db/src')
-rw-r--r--sonar-db/src/main/resources/org/sonar/db/version/rows-h2.sql3
1 files changed, 2 insertions, 1 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 9ebdb68b1c9..0d00f5a933b 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
@@ -526,11 +526,12 @@ INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('1509');
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('1510');
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('1511');
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('1512');
+INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('1513');
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;
-INSERT INTO ORGANIZATIONS (UUID, KEE, NAME, GUARDED, CREATED_AT, UPDATED_AT) VALUES ('AVdqnciQUUs7Zd3KPvFD', 'default-organization', 'Default Organization', false, '1474962596482', '1474962596482');
+INSERT INTO ORGANIZATIONS (UUID, KEE, NAME, GUARDED, CREATED_AT, UPDATED_AT) VALUES ('AVdqnciQUUs7Zd3KPvFD', 'default-organization', 'Default Organization', true, '1474962596482', '1474962596482');
INSERT INTO INTERNAL_PROPERTIES (KEE, IS_EMPTY, TEXT_VALUE, CREATED_AT) VALUES ('organization.default', false, 'AVdqnciQUUs7Zd3KPvFD', '1474962596482');
INSERT INTO GROUPS(ID, ORGANIZATION_UUID, NAME, DESCRIPTION, CREATED_AT, UPDATED_AT) VALUES (1, 'AVdqnciQUUs7Zd3KPvFD', 'sonar-administrators', 'System administrators', '2011-09-26 22:27:51.0', '2011-09-26 22:27:51.0');