Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
💚 Deal with deferred triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed May 19, 2024
1 parent 3b2a9e2 commit eadfbd1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class Migration(migrations.Migration):
]

operations = [
migrations.RunSQL("SET CONSTRAINTS ALL IMMEDIATE;"),
migrations.RenameField(
model_name="feature",
old_name="type",
Expand Down
10 changes: 10 additions & 0 deletions lnschema_core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2446,6 +2446,16 @@ class Meta:
unique_together = ("run", "paramvalue")


class Migration(Registry):
app = models.CharField(max_length=255)
name = models.CharField(max_length=255)
applied = models.DateTimeField()

class Meta:
db_table = "django_migrations"
managed = False


# -------------------------------------------------------------------------------------
# Low-level logic needed in lamindb-setup

Expand Down

0 comments on commit eadfbd1

Please sign in to comment.