Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix migration 0062 for sqlite3 #1216

Merged
merged 2 commits into from Jun 25, 2018
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -33,7 +33,13 @@ class Migration(migrations.Migration):
name='uuid',
field=models.UUIDField(primary_key=False, default=uuid.uuid4, serialize=False, editable=False),
),
migrations.RemoveField('TextAnswer', 'id'),
# rename the old id field before deleting it at the end of the
# migration for compatibility with the sqlite driver
migrations.RenameField(
model_name='textanswer',
old_name='id',
new_name='old_id'
),
migrations.RenameField(
model_name='textanswer',
old_name='uuid',
@@ -48,5 +54,6 @@ class Migration(migrations.Migration):
name='textanswer',
options={'ordering': ['id'], 'verbose_name': 'text answer', 'verbose_name_plural': 'text answers'},
),
migrations.RemoveField(model_name='textanswer', name='old_id'),
]

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.