From fb9bcadebd89670911db11ae83cdc5023095890f Mon Sep 17 00:00:00 2001 From: hawk__ Date: Sat, 27 Aug 2011 00:36:48 +0000 Subject: [PATCH] Added some column types conversion for WPMU support git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@429285 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- pg4wp/driver_pgsql_install.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pg4wp/driver_pgsql_install.php b/pg4wp/driver_pgsql_install.php index 6537643..34f642e 100644 --- a/pg4wp/driver_pgsql_install.php +++ b/pg4wp/driver_pgsql_install.php @@ -25,6 +25,12 @@ // WP 2.7.1 compatibility 'int(4)' => 'smallint', + + // For WPMU (starting with WP 3.2) + 'tinyint(2)' => 'smallint', + 'tinyint(1)' => 'smallint', + "enum('0','1')" => 'smallint', + ); function pg4wp_installing( $sql, &$logto)