WARNING: contains migration
Since creatorID is no longer treated as a UUID type in the code from the database we need to make sure that it isn't null in the database. This updates all empty string and null values for this column to the Zero UUID, and makes the column a not null definition with a default fo the Zero UUID.0.6.5-rc1
parent
aec069d161
commit
51a9c91909
|
@ -0,0 +1,7 @@
|
|||
BEGIN;
|
||||
|
||||
update inventoryitems set creatorID = '00000000-0000-0000-0000-000000000000' where creatorID is NULL;
|
||||
update inventoryitems set creatorID = '00000000-0000-0000-0000-000000000000' where creatorID = '';
|
||||
alter table inventoryitems modify column creatorID varchar(36) not NULL default '00000000-0000-0000-0000-000000000000';
|
||||
|
||||
COMMIT;
|
Loading…
Reference in New Issue