TT#57959 Fix NULL field in the unique index

Change-Id: I00f8f5604b99c831ff737156a24aecf39c6d88c5
(cherry picked from commit dbf2accf23)
(cherry picked from commit cb9d4282aa)
changes/63/30363/1
Irina Peshinskaya 7 years ago
parent 37b8d6ccbb
commit 31d0fa3eb4

@ -0,0 +1,9 @@
SET autocommit=0;
USE billing;
alter table billing.billing_profiles change terminate_timestamp terminate_timestamp timestamp null default null;
update billing.billing_profiles set terminate_timestamp = null where terminate_timestamp = '0000-00-00 00:00:00';
commit;

@ -0,0 +1,9 @@
set autocommit=0;
use billing;
update billing.billing_profiles set terminate_timestamp = '0000-00-00 00:00:00' where terminate_timestamp is null;
alter table billing.billing_profiles change terminate_timestamp terminate_timestamp timestamp not null default '0000-00-00 00:00:00';
commit;
Loading…
Cancel
Save