Skip to content

Commit

Permalink
Migrations: re-order them for deploy (#11779)
Browse files Browse the repository at this point in the history
Run all the `before_deploy` migrations first. Then run all the
`after_deploy` migrations.

We hit an issue while doing the deploy because of this.
  • Loading branch information
humitos authored Nov 19, 2024
1 parent 7f9c8fd commit 2bae850
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Migration(migrations.Migration):
safe = Safe.before_deploy

dependencies = [
('projects', '0134_addons_load_when_embedded_notnull'),
('projects', '0133_addons_load_when_embedded'),
]

operations = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Migration(migrations.Migration):
safe = Safe.after_deploy

dependencies = [
('projects', '0133_addons_load_when_embedded'),
('projects', '0134_addons_customscript'),
]

operations = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Migration(migrations.Migration):
safe = Safe.after_deploy

dependencies = [
('projects', '0135_addons_customscript'),
('projects', '0135_addons_load_when_embedded_notnull'),
]

operations = [
Expand Down

0 comments on commit 2bae850

Please sign in to comment.