Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #9555: Remove creation of index on expectedreportsnodes table in rudder-upgrade #1129

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 0 additions & 9 deletions rudder-webapp/SOURCES/rudder-upgrade
Expand Up @@ -47,7 +47,6 @@ trap anomaly_handler ERR INT TERM
# - 2.10.17 : Migration DB schema to add historization of global agent schedule
# - 2.11.19 : Add index on fileformat for eventlog
# - 2.11.23 : Add 'api compatibility' property
# - 3.0.14 : Add index on nodeconfigids for expectedreportsnodes
# - 3.0.17 : Add index on eventType and executionTimeStamp on RudderSysEvents
# - 3.1.10 : Add masterfiles in the server
# - 3.2.0 : Add the properties to configuration authentication provider and master admin account
Expand Down Expand Up @@ -513,14 +512,6 @@ upgrade_database() {
echo " Done"
fi

# - 2.11.19, 3.0.14, 3.1.8 and 3.2.1 : Migration DB schema to add an indexes on nodeconfigids on table expectedreportsnodes
RES=$(${PSQL} -t -d rudder -c "select count(oid) from pg_class where lower(relname) = 'nodeconfigids_idx'")
if [ $RES -eq 0 ]; then
echo -n "INFO: Updating the PostgreSQL indexes, this may take several minutes..."
${PSQL} -d rudder -f ${RUDDER_UPGRADE_TOOLS}/dbMigration-3.0-3.0-add-index-nodeconfigids.sql > /dev/null
echo " Done"
fi

# - 3.0.17, 3.1.11 and 3.2.4 : Migration DB schema to add an indexes on eventType and executionTimeStamp on table RudderSysEvents
RES=$(${PSQL} -t -d rudder -c "select count(oid) from pg_class where lower(relname) = 'changes_executiontimestamp_idx'")
if [ $RES -eq 0 ]; then
Expand Down
1 change: 0 additions & 1 deletion rudder-webapp/SPECS/rudder-webapp.spec
Expand Up @@ -261,7 +261,6 @@ sed -i "s%^DocumentRoot /var/www$%DocumentRoot /srv/www%" %{buildroot}%{rudderdi
cp %{_sourcedir}/rudder-sources/rudder/rudder-core/src/main/resources/Migration/dbMigration-2.10-2.10-historization-of-groups-in-rules.sql %{buildroot}%{rudderdir}/share/upgrade-tools/
cp %{_sourcedir}/rudder-sources/rudder/rudder-core/src/main/resources/Migration/dbMigration-2.10-2.10-historization-of-agent-schedule.sql %{buildroot}%{rudderdir}/share/upgrade-tools/
cp %{_sourcedir}/rudder-sources/rudder/rudder-core/src/main/resources/Migration/dbMigration-2.11-2.11-index-eventlog.sql %{buildroot}%{rudderdir}/share/upgrade-tools/
cp %{_sourcedir}/rudder-sources/rudder/rudder-core/src/main/resources/Migration/dbMigration-3.0-3.0-add-index-nodeconfigids.sql %{buildroot}%{rudderdir}/share/upgrade-tools/
cp %{_sourcedir}/rudder-sources/rudder/rudder-core/src/main/resources/Migration/dbMigration-3.0-3.0-add-index-changes-executiontimestamp.sql %{buildroot}%{rudderdir}/share/upgrade-tools/
cp %{_sourcedir}/rudder-sources/rudder/rudder-core/src/main/resources/Migration/dbMigration-3.2.x-4.0-add-nodeconfigurations.sql %{buildroot}%{rudderdir}/share/upgrade-tools/
cp %{_sourcedir}/rudder-sources/rudder/rudder-core/src/main/resources/Migration/dbMigration-3.2.x-4.0-add-archived-tables.sql %{buildroot}%{rudderdir}/share/upgrade-tools/
Expand Down
1 change: 0 additions & 1 deletion rudder-webapp/debian/rules
Expand Up @@ -94,7 +94,6 @@ binary-arch: install
dh_install --SOURCEDIR=$(CURDIR)/SOURCES/rudder-sources/rudder/rudder-core/src/main/resources/Migration/ dbMigration-2.10-2.10-historization-of-groups-in-rules.sql /opt/rudder/share/upgrade-tools/
dh_install --SOURCEDIR=$(CURDIR)/SOURCES/rudder-sources/rudder/rudder-core/src/main/resources/Migration/ dbMigration-2.10-2.10-historization-of-agent-schedule.sql /opt/rudder/share/upgrade-tools/
dh_install --SOURCEDIR=$(CURDIR)/SOURCES/rudder-sources/rudder/rudder-core/src/main/resources/Migration/ dbMigration-2.11-2.11-index-eventlog.sql /opt/rudder/share/upgrade-tools/
dh_install --SOURCEDIR=$(CURDIR)/SOURCES/rudder-sources/rudder/rudder-core/src/main/resources/Migration/ dbMigration-3.0-3.0-add-index-nodeconfigids.sql /opt/rudder/share/upgrade-tools/
dh_install --SOURCEDIR=$(CURDIR)/SOURCES/rudder-sources/rudder/rudder-core/src/main/resources/Migration/ dbMigration-3.0-3.0-add-index-changes-executiontimestamp.sql /opt/rudder/share/upgrade-tools/
dh_install --SOURCEDIR=$(CURDIR)/SOURCES/rudder-sources/rudder/rudder-core/src/main/resources/Migration/ dbMigration-3.2.x-4.0-add-nodeconfigurations.sql /opt/rudder/share/upgrade-tools/
dh_install --SOURCEDIR=$(CURDIR)/SOURCES/rudder-sources/rudder/rudder-core/src/main/resources/Migration/ dbMigration-3.2.x-4.0-add-archived-tables.sql /opt/rudder/share/upgrade-tools/
Expand Down