Permalink
Browse files

Add migration for datetime change.

This should have been done when we changed this in the model, but it
wasn't.
  • Loading branch information...
1 parent 73e1619 commit 2c651b7083ec368ebf226364a1a1aba5f5ec147e @mythmon committed Oct 8, 2012
Showing with 37 additions and 0 deletions.
  1. +37 −0 fjord/feedback/migrations/0003_auto__chg_field_simple_created.py
@@ -0,0 +1,37 @@
+# -*- 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):
+
+ # Changing field 'Simple.created'
+ db.alter_column('feedback_simple', 'created', self.gf('django.db.models.fields.DateTimeField')())
+
+ def backwards(self, orm):
+
+ # Changing field 'Simple.created'
+ db.alter_column('feedback_simple', 'created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True))
+
+ models = {
+ 'feedback.simple': {
+ 'Meta': {'ordering': "['-created']", 'object_name': 'Simple'},
+ 'browser': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
+ 'browser_version': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
+ 'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+ 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+ 'happy': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'locale': ('django.db.models.fields.CharField', [], {'max_length': '8', 'blank': 'True'}),
+ 'platform': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
+ 'prodchan': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+ 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
+ 'user_agent': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'})
+ }
+ }
+
+ complete_apps = ['feedback']

0 comments on commit 2c651b7

Please sign in to comment.