# The full-text index for Stöbern (podcasts/discover.py): SQLite FTS5, contentless. from django.db import migrations from podcasts.discover import CREATE_SQL, DROP_SQL def create(apps, schema_editor): if schema_editor.connection.vendor != 'sqlite': return for sql in CREATE_SQL: schema_editor.execute(sql) def drop(apps, schema_editor): if schema_editor.connection.vendor != 'sqlite': return for sql in DROP_SQL: schema_editor.execute(sql) class Migration(migrations.Migration): dependencies = [ ('podcasts', '0022_lists_and_levels'), ] operations = [migrations.RunPython(create, drop)]