summaryrefslogtreecommitdiffstats
path: root/upgrades/dbpatches/1.3/mysql/1.3/hosts_templates.sql
blob: 93872a12a2ddcef3c1de617bb3ff729867c18ea3 (plain)
1
2
3
4
5
6
7
CREATE TABLE hosts_templates (
	hosttemplateid		bigint unsigned		DEFAULT '0'	NOT NULL,
	hostid		bigint unsigned		DEFAULT '0'	NOT NULL,
	templateid		bigint unsigned		DEFAULT '0'	NOT NULL,
	PRIMARY KEY (hosttemplateid)
);
CREATE UNIQUE INDEX hosts_templates_1 on hosts_templates (hostid,templateid);