You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy the tables (and JUST the tables) from envo A to envo B.
Problems with the instructions above is that:
it's not one step
it's not clear how to update the lambdas
i have no idea how to copy just the table from env to another
sometimes i don't have two envs, my source is typically a sql dump
Problem: Restore from a SQL dump
I have a dev-backup-1554901903.sql that has some triggers as:
DEFINER=unee_t_root
and others as:
DEFINER=root
and therefore inconsistent and therfore the restore halts as root when reaching the unee_t_root trigger stanzas, and similarly halts as unee_t_root when encountering root stanzas.
I'm not quite sure:
why root can't restore unee_t_root triggers
why we even have uneet_t_root, i.e. two super users that can't seem to perform each others super user actions
how to get out this mess... two dumps?! one for root, and one for unee_t_root?!
Proposed solution:
unee_t_root definers are renamed to root. And unee_t_root which has already cost several hours in confusion/complexity can be dropped.
The text was updated successfully, but these errors were encountered:
There are two ways how you can handle the following error.
Replace the user of the definer to a single user. This means that either keep all the definer as "unee_t_root" or as "bugzilla". And then use the specified user for restoring the dump.
Remove the definer from all the triggers inside the dump file. After the definer is removed and the restoration is performed, all the triggers will have the master user as the definer now.
From https://unee-t.slack.com/archives/C7GL8EHFG/p1555030044168700?thread_ts=1555029839.168300&cid=C7GL8EHFG
The procedure is said to be:
https://github.com/unee-t/bz-database/blob/master/db%20snapshots/unee-t_BZDb_clean_current.sql
https://github.com/unee-t/bz-database/blob/master/db%20scripts%20to%20add%20objects%20to%20the%20schema/Add_all_lambda_related_objects_v4.33.1.sql
Problems with the instructions above is that:
Problem: Restore from a SQL dump
I have a dev-backup-1554901903.sql that has some triggers as:
unee_t_root
and others as:
root
and therefore inconsistent and therfore the restore halts as root when reaching the unee_t_root trigger stanzas, and similarly halts as unee_t_root when encountering root stanzas.
I'm not quite sure:
Proposed solution:
unee_t_root definers are renamed to root. And unee_t_root which has already cost several hours in confusion/complexity can be dropped.
The text was updated successfully, but these errors were encountered: