2016-04-24 17:08:51 +02:00
|
|
|
from django.conf import settings
|
2020-01-14 21:59:46 +01:00
|
|
|
from django.db import migrations
|
2016-04-24 17:08:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
2021-02-12 08:20:45 +01:00
|
|
|
("zerver", "0001_initial"),
|
2016-04-24 17:08:51 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
database_setting = settings.DATABASES["default"]
|
2021-05-28 01:21:40 +02:00
|
|
|
|
|
|
|
operations = [
|
2021-05-28 02:39:59 +02:00
|
|
|
# This previously had additional operations, but they are all
|
|
|
|
# undone in migration 0003 because we switched to using the
|
|
|
|
# PGroonga v2 API.
|
2021-05-28 01:21:40 +02:00
|
|
|
migrations.RunSQL(
|
2021-05-28 02:39:59 +02:00
|
|
|
sql="ALTER TABLE zerver_message ADD COLUMN search_pgroonga text;",
|
|
|
|
reverse_sql="ALTER TABLE zerver_message DROP COLUMN search_pgroonga;",
|
2021-05-28 01:21:40 +02:00
|
|
|
),
|
|
|
|
]
|