(self, schema_editor, extension)
| 56 | get_citext_oids.cache_clear() |
| 57 | |
| 58 | def extension_exists(self, schema_editor, extension): |
| 59 | with schema_editor.connection.cursor() as cursor: |
| 60 | cursor.execute( |
| 61 | "SELECT 1 FROM pg_extension WHERE extname = %s", |
| 62 | [extension], |
| 63 | ) |
| 64 | return bool(cursor.fetchone()) |
| 65 | |
| 66 | def describe(self): |
| 67 | return "Creates extension %s" % self.name |
no test coverage detected