CREATE TABLE user_newtalk (
user_id INTEGER NOT NULL REFERENCES mwuser(user_id) ON DELETE CASCADE,
- user_ip CIDR NULL
+ user_ip TEXT NULL
);
CREATE INDEX user_newtalk_id_idx ON user_newtalk (user_id);
CREATE INDEX user_newtalk_ip_idx ON user_newtalk (user_ip);
a2.ar_namespace = OLD.ar_namespace AND
a2.ar_rev_id = OLD.ar_rev_id;
+-- Another misleadingly named column! :)
+ALTER TABLE user_newtalk ALTER user_ip TYPE TEXT USING host(user_ip);
-- Note this upgrade
INSERT INTO mediawiki_version (type,mw_version,notes)