diff --git a/django/db/backends/schema.py b/django/db/backends/schema.py index d868bf79b5..0a283b7fd8 100644 --- a/django/db/backends/schema.py +++ b/django/db/backends/schema.py @@ -312,7 +312,7 @@ class BaseDatabaseSchemaEditor(object): """ Moves a model's table between tablespaces """ - self.execute(self.sql_rename_table % { + self.execute(self.sql_retablespace_table % { "table": self.quote_name(model._meta.db_table), "old_tablespace": self.quote_name(old_db_tablespace), "new_tablespace": self.quote_name(new_db_tablespace),