@@ -20,12 +20,15 @@ | |||
package org.sonar.server.platform.db.migration.version; | |||
import org.sonar.core.platform.Module; | |||
import org.sonar.server.platform.db.migration.version.v62.DbVersion62; | |||
import org.sonar.server.platform.db.migration.version.v63.DbVersion63; | |||
public class DbVersionModule extends Module { | |||
@Override | |||
protected void configureModule() { | |||
add(DbVersion63.class); | |||
add( | |||
DbVersion62.class, | |||
DbVersion63.class); | |||
} | |||
} |
@@ -17,12 +17,12 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.sonar.db.Database; | |||
import org.sonar.db.version.AddColumnsBuilder; | |||
import org.sonar.db.version.DdlChange; | |||
import org.sonar.server.platform.db.migration.step.DdlChange; | |||
import static org.sonar.db.version.BooleanColumnDef.newBooleanColumnDefBuilder; | |||
@@ -17,13 +17,13 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.sonar.db.Database; | |||
import org.sonar.db.version.AddColumnsBuilder; | |||
import org.sonar.db.version.DdlChange; | |||
import org.sonar.db.version.VarcharColumnDef; | |||
import org.sonar.server.platform.db.migration.step.DdlChange; | |||
import static org.sonar.db.version.VarcharColumnDef.newVarcharColumnDefBuilder; | |||
@@ -17,13 +17,13 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.sonar.db.Database; | |||
import org.sonar.db.version.AddColumnsBuilder; | |||
import org.sonar.db.version.DdlChange; | |||
import org.sonar.db.version.VarcharColumnDef; | |||
import org.sonar.server.platform.db.migration.step.DdlChange; | |||
import static org.sonar.db.version.VarcharColumnDef.newVarcharColumnDefBuilder; | |||
@@ -17,13 +17,13 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.sonar.db.Database; | |||
import org.sonar.db.version.AddColumnsBuilder; | |||
import org.sonar.db.version.DdlChange; | |||
import org.sonar.db.version.VarcharColumnDef; | |||
import org.sonar.server.platform.db.migration.step.DdlChange; | |||
import static org.sonar.db.version.VarcharColumnDef.newVarcharColumnDefBuilder; | |||
@@ -17,13 +17,13 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.sonar.db.Database; | |||
import org.sonar.db.version.AddColumnsBuilder; | |||
import org.sonar.db.version.DdlChange; | |||
import org.sonar.db.version.VarcharColumnDef; | |||
import org.sonar.server.platform.db.migration.step.DdlChange; | |||
import static org.sonar.db.version.VarcharColumnDef.newVarcharColumnDefBuilder; | |||
@@ -17,16 +17,16 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.sonar.api.utils.System2; | |||
import org.sonar.core.util.UuidFactory; | |||
import org.sonar.db.Database; | |||
import org.sonar.db.version.BaseDataChange; | |||
import org.sonar.server.platform.db.migration.step.DataChange; | |||
import org.sonar.db.version.Select; | |||
public class CreateDefaultOrganization extends BaseDataChange { | |||
public class CreateDefaultOrganization extends DataChange { | |||
private static final String KEY_DEFAULT_ORGANIZATION = "default-organization"; | |||
private static final String INTERNAL_PROPERTY_DEFAULT_ORGANIZATION = "organization.default"; | |||
@@ -17,14 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.sonar.db.Database; | |||
import org.sonar.db.version.CreateIndexBuilder; | |||
import org.sonar.db.version.CreateTableBuilder; | |||
import org.sonar.db.version.DdlChange; | |||
import org.sonar.db.version.VarcharColumnDef; | |||
import org.sonar.server.platform.db.migration.step.DdlChange; | |||
import static org.sonar.db.version.BigIntegerColumnDef.newBigIntegerColumnDefBuilder; | |||
import static org.sonar.db.version.VarcharColumnDef.UUID_SIZE; |
@@ -17,14 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.sonar.db.Database; | |||
import org.sonar.db.version.CreateIndexBuilder; | |||
import org.sonar.db.version.CreateTableBuilder; | |||
import org.sonar.db.version.DdlChange; | |||
import org.sonar.db.version.VarcharColumnDef; | |||
import org.sonar.server.platform.db.migration.step.DdlChange; | |||
import static org.sonar.db.version.BigIntegerColumnDef.newBigIntegerColumnDefBuilder; | |||
import static org.sonar.db.version.BooleanColumnDef.newBooleanColumnDefBuilder; |
@@ -0,0 +1,54 @@ | |||
/* | |||
* SonarQube | |||
* Copyright (C) 2009-2016 SonarSource SA | |||
* mailto:contact AT sonarsource DOT com | |||
* | |||
* This program is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU Lesser General Public | |||
* License as published by the Free Software Foundation; either | |||
* version 3 of the License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
* Lesser General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Lesser General Public License | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import org.sonar.server.platform.db.migration.step.MigrationStepRegistry; | |||
import org.sonar.server.platform.db.migration.version.DbVersion; | |||
public class DbVersion62 implements DbVersion { | |||
@Override | |||
public void addSteps(MigrationStepRegistry registry) { | |||
registry | |||
.add(1400, "Create table ORGANIZATIONS", CreateTableOrganizations.class) | |||
.add(1401, "Create default organization", CreateDefaultOrganization.class) | |||
.add(1402, "Delete permission shareDashboard", DeletePermissionShareDashboard.class) | |||
.add(1403, "Add column GROUPS.ORGANIZATION_UUID", AddOrganizationUuidToGroups.class) | |||
.add(1404, "Add column USERS.IS_ROOT", AddIsRootColumnOnTableUsers.class) | |||
.add(1405, "Populate column USERS.IS_ROOT", PopulateIsRootColumnOnTableUsers.class) | |||
.add(1406, "Make column USERS.IS_ROOT not nullable", MakeRootColumnNotNullOnTableUsers.class) | |||
.add(1407, "Populate column GROUPS.ORGANIZATION_UUID", PopulateOrganizationUuidOfGroups.class) | |||
.add(1408, "Make column GROUPS.ORGANIZATION_UUID not nullable", MakeOrganizationUuidNotNullOnGroups.class) | |||
.add(1409, "Add column USER_ROLES.ORGANIZATION_UUID", AddOrganizationUuidToUserRoles.class) | |||
.add(1410, "Populate column USER_ROLES.ORGANIZATION_UUID", PopulateOrganizationUuidOfUserRoles.class) | |||
.add(1411, "Make column USER_ROLES.ORGANIZATION_UUID not nullable", MakeOrganizationUuidNotNullOnUserRoles.class) | |||
.add(1412, "Add column PERMISSION_TEMPLATES.ORGANIZATION_UUID", AddOrganizationUuidToPermissionTemplates.class) | |||
.add(1413, "Populate column PERMISSION_TEMPLATES.ORGANIZATION_UUID", PopulateOrganizationUuidOfPermissionTemplates.class) | |||
.add(1414, "Make column PERMISSION_TEMPLATES.ORGANIZATION_UUID not nullable", MakeOrganizationUuidNotNullOnPermissionTemplates.class) | |||
.add(1415, "Add column GROUP_ROLES.ORGANIZATION_UUID", AddOrganizationUuidToGroupRoles.class) | |||
.add(1416, "Populate column GROUP_ROLES.ORGANIZATION_UUID", PopulateOrganizationUuidOfGroupRoles.class) | |||
.add(1417, "Make column GROUP_ROLES.ORGANIZATION_UUID not nullable", MakeOrganizationUuidNotNullOnGroupRoles.class) | |||
.add(1418, "Add ORGANIZATION_UUID to index uniq_group_roles", IncludeOrganizationUuidInUniqueIndexOfGroupRoles.class) | |||
.add(1419, "Update qualigate conditions on coverage", UpdateQualityGateConditionsOnCoverage.class) | |||
.add(1420, "Drop tables related to dashboards", DropRelatedDashboardTables.class) | |||
.add(1421, "Drop tables related to measure filters", DropMeasureFiltersTables.class) | |||
.add(1422, "Drop tables related to issue filters", DropIssueFiltersTables.class) | |||
.add(1423, "Create table WEBHOOK_DELIVERIES", CreateTableWebhookDeliveries.class); | |||
} | |||
} |
@@ -17,14 +17,14 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.sonar.db.Database; | |||
import org.sonar.db.version.BaseDataChange; | |||
import org.sonar.server.platform.db.migration.step.DataChange; | |||
import org.sonar.db.version.MassUpdate; | |||
public class DeletePermissionShareDashboard extends BaseDataChange { | |||
public class DeletePermissionShareDashboard extends DataChange { | |||
private static final String PERMISSION = "shareDashboard"; | |||
@@ -17,7 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import com.google.common.collect.ImmutableList; | |||
import java.sql.Connection; | |||
@@ -27,8 +27,8 @@ import org.sonar.api.utils.log.Logger; | |||
import org.sonar.api.utils.log.Loggers; | |||
import org.sonar.db.Database; | |||
import org.sonar.db.DatabaseUtils; | |||
import org.sonar.db.version.DdlChange; | |||
import org.sonar.db.version.DropTableBuilder; | |||
import org.sonar.server.platform.db.migration.step.DdlChange; | |||
import static org.sonar.core.util.stream.Collectors.toList; | |||
@@ -17,7 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import com.google.common.collect.ImmutableList; | |||
import java.sql.Connection; | |||
@@ -27,8 +27,8 @@ import org.sonar.api.utils.log.Logger; | |||
import org.sonar.api.utils.log.Loggers; | |||
import org.sonar.db.Database; | |||
import org.sonar.db.DatabaseUtils; | |||
import org.sonar.db.version.DdlChange; | |||
import org.sonar.db.version.DropTableBuilder; | |||
import org.sonar.server.platform.db.migration.step.DdlChange; | |||
import static org.sonar.core.util.stream.Collectors.toList; | |||
@@ -17,7 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import com.google.common.collect.ImmutableList; | |||
import java.sql.Connection; | |||
@@ -27,8 +27,8 @@ import org.sonar.api.utils.log.Logger; | |||
import org.sonar.api.utils.log.Loggers; | |||
import org.sonar.db.Database; | |||
import org.sonar.db.DatabaseUtils; | |||
import org.sonar.db.version.DdlChange; | |||
import org.sonar.db.version.DropTableBuilder; | |||
import org.sonar.server.platform.db.migration.step.DdlChange; | |||
import static org.sonar.core.util.stream.Collectors.toList; | |||
@@ -17,13 +17,13 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.sonar.db.Database; | |||
import org.sonar.db.version.CreateIndexBuilder; | |||
import org.sonar.db.version.DdlChange; | |||
import org.sonar.db.version.DropIndexBuilder; | |||
import org.sonar.server.platform.db.migration.step.DdlChange; | |||
import static org.sonar.db.version.IntegerColumnDef.newIntegerColumnDefBuilder; | |||
import static org.sonar.db.version.VarcharColumnDef.newVarcharColumnDefBuilder; |
@@ -17,12 +17,12 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.sonar.db.Database; | |||
import org.sonar.db.version.AlterColumnsBuilder; | |||
import org.sonar.db.version.DdlChange; | |||
import org.sonar.server.platform.db.migration.step.DdlChange; | |||
import static org.sonar.db.version.VarcharColumnDef.UUID_SIZE; | |||
import static org.sonar.db.version.VarcharColumnDef.newVarcharColumnDefBuilder; |
@@ -17,12 +17,12 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.sonar.db.Database; | |||
import org.sonar.db.version.AlterColumnsBuilder; | |||
import org.sonar.db.version.DdlChange; | |||
import org.sonar.server.platform.db.migration.step.DdlChange; | |||
import static org.sonar.db.version.VarcharColumnDef.UUID_SIZE; | |||
import static org.sonar.db.version.VarcharColumnDef.newVarcharColumnDefBuilder; |
@@ -17,12 +17,12 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.sonar.db.Database; | |||
import org.sonar.db.version.AlterColumnsBuilder; | |||
import org.sonar.db.version.DdlChange; | |||
import org.sonar.server.platform.db.migration.step.DdlChange; | |||
import static org.sonar.db.version.VarcharColumnDef.UUID_SIZE; | |||
import static org.sonar.db.version.VarcharColumnDef.newVarcharColumnDefBuilder; |
@@ -17,12 +17,12 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.sonar.db.Database; | |||
import org.sonar.db.version.AlterColumnsBuilder; | |||
import org.sonar.db.version.DdlChange; | |||
import org.sonar.server.platform.db.migration.step.DdlChange; | |||
import static org.sonar.db.version.VarcharColumnDef.UUID_SIZE; | |||
import static org.sonar.db.version.VarcharColumnDef.newVarcharColumnDefBuilder; |
@@ -17,12 +17,12 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.sonar.db.Database; | |||
import org.sonar.db.version.AlterColumnsBuilder; | |||
import org.sonar.db.version.DdlChange; | |||
import org.sonar.server.platform.db.migration.step.DdlChange; | |||
import static org.sonar.db.version.BooleanColumnDef.newBooleanColumnDefBuilder; | |||
@@ -17,11 +17,11 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.sonar.db.Database; | |||
import org.sonar.db.version.BaseDataChange; | |||
import org.sonar.server.platform.db.migration.step.DataChange; | |||
import org.sonar.db.version.MassUpdate; | |||
import org.sonar.db.version.Select; | |||
import org.sonar.db.version.SqlStatement; | |||
@@ -29,7 +29,7 @@ import org.sonar.db.version.SqlStatement; | |||
/** | |||
* All users with "admin" role, either directly or via a group, are made root. All others are made non root. | |||
*/ | |||
public class PopulateIsRootColumnOnTableUsers extends BaseDataChange { | |||
public class PopulateIsRootColumnOnTableUsers extends DataChange { | |||
private static final String ROLE_ADMIN = "admin"; | |||
@@ -41,21 +41,21 @@ public class PopulateIsRootColumnOnTableUsers extends BaseDataChange { | |||
public void execute(Context context) throws SQLException { | |||
MassUpdate massUpdate = context.prepareMassUpdate(); | |||
String sql = "select distinct ur.user_id as id" + | |||
" from user_roles ur" + | |||
" inner join users u on u.id=ur.user_id and u.active=?" + | |||
" where" + | |||
" ur.role = ?" + | |||
" and ur.resource_id is null" + | |||
" union all" + | |||
" select distinct u.id as id" + | |||
" from users u" + | |||
" inner join groups_users gu on gu.user_id = u.id" + | |||
" inner join group_roles gr on gr.group_id = gu.group_id" + | |||
" inner join groups g on g.id = gu.group_id" + | |||
" where" + | |||
" gr.role = ?" + | |||
" and gr.resource_id is null" + | |||
" and u.active = ?"; | |||
" from user_roles ur" + | |||
" inner join users u on u.id=ur.user_id and u.active=?" + | |||
" where" + | |||
" ur.role = ?" + | |||
" and ur.resource_id is null" + | |||
" union all" + | |||
" select distinct u.id as id" + | |||
" from users u" + | |||
" inner join groups_users gu on gu.user_id = u.id" + | |||
" inner join group_roles gr on gr.group_id = gu.group_id" + | |||
" inner join groups g on g.id = gu.group_id" + | |||
" where" + | |||
" gr.role = ?" + | |||
" and gr.resource_id is null" + | |||
" and u.active = ?"; | |||
massUpdate.select(sql) | |||
.setBoolean(1, true) | |||
.setString(2, ROLE_ADMIN) |
@@ -17,17 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.sonar.db.Database; | |||
import org.sonar.db.version.BaseDataChange; | |||
import org.sonar.server.platform.db.migration.step.DataChange; | |||
import org.sonar.db.version.MassUpdate; | |||
import org.sonar.db.version.Select; | |||
import static com.google.common.base.Preconditions.checkState; | |||
public class PopulateOrganizationUuidOfGroupRoles extends BaseDataChange { | |||
public class PopulateOrganizationUuidOfGroupRoles extends DataChange { | |||
private static final String INTERNAL_PROPERTY_DEFAULT_ORGANIZATION = "organization.default"; | |||
@@ -17,19 +17,19 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.Date; | |||
import java.sql.SQLException; | |||
import org.sonar.api.utils.System2; | |||
import org.sonar.db.Database; | |||
import org.sonar.db.version.BaseDataChange; | |||
import org.sonar.server.platform.db.migration.step.DataChange; | |||
import org.sonar.db.version.MassUpdate; | |||
import org.sonar.db.version.Select; | |||
import static com.google.common.base.Preconditions.checkState; | |||
public class PopulateOrganizationUuidOfGroups extends BaseDataChange { | |||
public class PopulateOrganizationUuidOfGroups extends DataChange { | |||
private static final String INTERNAL_PROPERTY_DEFAULT_ORGANIZATION = "organization.default"; | |||
@@ -17,19 +17,19 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.Date; | |||
import java.sql.SQLException; | |||
import org.sonar.api.utils.System2; | |||
import org.sonar.db.Database; | |||
import org.sonar.db.version.BaseDataChange; | |||
import org.sonar.server.platform.db.migration.step.DataChange; | |||
import org.sonar.db.version.MassUpdate; | |||
import org.sonar.db.version.Select; | |||
import static com.google.common.base.Preconditions.checkState; | |||
public class PopulateOrganizationUuidOfPermissionTemplates extends BaseDataChange { | |||
public class PopulateOrganizationUuidOfPermissionTemplates extends DataChange { | |||
private static final String INTERNAL_PROPERTY_DEFAULT_ORGANIZATION = "organization.default"; | |||
@@ -17,17 +17,17 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.sonar.db.Database; | |||
import org.sonar.db.version.BaseDataChange; | |||
import org.sonar.server.platform.db.migration.step.DataChange; | |||
import org.sonar.db.version.MassUpdate; | |||
import org.sonar.db.version.Select; | |||
import static com.google.common.base.Preconditions.checkState; | |||
public class PopulateOrganizationUuidOfUserRoles extends BaseDataChange { | |||
public class PopulateOrganizationUuidOfUserRoles extends DataChange { | |||
private static final String INTERNAL_PROPERTY_DEFAULT_ORGANIZATION = "organization.default"; | |||
@@ -17,7 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import com.google.common.collect.ImmutableList; | |||
import java.sql.SQLException; | |||
@@ -31,7 +31,7 @@ import org.sonar.api.measures.CoreMetrics; | |||
import org.sonar.api.utils.log.Logger; | |||
import org.sonar.api.utils.log.Loggers; | |||
import org.sonar.db.Database; | |||
import org.sonar.db.version.BaseDataChange; | |||
import org.sonar.server.platform.db.migration.step.DataChange; | |||
import org.sonar.db.version.Select; | |||
import static java.util.Objects.requireNonNull; | |||
@@ -48,7 +48,7 @@ import static org.sonar.db.DatabaseUtils.repeatCondition; | |||
* | |||
* Same strategy is applied on new_XXX, (it_|overall_)lines_to_cover, (it_|overall_)uncovered_lines, etc. related coverage metrics. | |||
*/ | |||
public class UpdateQualityGateConditionsOnCoverage extends BaseDataChange { | |||
public class UpdateQualityGateConditionsOnCoverage extends DataChange { | |||
private static final Logger LOGGER = Loggers.get(UpdateQualityGateConditionsOnCoverage.class); | |||
@@ -17,8 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
@ParametersAreNonnullByDefault | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import javax.annotation.ParametersAreNonnullByDefault; |
@@ -36,7 +36,7 @@ public class DbVersionModuleTest { | |||
underTest.configure(container); | |||
assertThat(container.getPicoContainer().getComponentAdapters()) | |||
.hasSize(COMPONENTS_IN_EMPTY_COMPONENT_CONTAINER + 1); | |||
.hasSize(COMPONENTS_IN_EMPTY_COMPONENT_CONTAINER + 2); | |||
} | |||
} |
@@ -17,7 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import java.sql.Types; |
@@ -17,7 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import java.sql.Types; |
@@ -17,7 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import java.sql.Types; |
@@ -17,7 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import java.sql.Types; |
@@ -17,7 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import java.sql.Types; |
@@ -17,7 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.junit.Rule; |
@@ -17,7 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import java.sql.Types; |
@@ -17,7 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import java.sql.Types; |
@@ -0,0 +1,40 @@ | |||
/* | |||
* SonarQube | |||
* Copyright (C) 2009-2016 SonarSource SA | |||
* mailto:contact AT sonarsource DOT com | |||
* | |||
* This program is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU Lesser General Public | |||
* License as published by the Free Software Foundation; either | |||
* version 3 of the License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
* Lesser General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Lesser General Public License | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import org.junit.Test; | |||
import static org.sonar.server.platform.db.migration.version.DbVersionTestUtils.verifyMigrationCount; | |||
import static org.sonar.server.platform.db.migration.version.DbVersionTestUtils.verifyMinimumMigrationNumber; | |||
public class DbVersion62Test { | |||
private DbVersion62 underTest = new DbVersion62(); | |||
@Test | |||
public void migrationNumber_starts_at_1400() { | |||
verifyMinimumMigrationNumber(underTest, 1400); | |||
} | |||
@Test | |||
public void verify_migration_count() { | |||
verifyMigrationCount(underTest, 24); | |||
} | |||
} |
@@ -17,7 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.junit.Rule; |
@@ -18,7 +18,7 @@ | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.junit.Rule; |
@@ -18,7 +18,7 @@ | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.junit.Rule; |
@@ -18,7 +18,7 @@ | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.junit.Rule; |
@@ -17,7 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import java.sql.Types; |
@@ -17,7 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import java.sql.Types; |
@@ -17,7 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import java.sql.Types; |
@@ -17,7 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import java.sql.Types; |
@@ -17,7 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import java.sql.Types; |
@@ -17,7 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import java.util.List; |
@@ -17,7 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.junit.Rule; |
@@ -17,7 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.junit.Rule; |
@@ -17,7 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.junit.Rule; |
@@ -17,7 +17,7 @@ | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import java.sql.SQLException; | |||
import org.junit.Rule; |
@@ -18,7 +18,7 @@ | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
package org.sonar.db.version.v62; | |||
package org.sonar.server.platform.db.migration.version.v62; | |||
import com.google.common.collect.ImmutableList; | |||
import com.google.common.collect.ImmutableMap; | |||
@@ -40,7 +40,6 @@ import org.junit.rules.ExpectedException; | |||
import org.junit.runner.RunWith; | |||
import org.sonar.api.utils.System2; | |||
import org.sonar.db.DbTester; | |||
import org.sonar.db.version.MigrationStep; | |||
import static java.lang.String.format; | |||
import static org.assertj.core.api.Assertions.assertThat; | |||
@@ -57,7 +56,7 @@ public class UpdateQualityGateConditionsOnCoverageTest { | |||
@Rule | |||
public ExpectedException expectedException = ExpectedException.none(); | |||
private MigrationStep underTest = new UpdateQualityGateConditionsOnCoverage(dbTester.database()); | |||
private UpdateQualityGateConditionsOnCoverage underTest = new UpdateQualityGateConditionsOnCoverage(dbTester.database()); | |||
@Test | |||
public void move_overall_coverage_condition_to_coverage() throws SQLException { |
@@ -1,29 +0,0 @@ | |||
# | |||
# SonarQube, open source software quality management tool. | |||
# Copyright (C) 2008-2016 SonarSource | |||
# mailto:contact AT sonarsource DOT com | |||
# | |||
# SonarQube is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU Lesser General Public | |||
# License as published by the Free Software Foundation; either | |||
# version 3 of the License, or (at your option) any later version. | |||
# | |||
# SonarQube is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# Lesser General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU Lesser General Public License | |||
# along with this program; if not, write to the Free Software Foundation, | |||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
# | |||
# | |||
# SonarQube 6.2 | |||
# | |||
class CreateTableOrganizations < ActiveRecord::Migration | |||
def self.up | |||
execute_java_migration('org.sonar.db.version.v62.CreateTableOrganizations') | |||
end | |||
end |
@@ -1,30 +0,0 @@ | |||
# | |||
# SonarQube, open source software quality management tool. | |||
# Copyright (C) 2008-2016 SonarSource | |||
# mailto:contact AT sonarsource DOT com | |||
# | |||
# SonarQube is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU Lesser General Public | |||
# License as published by the Free Software Foundation; either | |||
# version 3 of the License, or (at your option) any later version. | |||
# | |||
# SonarQube is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# Lesser General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU Lesser General Public License | |||
# along with this program; if not, write to the Free Software Foundation, | |||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
# | |||
# | |||
# SonarQube 6.2 | |||
# | |||
class CreateDefaultOrganization < ActiveRecord::Migration | |||
def self.up | |||
execute_java_migration('org.sonar.db.version.v62.CreateDefaultOrganization') | |||
end | |||
end |
@@ -1,29 +0,0 @@ | |||
# | |||
# SonarQube, open source software quality management tool. | |||
# Copyright (C) 2008-2016 SonarSource | |||
# mailto:contact AT sonarsource DOT com | |||
# | |||
# SonarQube is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU Lesser General Public | |||
# License as published by the Free Software Foundation; either | |||
# version 3 of the License, or (at your option) any later version. | |||
# | |||
# SonarQube is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# Lesser General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU Lesser General Public License | |||
# along with this program; if not, write to the Free Software Foundation, | |||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
# | |||
# | |||
# SonarQube 6.2 | |||
# | |||
class DeletePermissionShareDashboard < ActiveRecord::Migration | |||
def self.up | |||
execute_java_migration('org.sonar.db.version.v62.DeletePermissionShareDashboard') | |||
end | |||
end |
@@ -1,29 +0,0 @@ | |||
# | |||
# SonarQube, open source software quality management tool. | |||
# Copyright (C) 2008-2016 SonarSource | |||
# mailto:contact AT sonarsource DOT com | |||
# | |||
# SonarQube is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU Lesser General Public | |||
# License as published by the Free Software Foundation; either | |||
# version 3 of the License, or (at your option) any later version. | |||
# | |||
# SonarQube is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# Lesser General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU Lesser General Public License | |||
# along with this program; if not, write to the Free Software Foundation, | |||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
# | |||
# | |||
# SonarQube 6.2 | |||
# | |||
class AddOrganizationUuidToGroups < ActiveRecord::Migration | |||
def self.up | |||
execute_java_migration('org.sonar.db.version.v62.AddOrganizationUuidToGroups') | |||
end | |||
end |
@@ -1,29 +0,0 @@ | |||
# | |||
# SonarQube, open source software quality management tool. | |||
# Copyright (C) 2008-2016 SonarSource | |||
# mailto:contact AT sonarsource DOT com | |||
# | |||
# SonarQube is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU Lesser General Public | |||
# License as published by the Free Software Foundation; either | |||
# version 3 of the License, or (at your option) any later version. | |||
# | |||
# SonarQube is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# Lesser General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU Lesser General Public License | |||
# along with this program; if not, write to the Free Software Foundation, | |||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
# | |||
# | |||
# SonarQube 6.2 | |||
# | |||
class AddRootColumnOnTableUsers < ActiveRecord::Migration | |||
def self.up | |||
execute_java_migration('org.sonar.db.version.v62.AddIsRootColumnOnTableUsers') | |||
end | |||
end |
@@ -1,29 +0,0 @@ | |||
# | |||
# SonarQube, open source software quality management tool. | |||
# Copyright (C) 2008-2016 SonarSource | |||
# mailto:contact AT sonarsource DOT com | |||
# | |||
# SonarQube is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU Lesser General Public | |||
# License as published by the Free Software Foundation; either | |||
# version 3 of the License, or (at your option) any later version. | |||
# | |||
# SonarQube is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# Lesser General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU Lesser General Public License | |||
# along with this program; if not, write to the Free Software Foundation, | |||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
# | |||
# | |||
# SonarQube 6.2 | |||
# | |||
class PopulateRootColumnOnTableUsers < ActiveRecord::Migration | |||
def self.up | |||
execute_java_migration('org.sonar.db.version.v62.PopulateIsRootColumnOnTableUsers') | |||
end | |||
end |
@@ -1,29 +0,0 @@ | |||
# | |||
# SonarQube, open source software quality management tool. | |||
# Copyright (C) 2008-2016 SonarSource | |||
# mailto:contact AT sonarsource DOT com | |||
# | |||
# SonarQube is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU Lesser General Public | |||
# License as published by the Free Software Foundation; either | |||
# version 3 of the License, or (at your option) any later version. | |||
# | |||
# SonarQube is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# Lesser General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU Lesser General Public License | |||
# along with this program; if not, write to the Free Software Foundation, | |||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
# | |||
# | |||
# SonarQube 6.2 | |||
# | |||
class MakeRootColumnNotNullOnTableUsers < ActiveRecord::Migration | |||
def self.up | |||
execute_java_migration('org.sonar.db.version.v62.MakeRootColumnNotNullOnTableUsers') | |||
end | |||
end |
@@ -1,29 +0,0 @@ | |||
# | |||
# SonarQube, open source software quality management tool. | |||
# Copyright (C) 2008-2016 SonarSource | |||
# mailto:contact AT sonarsource DOT com | |||
# | |||
# SonarQube is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU Lesser General Public | |||
# License as published by the Free Software Foundation; either | |||
# version 3 of the License, or (at your option) any later version. | |||
# | |||
# SonarQube is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# Lesser General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU Lesser General Public License | |||
# along with this program; if not, write to the Free Software Foundation, | |||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
# | |||
# | |||
# SonarQube 6.2 | |||
# | |||
class PopulateOrganizationUuidOfGroups < ActiveRecord::Migration | |||
def self.up | |||
execute_java_migration('org.sonar.db.version.v62.PopulateOrganizationUuidOfGroups') | |||
end | |||
end |
@@ -1,29 +0,0 @@ | |||
# | |||
# SonarQube, open source software quality management tool. | |||
# Copyright (C) 2008-2016 SonarSource | |||
# mailto:contact AT sonarsource DOT com | |||
# | |||
# SonarQube is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU Lesser General Public | |||
# License as published by the Free Software Foundation; either | |||
# version 3 of the License, or (at your option) any later version. | |||
# | |||
# SonarQube is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# Lesser General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU Lesser General Public License | |||
# along with this program; if not, write to the Free Software Foundation, | |||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
# | |||
# | |||
# SonarQube 6.2 | |||
# | |||
class MakeOrganizationUuidNotNullOnGroups < ActiveRecord::Migration | |||
def self.up | |||
execute_java_migration('org.sonar.db.version.v62.MakeOrganizationUuidNotNullOnGroups') | |||
end | |||
end |
@@ -1,29 +0,0 @@ | |||
# | |||
# SonarQube, open source software quality management tool. | |||
# Copyright (C) 2008-2016 SonarSource | |||
# mailto:contact AT sonarsource DOT com | |||
# | |||
# SonarQube is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU Lesser General Public | |||
# License as published by the Free Software Foundation; either | |||
# version 3 of the License, or (at your option) any later version. | |||
# | |||
# SonarQube is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# Lesser General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU Lesser General Public License | |||
# along with this program; if not, write to the Free Software Foundation, | |||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
# | |||
# | |||
# SonarQube 6.2 | |||
# | |||
class AddOrganizationUuidToUserRoles < ActiveRecord::Migration | |||
def self.up | |||
execute_java_migration('org.sonar.db.version.v62.AddOrganizationUuidToUserRoles') | |||
end | |||
end |
@@ -1,29 +0,0 @@ | |||
# | |||
# SonarQube, open source software quality management tool. | |||
# Copyright (C) 2008-2016 SonarSource | |||
# mailto:contact AT sonarsource DOT com | |||
# | |||
# SonarQube is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU Lesser General Public | |||
# License as published by the Free Software Foundation; either | |||
# version 3 of the License, or (at your option) any later version. | |||
# | |||
# SonarQube is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# Lesser General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU Lesser General Public License | |||
# along with this program; if not, write to the Free Software Foundation, | |||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
# | |||
# | |||
# SonarQube 6.2 | |||
# | |||
class PopulateOrganizationUuidOfUserRoles < ActiveRecord::Migration | |||
def self.up | |||
execute_java_migration('org.sonar.db.version.v62.PopulateOrganizationUuidOfUserRoles') | |||
end | |||
end |
@@ -1,29 +0,0 @@ | |||
# | |||
# SonarQube, open source software quality management tool. | |||
# Copyright (C) 2008-2016 SonarSource | |||
# mailto:contact AT sonarsource DOT com | |||
# | |||
# SonarQube is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU Lesser General Public | |||
# License as published by the Free Software Foundation; either | |||
# version 3 of the License, or (at your option) any later version. | |||
# | |||
# SonarQube is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# Lesser General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU Lesser General Public License | |||
# along with this program; if not, write to the Free Software Foundation, | |||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
# | |||
# | |||
# SonarQube 6.2 | |||
# | |||
class MakeOrganizationUuidNotNullOnUserRoles < ActiveRecord::Migration | |||
def self.up | |||
execute_java_migration('org.sonar.db.version.v62.MakeOrganizationUuidNotNullOnUserRoles') | |||
end | |||
end |
@@ -1,29 +0,0 @@ | |||
# | |||
# SonarQube, open source software quality management tool. | |||
# Copyright (C) 2008-2016 SonarSource | |||
# mailto:contact AT sonarsource DOT com | |||
# | |||
# SonarQube is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU Lesser General Public | |||
# License as published by the Free Software Foundation; either | |||
# version 3 of the License, or (at your option) any later version. | |||
# | |||
# SonarQube is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# Lesser General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU Lesser General Public License | |||
# along with this program; if not, write to the Free Software Foundation, | |||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
# | |||
# | |||
# SonarQube 6.2 | |||
# | |||
class AddOrganizationUuidToPermissionTemplates < ActiveRecord::Migration | |||
def self.up | |||
execute_java_migration('org.sonar.db.version.v62.AddOrganizationUuidToPermissionTemplates') | |||
end | |||
end |
@@ -1,29 +0,0 @@ | |||
# | |||
# SonarQube, open source software quality management tool. | |||
# Copyright (C) 2008-2016 SonarSource | |||
# mailto:contact AT sonarsource DOT com | |||
# | |||
# SonarQube is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU Lesser General Public | |||
# License as published by the Free Software Foundation; either | |||
# version 3 of the License, or (at your option) any later version. | |||
# | |||
# SonarQube is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# Lesser General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU Lesser General Public License | |||
# along with this program; if not, write to the Free Software Foundation, | |||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
# | |||
# | |||
# SonarQube 6.2 | |||
# | |||
class PopulateOrganizationUuidOfPermissionTemplates < ActiveRecord::Migration | |||
def self.up | |||
execute_java_migration('org.sonar.db.version.v62.PopulateOrganizationUuidOfPermissionTemplates') | |||
end | |||
end |
@@ -1,29 +0,0 @@ | |||
# | |||
# SonarQube, open source software quality management tool. | |||
# Copyright (C) 2008-2016 SonarSource | |||
# mailto:contact AT sonarsource DOT com | |||
# | |||
# SonarQube is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU Lesser General Public | |||
# License as published by the Free Software Foundation; either | |||
# version 3 of the License, or (at your option) any later version. | |||
# | |||
# SonarQube is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# Lesser General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU Lesser General Public License | |||
# along with this program; if not, write to the Free Software Foundation, | |||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
# | |||
# | |||
# SonarQube 6.2 | |||
# | |||
class MakeOrganizationUuidNotNullOnPermissionTemplates < ActiveRecord::Migration | |||
def self.up | |||
execute_java_migration('org.sonar.db.version.v62.MakeOrganizationUuidNotNullOnPermissionTemplates') | |||
end | |||
end |
@@ -1,29 +0,0 @@ | |||
# | |||
# SonarQube, open source software quality management tool. | |||
# Copyright (C) 2008-2016 SonarSource | |||
# mailto:contact AT sonarsource DOT com | |||
# | |||
# SonarQube is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU Lesser General Public | |||
# License as published by the Free Software Foundation; either | |||
# version 3 of the License, or (at your option) any later version. | |||
# | |||
# SonarQube is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# Lesser General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU Lesser General Public License | |||
# along with this program; if not, write to the Free Software Foundation, | |||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
# | |||
# | |||
# SonarQube 6.2 | |||
# | |||
class AddOrganizationUuidToGroupRoles < ActiveRecord::Migration | |||
def self.up | |||
execute_java_migration('org.sonar.db.version.v62.AddOrganizationUuidToGroupRoles') | |||
end | |||
end |
@@ -1,29 +0,0 @@ | |||
# | |||
# SonarQube, open source software quality management tool. | |||
# Copyright (C) 2008-2016 SonarSource | |||
# mailto:contact AT sonarsource DOT com | |||
# | |||
# SonarQube is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU Lesser General Public | |||
# License as published by the Free Software Foundation; either | |||
# version 3 of the License, or (at your option) any later version. | |||
# | |||
# SonarQube is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# Lesser General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU Lesser General Public License | |||
# along with this program; if not, write to the Free Software Foundation, | |||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
# | |||
# | |||
# SonarQube 6.2 | |||
# | |||
class PopulateOrganizationUuidOfGroupRoles < ActiveRecord::Migration | |||
def self.up | |||
execute_java_migration('org.sonar.db.version.v62.PopulateOrganizationUuidOfGroupRoles') | |||
end | |||
end |
@@ -1,29 +0,0 @@ | |||
# | |||
# SonarQube, open source software quality management tool. | |||
# Copyright (C) 2008-2016 SonarSource | |||
# mailto:contact AT sonarsource DOT com | |||
# | |||
# SonarQube is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU Lesser General Public | |||
# License as published by the Free Software Foundation; either | |||
# version 3 of the License, or (at your option) any later version. | |||
# | |||
# SonarQube is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# Lesser General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU Lesser General Public License | |||
# along with this program; if not, write to the Free Software Foundation, | |||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
# | |||
# | |||
# SonarQube 6.2 | |||
# | |||
class MakeOrganizationUuidNotNullOnGroupRoles < ActiveRecord::Migration | |||
def self.up | |||
execute_java_migration('org.sonar.db.version.v62.MakeOrganizationUuidNotNullOnGroupRoles') | |||
end | |||
end |
@@ -1,29 +0,0 @@ | |||
# | |||
# SonarQube, open source software quality management tool. | |||
# Copyright (C) 2008-2016 SonarSource | |||
# mailto:contact AT sonarsource DOT com | |||
# | |||
# SonarQube is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU Lesser General Public | |||
# License as published by the Free Software Foundation; either | |||
# version 3 of the License, or (at your option) any later version. | |||
# | |||
# SonarQube is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# Lesser General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU Lesser General Public License | |||
# along with this program; if not, write to the Free Software Foundation, | |||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
# | |||
# | |||
# SonarQube 6.2 | |||
# | |||
class IncludeOrganizationUuidInUniqueIndexOfGroupRoles < ActiveRecord::Migration | |||
def self.up | |||
execute_java_migration('org.sonar.db.version.v62.IncludeOrganizationUuidInUniqueIndexOfGroupRoles') | |||
end | |||
end |
@@ -1,29 +0,0 @@ | |||
# | |||
# SonarQube, open source software quality management tool. | |||
# Copyright (C) 2008-2016 SonarSource | |||
# mailto:contact AT sonarsource DOT com | |||
# | |||
# SonarQube is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU Lesser General Public | |||
# License as published by the Free Software Foundation; either | |||
# version 3 of the License, or (at your option) any later version. | |||
# | |||
# SonarQube is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# Lesser General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU Lesser General Public License | |||
# along with this program; if not, write to the Free Software Foundation, | |||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
# | |||
# | |||
# SonarQube 6.2 | |||
# | |||
class UpdateQualityGateConditionsOnCoverage < ActiveRecord::Migration | |||
def self.up | |||
execute_java_migration('org.sonar.db.version.v62.UpdateQualityGateConditionsOnCoverage') | |||
end | |||
end |
@@ -1,29 +0,0 @@ | |||
# | |||
# SonarQube, open source software quality management tool. | |||
# Copyright (C) 2008-2016 SonarSource | |||
# mailto:contact AT sonarsource DOT com | |||
# | |||
# SonarQube is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU Lesser General Public | |||
# License as published by the Free Software Foundation; either | |||
# version 3 of the License, or (at your option) any later version. | |||
# | |||
# SonarQube is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# Lesser General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU Lesser General Public License | |||
# along with this program; if not, write to the Free Software Foundation, | |||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
# | |||
# | |||
# SonarQube 6.2 | |||
# | |||
class DropRelatedDashboardTables < ActiveRecord::Migration | |||
def self.up | |||
execute_java_migration('org.sonar.db.version.v62.DropRelatedDashboardTables') | |||
end | |||
end |
@@ -1,29 +0,0 @@ | |||
# | |||
# SonarQube, open source software quality management tool. | |||
# Copyright (C) 2008-2016 SonarSource | |||
# mailto:contact AT sonarsource DOT com | |||
# | |||
# SonarQube is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU Lesser General Public | |||
# License as published by the Free Software Foundation; either | |||
# version 3 of the License, or (at your option) any later version. | |||
# | |||
# SonarQube is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# Lesser General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU Lesser General Public License | |||
# along with this program; if not, write to the Free Software Foundation, | |||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
# | |||
# | |||
# SonarQube 6.2 | |||
# | |||
class DropMeasureFiltersTables < ActiveRecord::Migration | |||
def self.up | |||
execute_java_migration('org.sonar.db.version.v62.DropMeasureFiltersTables') | |||
end | |||
end |
@@ -1,29 +0,0 @@ | |||
# | |||
# SonarQube, open source software quality management tool. | |||
# Copyright (C) 2008-2016 SonarSource | |||
# mailto:contact AT sonarsource DOT com | |||
# | |||
# SonarQube is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU Lesser General Public | |||
# License as published by the Free Software Foundation; either | |||
# version 3 of the License, or (at your option) any later version. | |||
# | |||
# SonarQube is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# Lesser General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU Lesser General Public License | |||
# along with this program; if not, write to the Free Software Foundation, | |||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
# | |||
# | |||
# SonarQube 6.2 | |||
# | |||
class DropIssueFiltersTables < ActiveRecord::Migration | |||
def self.up | |||
execute_java_migration('org.sonar.db.version.v62.DropIssueFiltersTables') | |||
end | |||
end |
@@ -1,29 +0,0 @@ | |||
# | |||
# SonarQube, open source software quality management tool. | |||
# Copyright (C) 2008-2014 SonarSource | |||
# mailto:contact AT sonarsource DOT com | |||
# | |||
# SonarQube is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU Lesser General Public | |||
# License as published by the Free Software Foundation; either | |||
# version 3 of the License, or (at your option) any later version. | |||
# | |||
# SonarQube is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# Lesser General Public License for more details. | |||
# | |||
# You should have received a copy of the GNU Lesser General Public License | |||
# along with this program; if not, write to the Free Software Foundation, | |||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
# | |||
# | |||
# SonarQube 6.2 | |||
# | |||
class CreateTableWebhookDeliveries < ActiveRecord::Migration | |||
def self.up | |||
execute_java_migration('org.sonar.db.version.v62.CreateTableWebhookDeliveries') | |||
end | |||
end |