(self, app_label, schema_editor, from_state, to_state)
| 112 | self._run_sql(schema_editor, self.sql) |
| 113 | |
| 114 | def database_backwards(self, app_label, schema_editor, from_state, to_state): |
| 115 | if self.reverse_sql is None: |
| 116 | raise NotImplementedError("You cannot reverse this operation") |
| 117 | if router.allow_migrate( |
| 118 | schema_editor.connection.alias, app_label, **self.hints |
| 119 | ): |
| 120 | self._run_sql(schema_editor, self.reverse_sql) |
| 121 | |
| 122 | def describe(self): |
| 123 | return "Raw SQL operation" |