(self, app_label, schema_editor, from_state, to_state)
| 222 | category = OperationCategory.ADDITION |
| 223 | |
| 224 | def database_forwards(self, app_label, schema_editor, from_state, to_state): |
| 225 | if schema_editor.connection.vendor != "postgresql" or not router.allow_migrate( |
| 226 | schema_editor.connection.alias, app_label |
| 227 | ): |
| 228 | return |
| 229 | self.create_collation(schema_editor) |
| 230 | |
| 231 | def database_backwards(self, app_label, schema_editor, from_state, to_state): |
| 232 | if not router.allow_migrate(schema_editor.connection.alias, app_label): |