mirror of https://github.com/sipwise/db-schema.git
* the ngcp.timezone table is not replicated and hence
the script must be also not replicated.
- the script is renamed to _not_replicated
- the ALTER TABLE ADD COLUMN is enhanced with
"IF NOT EXISTS" to mitigate scenarios where
somebody manually added the column on the other node,
and to ensure that the upgrades are safe
Change-Id: Ic44f76b5f3f43ae4124cebad30d559224fa90b31
(cherry picked from commit ff81df911a
)
mr11.2
parent
3bfcf706c9
commit
3d925ecde8
@ -1,3 +0,0 @@
|
|||||||
USE ngcp;
|
|
||||||
|
|
||||||
ALTER TABLE timezone ADD COLUMN version VARCHAR(32);
|
|
@ -1,3 +1,4 @@
|
|||||||
USE ngcp;
|
USE ngcp;
|
||||||
|
SET sql_log_bin=0;
|
||||||
|
|
||||||
ALTER TABLE timezone DROP COLUMN version;
|
ALTER TABLE timezone DROP COLUMN version;
|
@ -0,0 +1,4 @@
|
|||||||
|
USE ngcp;
|
||||||
|
SET sql_log_bin=0;
|
||||||
|
|
||||||
|
ALTER TABLE timezone ADD COLUMN IF NOT EXISTS version VARCHAR(32);
|
Loading…
Reference in new issue