Skip to content

Commit

Permalink
Restore original migration
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber committed Jan 30, 2025
1 parent df00e9c commit 487e8c9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,32 +1,22 @@
# Generated by Django 4.2.18 on 2025-01-29 20:31
# Generated by Django 4.2.18 on 2025-01-30 00:30

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

from posthog.models.tagged_item import TaggedItem


class Migration(migrations.Migration):
dependencies = [
("posthog", "0556_add_execution_order_to_hog_functions"),
]

operations = [
migrations.SeparateDatabaseAndState(
state_operations=[
migrations.RemoveConstraint(
model_name="taggeditem",
name="exactly_one_related_object",
),
],
database_operations=[
migrations.RunSQL(
sql='ALTER TABLE "{}" DROP CONSTRAINT IF EXISTS "exactly_one_related_object";'.format(
TaggedItem._meta.db_table
),
reverse_sql="",
),
],
migrations.RemoveConstraint(
model_name="taggeditem",
name="exactly_one_related_object",
),
migrations.AlterUniqueTogether(
name="taggeditem",
unique_together=set(),
),
migrations.AddField(
model_name="taggeditem",
Expand Down
2 changes: 1 addition & 1 deletion posthog/migrations/max_migration.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0557_add_tags_to_experiment_saved_metrics
0557_add_tags_to_experiment_saved_metric

0 comments on commit 487e8c9

Please sign in to comment.