
# Add the pt_core_plugins table

DROP TABLE IF EXISTS pt_core_plugins;
CREATE TABLE pt_core_plugins (
  plugin_id int(11) DEFAULT '0' NOT NULL auto_increment,
  name varchar(30) NOT NULL,
  type enum('app','help','template'),
  PRIMARY KEY (plugin_id)
);

# Add the last modified field to pt_core_profiles
ALTER TABLE pt_core_profiles ADD last_modified enum('Y','N') DEFAULT 'Y' NOT NULL;

# Drop the open and close columns from the profile table

ALTER TABLE pt_core_profiles DROP header1_open, DROP header1_close, DROP header2_open, DROP header2_close, DROP header3_open, DROP header3_close, DROP text1_open, DROP text1_close, DROP text2_open, DROP text2_close, DROP text3_open, DROP text3_close;
