1 2
alter table hosts add templateid int4 DEFAULT '0' NOT NULL; alter table items add templateid int4 DEFAULT '0' NOT NULL;