mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Add sqldropindexes to manage
Change patch from https://code.djangoproject.com/ticket/5568 to work on modern Django. Add special case for MySQL which has different syntax for DROP INDEX. Add unit tests for the new functionality.
This commit is contained in:
		| @@ -66,7 +66,7 @@ class BashCompletionTests(unittest.TestCase): | ||||
|         "Subcommands can be autocompleted" | ||||
|         self._user_input('django-admin.py sql') | ||||
|         output = self._run_autocomplete() | ||||
|         self.assertEqual(output, ['sql sqlall sqlclear sqlcustom sqlflush sqlindexes sqlinitialdata sqlsequencereset']) | ||||
|         self.assertEqual(output, ['sql sqlall sqlclear sqlcustom sqldropindexes sqlflush sqlindexes sqlinitialdata sqlsequencereset']) | ||||
|  | ||||
|     def test_help(self): | ||||
|         "No errors, just an empty list if there are no autocomplete options" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user