Skip to content

Commit

Permalink
Added migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
flashingpumpkin committed Mar 2, 2012
1 parent a6b0aed commit dc2260a
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 1 deletion.
2 changes: 1 addition & 1 deletion inviter/__init__.py
@@ -1 +1 @@
__version__ = "0.2.1"
__version__ = "0.2.2"
33 changes: 33 additions & 0 deletions inviter/migrations/0001_initial.py
@@ -0,0 +1,33 @@
# encoding: 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 model 'OptOut'
db.create_table('inviter_optout', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('hash', self.gf('django.db.models.fields.CharField')(max_length=32)),
))
db.send_create_signal('inviter', ['OptOut'])


def backwards(self, orm):

# Deleting model 'OptOut'
db.delete_table('inviter_optout')


models = {
'inviter.optout': {
'Meta': {'object_name': 'OptOut'},
'hash': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
}
}

complete_apps = ['inviter']
29 changes: 29 additions & 0 deletions inviter/migrations/0002_auto__chg_field_optout_hash.py
@@ -0,0 +1,29 @@
# encoding: 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):

# Changing field 'OptOut.hash'
db.alter_column('inviter_optout', 'hash', self.gf('django.db.models.fields.CharField')(max_length=255))


def backwards(self, orm):

# Changing field 'OptOut.hash'
db.alter_column('inviter_optout', 'hash', self.gf('django.db.models.fields.CharField')(max_length=32))


models = {
'inviter.optout': {
'Meta': {'object_name': 'OptOut'},
'hash': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
}
}

complete_apps = ['inviter']
Empty file added inviter/migrations/__init__.py
Empty file.

0 comments on commit dc2260a

Please sign in to comment.