Rename services table to integrations table
Summary
As part of the Mass-integration project, we decided in &2504 (closed) to rename project services
to integrations
. To reflect the new name, the services
table should be renamed to integrations
.
Process
We can use the new helpers and process described at https://docs.gitlab.com/ee/development/database/rename_database_tables.html. This will be used for the first time in !62797 (merged), so we can check that MR to see if there were any unexpected problems.
We'll have to handle the triggers introduced in !51852 (merged) and !49916 (merged). We can drop them before the rename and recreate them with the new table name afterwards (all within the same transaction to ensure consistency).
-
Release 14.0: Mark the ActiveRecord model’s table -
Release 14.1: Rename the database table
Edited by Luke Duncalfe