Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wedamija committed Nov 22, 2024
1 parent 430899a commit 5539359
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Generated by Django 3.1 on 2019-09-22 21:47

from django.db import migrations

from sentry.new_migrations.migrations import CheckedMigration
from sentry.new_migrations.monkey.models import SafeDeleteModel
from sentry.new_migrations.monkey.state import DeletionAction


class Migration(CheckedMigration):
Expand All @@ -12,11 +11,5 @@ class Migration(CheckedMigration):
]

operations = [
migrations.SeparateDatabaseAndState(
state_operations=[
migrations.DeleteModel(
name="TestTable",
),
]
)
SafeDeleteModel(name="TestTable", deletion_action=DeletionAction.MOVE_TO_PENDING),
]
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
# Generated by Django 3.1 on 2019-09-22 21:47

from django.db import migrations

from sentry.new_migrations.migrations import CheckedMigration
from sentry.new_migrations.monkey.models import SafeDeleteModel
from sentry.new_migrations.monkey.state import DeletionAction


class Migration(CheckedMigration):

dependencies = [
("good_flow_delete_model_state_app", "0001_initial"),
("good_flow_delete_model_state_app", "0002_delete_model_state"),
]

operations = [
migrations.RunSQL('DROP TABLE "good_flow_delete_model_state_app_testtable";'),
SafeDeleteModel(name="TestTable", deletion_action=DeletionAction.DELETE),
]

0 comments on commit 5539359

Please sign in to comment.