--- contemplate.install.dist 2007-12-20 17:10:48.000000000 -0500 +++ contemplate.install 2007-12-20 17:16:44.000000000 -0500 @@ -23,19 +23,19 @@ function contemplate_install() { break; case 'pgsql': db_query("CREATE TABLE {contemplate} ( - type varchar(32) NOT NULL default '', + type character(32) DEFAULT '' NOT NULL, teaser text NOT NULL, body text NOT NULL, rss text NOT NULL, - enclosure varchar(128) NOT NULL, - flags int(8) unsigned NOT NULL default '0', + enclosure character(128) NOT NULL, + flags integer DEFAULT 0 NOT NULL, PRIMARY KEY (type) );"); db_query("CREATE TABLE {contemplate_files} ( - site varchar(255) NOT NULL, - data longblob NOT NULL, - UNIQUE KEY site (site(255)) + site character(255) NOT NULL, + data bytea NOT NULL, + UNIQUE (site) );"); // This code is untested. Please post a fix to the issue queue if incorrect db_query("UPDATE {system} SET weight = 10 WHERE name = 'contemplate'"); @@ -81,4 +81,4 @@ function contemplate_uninstall() { db_query('DROP TABLE {contemplate}'); db_query('DROP TABLE {contemplate_files}'); drupal_set_message(t('The ConTemplate tables have been removed from the database')); -} \ No newline at end of file +}