Skip to content

Commit 255da4b

Browse files
committed
Fix downgrade migration
1 parent 86e92f4 commit 255da4b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

syncmaster/db/migrations/versions/2025-08-10_0012_update_ts.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,7 @@ def downgrade() -> None:
201201
"search_vector",
202202
postgresql.TSVECTOR(),
203203
sa.Computed(
204-
"to_tsvector('english'::regconfig, "
205-
"name || ' ') || "
204+
"to_tsvector('english'::regconfig, name || ' ') || "
206205
"COALESCE(json_extract_path_text(source_params, VARIADIC ARRAY['table_name']), '') || ' ' || "
207206
"COALESCE(json_extract_path_text(target_params, VARIADIC ARRAY['table_name']), '') || ' ' || "
208207
"COALESCE(json_extract_path_text(source_params, VARIADIC ARRAY['directory_path']), '') || ' ' || "
@@ -211,7 +210,7 @@ def downgrade() -> None:
211210
"COALESCE(translate(json_extract_path_text(source_params, VARIADIC ARRAY['table_name']), './', ' '), '') || ' ' || "
212211
"COALESCE(translate(json_extract_path_text(target_params, VARIADIC ARRAY['table_name']), './', ' '), '') || ' ' || "
213212
"COALESCE(translate(json_extract_path_text(source_params, VARIADIC ARRAY['directory_path']), './', ' '), '') || ' ' || "
214-
"COALESCE(translate(json_extract_path_text(target_params, VARIADIC ARRAY['directory_path']), './', ' '), ''))",
213+
"COALESCE(translate(json_extract_path_text(target_params, VARIADIC ARRAY['directory_path']), './', ' '), '')",
215214
persisted=True,
216215
),
217216
autoincrement=False,

0 commit comments

Comments
 (0)