2007-08-16 14:06:55 +08:00
|
|
|
from django.core.management.base import AppCommand
|
|
|
|
|
|
|
|
class Command(AppCommand):
|
|
|
|
help = "Prints the DROP TABLE SQL statements for the given app name(s)."
|
|
|
|
|
|
|
|
output_transaction = True
|
|
|
|
|
|
|
|
def handle_app(self, app, **options):
|
|
|
|
from django.core.management.sql import sql_delete
|
2008-06-19 22:38:56 +08:00
|
|
|
return u'\n'.join(sql_delete(app, self.style)).encode('utf-8')
|