Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
fd2bac0b
Commit
fd2bac0b
authored
Sep 01, 2021
by
Andreas Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Note about backports and versioned migrations
parent
56753c80
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
doc/development/migration_style_guide.md
doc/development/migration_style_guide.md
+7
-1
No files found.
doc/development/migration_style_guide.md
View file @
fd2bac0b
...
...
@@ -240,10 +240,16 @@ class TestMigration < Gitlab::Database::Migration[1.0]
end
```
Note that it is discouraged to include
`Gitlab::Database::MigrationHelpers`
directly into a
NOTE:
It is discouraged to include
`Gitlab::Database::MigrationHelpers`
directly into a
migration. Instead, the latest version of
`Gitlab::Database::Migration`
will expose the latest
version of migration helpers automatically.
NOTE:
Migration helpers and versioning are available starting from
[
14.3
](
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/68986
)
.
For merge requests targeting previous stable branches, the old format needs to be used and we continue
to inherit from
`ActiveRecord::Migration[6.1]`
instead of
`Gitlab::Database::Migration[1.0]`
for those.
## Retry mechanism when acquiring database locks
When changing the database schema, we use helper methods to invoke DDL (Data Definition
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment