Skip to content

Commit

Permalink
fix(migrations): fix django migration order dependency (#6302)
Browse files Browse the repository at this point in the history
  • Loading branch information
vicferpoy authored Dec 23, 2024
1 parent c811b67 commit 71c58ce
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class Migration(migrations.Migration):
dependencies = [
("api", "0004_rbac_missing_admin_roles"),
("api", "0002_token_migrations"),
]

operations = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
# Generated by Django 5.1.1 on 2024-12-05 12:29

import api.rls
import django.db.models.deletion
import uuid

import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models

import api.rls


class Migration(migrations.Migration):
dependencies = [
("api", "0002_token_migrations"),
("api", "0003_update_provider_unique_constraint_with_is_deleted"),
]

operations = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from django.db import migrations

from api.db_router import MainRouter


Expand Down Expand Up @@ -35,7 +36,7 @@ def create_admin_role(apps, schema_editor):

class Migration(migrations.Migration):
dependencies = [
("api", "0003_rbac"),
("api", "0004_rbac"),
]

operations = [
Expand Down

0 comments on commit 71c58ce

Please sign in to comment.