@@ -157,7 +157,9 @@ Once we set the schema to a desired state, we can start migrating the **data** b
157
157
$$ UPDATE {{ .source_schema }}.db_migrations set name='add_createat_to_teamembers' where version=92; $$,
158
158
$$ CREATE INDEX IF NOT EXISTS idx_posts_message_txt ON {{ .source_schema }}.posts USING gin(to_tsvector('english', message)); $$,
159
159
$$ CREATE INDEX IF NOT EXISTS idx_fileinfo_content_txt ON {{ .source_schema }}.fileinfo USING gin(to_tsvector('english', content)); $$,
160
- $$ ALTER SCHEMA {{ .source_schema }} RENAME TO public; $$;
160
+ $$ ALTER SCHEMA {{ .source_schema }} RENAME TO public; $$,
161
+ $$ SELECT pg_catalog.set_config('search_path', '"$user", public', false); $$,
162
+ $$ ALTER USER {{ .pg_user }} SET SEARCH_PATH TO 'public'; $$;
161
163
162
164
Once you save this configuration file, e.g. ``migration.load ``, you can run the ``pgLoader `` with the following command:
163
165
@@ -301,7 +303,7 @@ Once we are ready to migrate, we can start migrating the **schema** and the **da
301
303
$$ CREATE INDEX IF NOT EXISTS ir_playbookmember_playbookid on {{ .source_schema }}.IR_PlaybookMember(PlaybookId); $$,
302
304
$$ ALTER SCHEMA {{ .source_schema }} RENAME TO public; $$,
303
305
$$ SELECT pg_catalog.set_config('search_path', '"$user", public', false); $$,
304
- $$ ALTER USER mmuser SET SEARCH_PATH TO 'public'; $$;
306
+ $$ ALTER USER {{ .pg_user }} SET SEARCH_PATH TO 'public'; $$;
305
307
306
308
.. code :: bash
307
309
@@ -358,7 +360,7 @@ Once we are ready to migrate, we can start migrating the **schema** and the **da
358
360
$$ UPDATE {{ .source_schema }}.focalboard_users SET `props` = "{}" WHERE `fields` = ""; $$,
359
361
$$ ALTER SCHEMA {{ .source_schema }} RENAME TO public; $$,
360
362
$$ SELECT pg_catalog.set_config('search_path', '"$user", public', false); $$,
361
- $$ ALTER USER mmuser SET SEARCH_PATH TO 'public'; $$;
363
+ $$ ALTER USER {{ .pg_user }} SET SEARCH_PATH TO 'public'; $$;
362
364
363
365
.. code :: bash
364
366
0 commit comments