
michael@16: INSERT INTO version (table_name, table_version) values ('gw','8');
michael@16: CREATE TABLE gw (
michael@16:     id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
michael@16:     gw_name CHAR(128) NOT NULL,
michael@16:     grp_id INT UNSIGNED NOT NULL,
michael@16:     ip_addr CHAR(15) NOT NULL,
michael@16:     port SMALLINT UNSIGNED,
michael@16:     uri_scheme TINYINT UNSIGNED,
michael@16:     transport TINYINT UNSIGNED,
michael@16:     strip TINYINT UNSIGNED,
michael@16:     tag CHAR(16) DEFAULT NULL,
michael@16:     flags INT UNSIGNED DEFAULT 0 NOT NULL,
michael@16:     CONSTRAINT gw_name_idx UNIQUE (gw_name)
michael@16: ) ENGINE=MyISAM;
michael@16: 
michael@16: CREATE INDEX grp_id_idx ON gw (grp_id);
michael@16: 
michael@16: INSERT INTO version (table_name, table_version) values ('lcr','3');
michael@16: CREATE TABLE lcr (
michael@16:     id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
michael@16:     prefix CHAR(16) DEFAULT NULL,
michael@16:     from_uri CHAR(64) DEFAULT NULL,
michael@16:     grp_id INT UNSIGNED NOT NULL,
michael@16:     priority INT UNSIGNED NOT NULL
michael@16: ) ENGINE=MyISAM;
michael@16: 
michael@16: CREATE INDEX prefix_idx ON lcr (prefix);
michael@16: CREATE INDEX from_uri_idx ON lcr (from_uri);
michael@16: CREATE INDEX grp_id_idx ON lcr (grp_id);
michael@16: 




