-- Upgrade script to move table naming to JIRA 3.7

alter table notification rename column type to notif_type;
alter table notification rename column parameter to notif_parameter;
alter table mailserver rename column type to server_type;
alter table jiraeventtype rename column type to event_type;
alter table schemepermissions rename column type to perm_type;
alter table schemepermissions rename column parameter to perm_parameter;
alter table fieldlayout rename column type to layout_type;
alter table schemeissuesecurities rename column type to sec_type;
alter table schemeissuesecurities rename column parameter to sec_parameter;
alter table portletconfiguration rename column position to positionseq;
alter table version rename to projectversion;