summaryrefslogtreecommitdiff
path: root/db/post_migrate/20180119121225_remove_redundant_pipeline_stages.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add version 4.2 to all existing migrationsjprovazn-versioned-migrationsJan Provaznik2018-11-221-1/+1
| | | | | | | | | DB schema generated by a migration may look different in rails 4 and 5 (because rails 5 may use different default values). For this reason it's important to explicitly set for which rails version a migration was written for. See https://stackoverflow.com/questions/35929869/activerecordmigration-deprecation-warning-asks-for-rails-version-but-im-no/35930912#35930912
* disable_statement_timeout doesn't require any argument anymoreGabriel Mazetto2018-08-111-1/+1
| | | | | | | | | it will decide the method for disable statement_timeout upon per transaction or per session, based on how it's called. When calling with a block, block will be executed and it will use session based statement_timeout, otherwise will default to existing behavior.
* Fix specs to use `disable_statement_timeout` correctlyGabriel Mazetto2018-08-101-20/+20
|
* Disable statement timeout when removing redundant stagesGrzegorz Bizon2018-02-071-0/+2
|
* Remove old index after executing a query in stages migrationGrzegorz Bizon2018-02-071-1/+1
| | | | | This makes it possible to heavily optimize this migration, because we need an outdated index to remove redundant stages faster.
* Improve exceptions messages in code creating stagesGrzegorz Bizon2018-02-061-1/+4
|
* Add more specs for unique stages index migrationGrzegorz Bizon2018-02-061-1/+4
|
* Retry migration removing stages in case of duplicatesGrzegorz Bizon2018-02-051-4/+17
|
* Revert create job service because of load balancingGrzegorz Bizon2018-02-051-4/+15
| | | | | | | | | Currently we still need to run EnsureStageService within a transaction, because when it runs within in a transaction we are going to stick to the primary database when using database load balancing. Extracting this out of the transaction makes it possible to hit into problems with replication lag in pipeline commit status API, which can cause a lot of trouble.
* Fix indentation in migration removing duplicated stagesGrzegorz Bizon2018-01-251-1/+1
|
* Fix migration removing duplicate stages on MySQL againGrzegorz Bizon2018-01-251-0/+1
|
* Fix removing redundant pipeline stages on MySQLGrzegorz Bizon2018-01-251-4/+11
|
* Optimize SQL query that removes duplicated stagesGrzegorz Bizon2018-01-241-4/+4
|
* Remove redundant pipeline stages from the databaseGrzegorz Bizon2018-01-241-0/+26