1
3
from django.core.management.base import AppCommand
3
7
class Command(AppCommand):
4
8
help = "Prints the DROP TABLE SQL, then the CREATE TABLE SQL, for the given app name(s)."
11
make_option('--database', action='store', dest='database',
6
17
output_transaction = True
8
19
def handle_app(self, app, **options):
20
return u'\n'.join(sql_reset(app, self.style, connections[options.get('database', DEFAULT_DB_ALIAS)])).encode('utf-8')