Ticket #14268: reset_sqlreset_warnings.diff
File reset_sqlreset_warnings.diff, 3.4 KB (added by , 14 years ago) |
---|
-
django/core/management/commands/reset.py
20 20 output_transaction = True 21 21 22 22 def handle_app(self, app, **options): 23 # This command breaks a lot and should be deprecated 24 import warnings 25 warnings.warn( 26 'This command has been deprecated. The command ``flush`` can be used to delete everything. You can also use ALTER TABLE or DROP TABLE statements manually.', 27 PendingDeprecationWarning 28 ) 23 29 using = options.get('database', DEFAULT_DB_ALIAS) 24 30 connection = connections[using] 25 31 -
django/core/management/sql.py
101 101 102 102 def sql_reset(app, style, connection): 103 103 "Returns a list of the DROP TABLE SQL, then the CREATE TABLE SQL, for the given module." 104 # This command breaks a lot and should be deprecated 105 import warnings 106 warnings.warn( 107 'This command has been deprecated. The command ``sqlflush`` can be used to delete everything. You can also use ALTER TABLE or DROP TABLE statements manually.', 108 PendingDeprecationWarning 109 ) 104 110 return sql_delete(app, style, connection) + sql_all(app, style, connection) 105 111 106 112 def sql_flush(style, connection, only_django=False): -
docs/releases/1.3.txt
106 106 encouraged you redeploy your Django instances using :doc:`mod_wsgi 107 107 </howto/deployment/modwsgi>`. 108 108 109 ``reset`` and ``sqlreset`` management commands 110 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 111 112 Those commands have been deprecated. The ``flush`` and ``sqlflush`` commands 113 can be used to delete everything. You can also use ALTER TABLE or DROP TABLE 114 statements manually. 115 116 109 117 What's new in Django 1.3 110 118 ======================== 111 119 -
docs/ref/django-admin.txt
72 72 0.95 73 73 0.96 74 74 0.97-pre-SVN-6069 75 1.3 pre-alpha SVN-13981 75 76 76 77 Displaying debug output 77 78 ----------------------- … … 514 515 reset <appname appname ...> 515 516 --------------------------- 516 517 518 .. deprecated:: 1.3 519 This command has been deprecated. The ``flush`` can be used to delete 520 everything. You can also use ALTER TABLE or DROP TABLE statements manually. 521 517 522 .. django-admin:: reset 518 523 519 524 Executes the equivalent of ``sqlreset`` for the given app name(s). … … (this hunk was shorter than expected) 526 531 The :djadminopt:`--database` option can be used to specify the alias 527 532 of the database to reset. 528 533 529 534 runfcgi [options] 530 535 ----------------- 531 536 … … 729 735 sqlreset <appname appname ...> 730 736 ------------------------------ 731 737 738 .. deprecated:: 1.3 739 This command has been deprecated. The ``sqlflush`` can be used to delete 740 everything. You can also use ALTER TABLE or DROP TABLE statements manually. 741 732 742 .. django-admin:: sqlreset 733 743 734 744 Prints the DROP TABLE SQL, then the CREATE TABLE SQL, for the given app name(s).