mirror of https://github.com/sipwise/db-schema.git
There are 2 .up scripts that modify voip_allowed_ip_groups.ipnet
15702.up - modifies it to varchar(43)
15710.up - modifies it to varchar(46)
Because in 15710.up was backported into mr9.5 but is missing in mr10.5,
existing upgrades from mr9.5 -> mr10.5 apply 15702 after 15710.up,
effectively downgrading the column to varchar(46).
This .up script fixes the scenario and also the .down script modifies
the column also to varchar(46) to respect the previous 15710.up the
sets it to varchar(46), so to achieve the consistent state.
Change-Id: If14917ef437de3abf46b1900f68c9cc3a9a4b947
(cherry picked from commit 9c6ef86372
)
mr11.2
parent
3d925ecde8
commit
0789f71e17
@ -0,0 +1,4 @@
|
||||
use provisioning;
|
||||
# this is a fixup and the column was already supposed to be varchar(46), therefore,
|
||||
# bringing it back to the state it comes with in 15710.up
|
||||
alter table voip_allowed_ip_groups modify column ipnet varchar(46) not null;
|
@ -0,0 +1,2 @@
|
||||
use provisioning;
|
||||
alter table voip_allowed_ip_groups modify column ipnet varchar(46) not null;
|
Loading…
Reference in new issue