7575 - Will skip over out-of-order missing migrations, you can only use this parameter with I(migrate)
7676 required: false
7777 version_added: "1.3"
78+ fake:
79+ description:
80+ - Will fake all migrations in database, you can only use this parameter with 'migrate' command
81+ required: false
82+ version_added: "1.8"
83+ default: "no"
84+ choices: [ "yes", "no" ]
85+ all:
86+ description:
87+ - Will sync all applications in database, you can only use this parameter with 'syncdb' command
88+ required: false
89+ version_added: "1.8"
90+ default: "no"
91+ choices: [ "yes", "no" ]
7892 merge:
7993 description:
8094 - Will run out-of-order or missing migrations as they are not rollback migrations, you can only use this parameter with 'migrate' command
@@ -167,10 +181,10 @@ def main():
167181 createcachetable = ('cache_table' , 'database' , ),
168182 flush = ('database' , ),
169183 loaddata = ('database' , 'fixtures' , ),
170- syncdb = ('database' , ),
184+ syncdb = ('database' , 'all' ),
171185 test = ('failfast' , 'testrunner' , 'liveserver' , 'apps' , ),
172186 validate = (),
173- migrate = ('apps' , 'skip' , 'merge' ),
187+ migrate = ('apps' , 'skip' , 'merge' , 'fake' ),
174188 collectstatic = ('link' , ),
175189 )
176190
@@ -193,7 +207,8 @@ def main():
193207
194208 # These params are automatically added to the command if present
195209 general_params = ('settings' , 'pythonpath' , 'database' ,)
196- specific_boolean_params = ('failfast' , 'skip' , 'merge' , 'link' )
210+ specific_boolean_params = ('failfast' , 'skip' , 'merge' , 'link' , 'all' ,
211+ 'fake' )
197212 end_of_command_params = ('apps' , 'cache_table' , 'fixtures' )
198213
199214 module = AnsibleModule (
@@ -214,6 +229,8 @@ def main():
214229 skip = dict (default = None , required = False , type = 'bool' ),
215230 merge = dict (default = None , required = False , type = 'bool' ),
216231 link = dict (default = None , required = False , type = 'bool' ),
232+ all = dict (default = None , required = False , type = 'bool' ),
233+ fake = dict (default = None , required = False , type = 'bool' ),
217234 ),
218235 )
219236
0 commit comments