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