From 78e1187c0301eb172524f25aae91ce600ac5f63a Mon Sep 17 00:00:00 2001 From: ash hofferber Date: Thu, 21 Sep 2017 15:05:00 -0400 Subject: [PATCH] updates migration to not use south --- loaderio/migrations/0001_initial.py | 42 ++++++++----------- ...0002_auto__add_field_validation_enabled.py | 31 -------------- 2 files changed, 17 insertions(+), 56 deletions(-) delete mode 100644 loaderio/migrations/0002_auto__add_field_validation_enabled.py diff --git a/loaderio/migrations/0001_initial.py b/loaderio/migrations/0001_initial.py index 15a9ae4..278ccca 100644 --- a/loaderio/migrations/0001_initial.py +++ b/loaderio/migrations/0001_initial.py @@ -1,32 +1,24 @@ # -*- coding: utf-8 -*- -from south.utils import datetime_utils as datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models +# Generated by Django 1.11.5 on 2017-09-21 17:55 +from __future__ import unicode_literals +from django.db import migrations, models -class Migration(SchemaMigration): - def forwards(self, orm): - # Adding model 'Validation' - db.create_table(u'loaderio_validation', ( - (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('token', self.gf('django.db.models.fields.CharField')(max_length=50)), - )) - db.send_create_signal(u'loaderio', ['Validation']) +class Migration(migrations.Migration): + initial = True - def backwards(self, orm): - # Deleting model 'Validation' - db.delete_table(u'loaderio_validation') + dependencies = [ + ] - - models = { - u'loaderio.validation': { - 'Meta': {'object_name': 'Validation'}, - u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'token': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - } - } - - complete_apps = ['loaderio'] \ No newline at end of file + operations = [ + migrations.CreateModel( + name='Validation', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('token', models.CharField(max_length=50)), + ('enabled', models.BooleanField(default=True)), + ], + ), + ] diff --git a/loaderio/migrations/0002_auto__add_field_validation_enabled.py b/loaderio/migrations/0002_auto__add_field_validation_enabled.py deleted file mode 100644 index 5595d75..0000000 --- a/loaderio/migrations/0002_auto__add_field_validation_enabled.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -from south.utils import datetime_utils as datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - - -class Migration(SchemaMigration): - - def forwards(self, orm): - # Adding field 'Validation.enabled' - db.add_column(u'loaderio_validation', 'enabled', - self.gf('django.db.models.fields.BooleanField')(default=True), - keep_default=False) - - - def backwards(self, orm): - # Deleting field 'Validation.enabled' - db.delete_column(u'loaderio_validation', 'enabled') - - - models = { - u'loaderio.validation': { - 'Meta': {'object_name': 'Validation'}, - 'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), - u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'token': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - } - } - - complete_apps = ['loaderio'] \ No newline at end of file