Skip to content

Commit

Permalink
Update 0016_alter_explorervalue_key.py (#648)
Browse files Browse the repository at this point in the history
I want to run this command to delete the explorer tables, but explorer.0016_alter_explorervalue_key cannot be reversed!

'python manage.py migrate explorer zero'
  • Loading branch information
abedimhosein authored Jul 23, 2024
1 parent 3c35b37 commit 724bbec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion explorer/migrations/0016_alter_explorervalue_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ def insert_assistant_prompt(apps, schema_editor):
"""
)

def insert_assistant_prompt_reverse(apps, schema_editor):
pass


class Migration(migrations.Migration):

Expand All @@ -30,5 +33,5 @@ class Migration(migrations.Migration):
name='key',
field=models.CharField(choices=[('UUID', 'Install Unique ID'), ('SMLS', 'Startup metric last send'), ('ASP', 'System prompt for SQL Assistant')], max_length=5, unique=True),
),
migrations.RunPython(insert_assistant_prompt),
migrations.RunPython(insert_assistant_prompt, reverse_code=insert_assistant_prompt_reverse),
]

0 comments on commit 724bbec

Please sign in to comment.