Source

django-petition / petition / migrations / 0003_auto__add_field_signature_confirmed.py

Full commit
Kevin Veroneau 7aa8f3c 


































# -*- coding: utf-8 -*-
import 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 'Signature.confirmed'
        db.add_column('petition_signature', 'confirmed',
                      self.gf('django.db.models.fields.BooleanField')(default=False),
                      keep_default=False)


    def backwards(self, orm):
        # Deleting field 'Signature.confirmed'
        db.delete_column('petition_signature', 'confirmed')


    models = {
        'petition.signature': {
            'Meta': {'unique_together': "(('first_name', 'last_name'),)", 'object_name': 'Signature'},
            'confirmed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'country': ('petition.fields.CountryField', [], {'default': "'US'", 'max_length': '2'}),
            'date_signed': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'email': ('django.db.models.fields.EmailField', [], {'unique': 'True', 'max_length': '75'}),
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '60'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '60'}),
            'state': ('django.db.models.fields.CharField', [], {'max_length': '40'})
        }
    }

    complete_apps = ['petition']