GitLab Bot
88542a5e96
Add latest changes from gitlab-org/gitlab@master
2019-11-19 15:06:24 +00:00
GitLab Bot
80f61b4035
Add latest changes from gitlab-org/gitlab@master
2019-09-18 14:02:45 +00:00
Jan Provaznik
0fc9f9d3e7
Add version 4.2 to all existing migrations
...
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
2018-11-22 13:18:28 +01:00
Gabriel Mazetto
f21e655b61
disable_statement_timeout doesn't require any argument anymore
...
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.
2018-08-11 04:15:59 +02:00
Gabriel Mazetto
119c49172f
Fix specs to use `disable_statement_timeout` correctly
2018-08-10 20:40:00 +02:00
Grzegorz Bizon
394c1c6588
Disable statement timeout when removing redundant stages
2018-02-07 13:09:53 +01:00
Grzegorz Bizon
adb6dd0670
Remove old index after executing a query in stages migration
...
This makes it possible to heavily optimize this migration, because we
need an outdated index to remove redundant stages faster.
2018-02-07 09:18:11 +01:00
Grzegorz Bizon
c30f442174
Improve exceptions messages in code creating stages
2018-02-06 14:16:12 +01:00
Grzegorz Bizon
e178135d57
Add more specs for unique stages index migration
2018-02-06 09:58:50 +01:00
Grzegorz Bizon
b5c69ce3ab
Retry migration removing stages in case of duplicates
2018-02-05 16:22:19 +01:00
Grzegorz Bizon
5f57c7a5a5
Revert create job service because of load balancing
...
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.
2018-02-05 15:32:52 +01:00
Grzegorz Bizon
9b73f14d07
Fix indentation in migration removing duplicated stages
2018-01-25 14:18:41 +01:00
Grzegorz Bizon
50e9824115
Fix migration removing duplicate stages on MySQL again
2018-01-25 13:28:18 +01:00
Grzegorz Bizon
ce71b1ce07
Fix removing redundant pipeline stages on MySQL
2018-01-25 12:08:57 +01:00
Grzegorz Bizon
e73333242a
Optimize SQL query that removes duplicated stages
2018-01-24 12:56:11 +01:00
Grzegorz Bizon
6714fbad8f
Remove redundant pipeline stages from the database
2018-01-24 12:47:47 +01:00