Commits

Mikhail Korobov committed 2f8e1c1

миграции переведены на более новую версию south

Comments (0)

Files changed (3)

robokassa/migrations/0001_initial.py

-#coding: utf-8
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
 
-from south.db import db
-from django.db import models
-from robokassa.models import *
 
-class Migration:
-    
+class Migration(SchemaMigration):
+
     def forwards(self, orm):
-        
         # Adding model 'SuccessNotification'
         db.create_table('robokassa_successnotification', (
-            ('id', orm['robokassa.SuccessNotification:id']),
-            ('InvId', orm['robokassa.SuccessNotification:InvId']),
-            ('OutSum', orm['robokassa.SuccessNotification:OutSum']),
-            ('created_at', orm['robokassa.SuccessNotification:created_at']),
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('InvId', self.gf('django.db.models.fields.IntegerField')(db_index=True)),
+            ('OutSum', self.gf('django.db.models.fields.CharField')(max_length=15)),
+            ('created_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
         ))
         db.send_create_signal('robokassa', ['SuccessNotification'])
-        
-    
-    
+
     def backwards(self, orm):
-        
         # Deleting model 'SuccessNotification'
         db.delete_table('robokassa_successnotification')
-        
-    
-    
+
     models = {
         'robokassa.successnotification': {
             'InvId': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}),
+            'Meta': {'object_name': 'SuccessNotification'},
             'OutSum': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
             'created_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
         }
     }
-    
-    complete_apps = ['robokassa']
+
+    complete_apps = ['robokassa']
 from django.core.management import call_command
 
 settings.configure(
-    INSTALLED_APPS=('robokassa',),
+    INSTALLED_APPS=('robokassa', 'south'),
     DATABASE_ENGINE = 'sqlite3',
     DATABASES = {
         'default': {
 [testenv]
 deps=
     django == 1.4
+    south
 
 commands=
     python runtests.py
 [testenv:dj13]
 deps =
     django == 1.3.1
+    south