TT#57959 Fix NULL field in the unique index

Change-Id: I00f8f5604b99c831ff737156a24aecf39c6d88c5
(cherry picked from commit dc68e3a35a)
changes/59/30359/4
Irina Peshinskaya 7 years ago
parent c9d578357c
commit e682f93e22

@ -0,0 +1,9 @@
SET autocommit=0;
USE billing;
alter table billing.billing_profiles modify 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 modify terminate_timestamp timestamp not null default '0000-00-00 00:00:00';
commit;
Loading…
Cancel
Save