~ubuntuone-pqm-team/django-south/stable

« back to all changes in this revision

Viewing changes to south/management/commands/startmigration.py

  • Committer: Ricardo Kirkner
  • Date: 2013-06-10 00:19:31 UTC
  • Revision ID: ricardo.kirkner@canonical.com-20130610001931-azfj57kme0qd4uca
Tags: 0.8
added South-0.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
Now-obsolete startmigration command.
3
3
"""
4
4
 
 
5
from __future__ import print_function
 
6
 
5
7
from optparse import make_option
6
8
 
7
9
from django.core.management.base import BaseCommand
10
12
class Command(BaseCommand):
11
13
    option_list = BaseCommand.option_list + (
12
14
        make_option('--model', action='append', dest='added_model_list', type='string',
13
 
            help='Generate a Create Table migration for the specified model.  Add multiple models to this migration with subsequent --model parameters.'),
 
15
            help='Generate a Create Table migration for the specified model.  Add multiple models to this migration with subsequent --add-model parameters.'),
14
16
        make_option('--add-field', action='append', dest='added_field_list', type='string',
15
17
            help='Generate an Add Column migration for the specified modelname.fieldname - you can use this multiple times to add more than one column.'),
16
18
        make_option('--add-index', action='append', dest='added_index_list', type='string',
28
30
    
29
31
    def handle(self, app=None, name="", added_model_list=None, added_field_list=None, initial=False, freeze_list=None, auto=False, stdout=False, added_index_list=None, **options):
30
32
        
31
 
        print "The 'startmigration' command is now deprecated; please use the new 'schemamigration' and 'datamigration' commands."
 
 
b'\\ No newline at end of file'
 
33
        print("The 'startmigration' command is now deprecated; please use the new 'schemamigration' and 'datamigration' commands.")