Commit Graph

9 Commits

Author SHA1 Message Date
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
Lin Jen-Shin ca65982225 Use Gitlab::Database.with_connection_pool from !9192 2017-02-14 20:29:36 +08:00
Lin Jen-Shin ae93d08b9c Disconnect the pool after done 2017-02-14 20:14:22 +08:00
Lin Jen-Shin 8aa1055fe3 Use threads directly, introduce pool later:
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8987#note_22938402
2017-02-14 20:14:22 +08:00
Lin Jen-Shin 7ecee7a4d7 Introduce ThreadedConnectionPool for customized pool
This way we could reuse this pool for other migrations

Feedback:

* https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8987#note_22923350
* https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8987#note_22923365
2017-02-14 20:14:22 +08:00
Lin Jen-Shin 521a7cafd4 Try this way to provide database connection 2017-02-14 20:13:54 +08:00
Lin Jen-Shin 887aeefba6 Use IS FALSE for both pg and mysql; Handle connections
by ourselves so that even if the setting has 1 connection
we could still use more connections.
2017-02-14 20:13:54 +08:00
Lin Jen-Shin 25cd5aa228 Run two threads to improve migration running time 2017-02-14 20:13:54 +08:00
Lin Jen-Shin a770227139 Remove inactive default email services
Note that we no longer generate this by default.
This is for clearing legacy default data.
2017-02-14 20:13:54 +08:00