Browse Source

Added postgis extension/data types to make tests run correctly

Thanks to @hairyhum
David N. Welton 10 years ago
parent
commit
34e6dea178
1 changed files with 8 additions and 0 deletions
  1. 8 0
      test_data/test_schema.sql

+ 8 - 0
test_data/test_schema.sql

@@ -20,6 +20,10 @@
 -- ssl support must be configured, and the sslinfo contrib module
 -- loaded for the ssl tests to succeed.
 
+-- NOTE: you will need the postgis extensions to run these tests!
+-- On Ubuntu, you can install them with a command like this:
+--   apt-get install postgresql-9.3-postgis-2.1
+
 
 CREATE USER epgsql_test;
 CREATE USER epgsql_test_md5 WITH PASSWORD 'epgsql_test_md5';
@@ -42,6 +46,8 @@ GRANT ALL ON DATABASE epgsql_test_db2 to epgsql_test;
 CREATE TABLE schema_version (version varchar);
 
 CREATE EXTENSION hstore;
+CREATE EXTENSION postgis;
+
 CREATE TABLE test_table1 (id integer primary key, value text);
 
 INSERT INTO test_table1 (id, value) VALUES (1, 'one');
@@ -66,6 +72,8 @@ CREATE TABLE test_table2 (
   c_timestamptz timestamptz,
   c_interval interval,
   c_hstore hstore,
+  c_point point,
+   c_geometry geometry,
   c_cidr cidr,
   c_inet inet);