Last active
May 5, 2017 18:22
-
-
Save RobinIsTheBird/348f62758f4bdbe58f66be09854c2f06 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
from django.db import migrations | |
class Migration(migrations.Migration): | |
class RemoveSpeciesUdfs(migrations.RemoveField): | |
def database_backwards( | |
self, app_label, schema_editor, from_state, to_state): | |
migrations.RunSQL( | |
"ALTER TABLE treemap_species " | |
"ADD COLUMN udfs hstore NOT NULL DEFAULT ''") | |
dependencies = [ | |
('treemap', '0042_auto_20170112_1603'), | |
] | |
operations = [ | |
RemoveSpeciesUdfs( | |
model_name='species', | |
name='udfs', | |
), | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment