Data migration and update version number
authorcavaliet
Mon, 15 Apr 2013 16:33:22 +0200
changeset 78 d108011b6e99
parent 77 55e4f7d90110
child 79 11ff64324cc7
Data migration and update version number
src/ldtplatform/__init__.py
src/ldtplatform/migrations/0001_initial.py
src/ldtplatform/migrations/0002_iri_url_update.py
src/ldtplatform/migrations/__init__.py
src/ldtplatform/models.py
--- a/src/ldtplatform/__init__.py	Fri Apr 12 13:20:45 2013 +0200
+++ b/src/ldtplatform/__init__.py	Mon Apr 15 16:33:22 2013 +0200
@@ -1,4 +1,4 @@
-VERSION = (2, 8, 9, "final", 0)
+VERSION = (2, 8, 10, "final", 0)
 
 VERSION_STR = unicode(".".join(map(lambda i:"%02d" % (i,), VERSION[:2])))
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ldtplatform/migrations/0001_initial.py	Mon Apr 15 16:33:22 2013 +0200
@@ -0,0 +1,20 @@
+# -*- 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):
+        pass
+
+    def backwards(self, orm):
+        pass
+
+    models = {
+        
+    }
+
+    complete_apps = ['ldtplatform']
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ldtplatform/migrations/0002_iri_url_update.py	Mon Apr 15 16:33:22 2013 +0200
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import DataMigration
+from django.db import models
+from django.core.management import call_command
+
+class Migration(DataMigration):
+
+    def forwards(self, orm):
+        # Call the command from ldt_utils app
+        call_command('updateiriurlinprojects')
+
+    def backwards(self, orm):
+        "Write your backwards methods here."
+
+    models = {
+        
+    }
+
+    complete_apps = ['ldtplatform']
+    symmetrical = True