[damned-lies] Fix the initial South migration



commit f8ad32d3f473f82814cc55deb40d1151b0a93427
Author: Stéphane Raimbault <stephane raimbault gmail com>
Date:   Fri Apr 23 03:08:03 2010 +0200

    Fix the initial South migration
    
    - wrong CharField
    - the automatic procedure fails

 README                              |    7 ++++++-
 vertimus/migrations/0001_initial.py |    2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/README b/README
index c13180b..3150aa6 100644
--- a/README
+++ b/README
@@ -49,7 +49,12 @@ Installation
     SCRATCHDIR should point to an existing directory, writable by
     the web application user.
 
-2 - Run 'python manage.py syncdb', then 'python manage.py migrate'
+2 - Run './manage.py syncdb' then:
+    ./manage.py migrate people
+    ./manage.py migrate teams
+    ./manage.py migrate
+
+    Note: The automatic migration fails on interdependencies.
 
 3 - Configure Sites in admin interface to define the 'View on site'
     link.
diff --git a/vertimus/migrations/0001_initial.py b/vertimus/migrations/0001_initial.py
index a27d9e8..ca2d3b1 100644
--- a/vertimus/migrations/0001_initial.py
+++ b/vertimus/migrations/0001_initial.py
@@ -123,7 +123,7 @@ class Migration:
             'Meta': {'unique_together': "(('name', 'module'),)", 'db_table': "'branch'"},
             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
             'module': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['stats.Module']"}),
-            'name': ('BranchCharField', [], {'max_length': '50'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
             'vcs_subpath': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True', 'blank': 'True'})
         },
         'stats.domain': {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]