Commit Graph

253 Commits

Author SHA1 Message Date
Sandro Santilli
402d04baf4 Update instructions to install in existing cartodb databases
Mentions postgis extension needs to be created from unpackaged when
migrating existing cartodb databases. See #6.
2014-05-08 19:01:32 +02:00
Sandro Santilli
155844cbc6 Add travis badge
Closes #4 (now succeeds)
2014-05-08 17:24:17 +02:00
Sandro Santilli
4c93f75523 Fix clean rule not to drop CDB_version() method 2014-05-08 17:21:41 +02:00
Sandro Santilli
30186ac8cb Pretend _CDB_UserQuotaInBytes has to stay in public
Fixes run of the testsuite in the pre-extension model
2014-05-08 17:20:40 +02:00
Sandro Santilli
acf3097c3a Add CDB_SetUserQuotaInBytes function
Closes #2
2014-05-08 17:14:06 +02:00
Sandro Santilli
055efe04aa Do not assume existance of a "publicuser" role in CDB_UserTables
Closes #5 (take 2)
2014-05-08 16:42:38 +02:00
Sandro Santilli
1c753b24e5 Do not assume existance of a "publicuser" role
Closes #5
2014-05-08 16:32:26 +02:00
Sandro Santilli
0f67b31272 [Travis] Drop env grepping (interrupts the build on no-match)
... anyway I only wanted to know if there was any env (there's none)
2014-05-08 12:58:05 +02:00
Sandro Santilli
31e3109784 [Travis] Set client_min_messages=NOTICE as expected by tests 2014-05-08 12:54:22 +02:00
Sandro Santilli
fac0fc81de [Travis] Load schema_triggers.so as shared, not local preload
Doing so should load the library from where is installed by
pg_schema_trigger package
2014-05-08 12:44:24 +02:00
Sandro Santilli
7b7891b390 [Travis] It takes root perms to edit postgresql.conf 2014-05-08 12:32:06 +02:00
Sandro Santilli
46d902df66 [Travis] Configure PostgreSQL to preload schema_triggers.so 2014-05-08 12:22:13 +02:00
Sandro Santilli
fcd80d89cd Don't forget to install the extension prior to installcheck 2014-05-08 12:02:38 +02:00
Sandro Santilli
0fba58e612 [TRAVIS] PostgreSQL server dev package still needed
... postgis instead should be available by default, according to
http://docs.travis-ci.com/user/using-postgresql/#Using-PostGIS
2014-05-08 11:54:39 +02:00
Sandro Santilli
f79462952b Try postgresql installation the travis way (using addons)
See http://blog.travis-ci.com/2013-11-29-postgresql-92-93-now-available/
2014-05-08 11:52:02 +02:00
Sandro Santilli
f6f68f616b [Travis] Search for postgresql 9.3 packages 2014-05-08 11:43:23 +02:00
Sandro Santilli
37048b5bd4 Tag language as C, show linux standard base release info 2014-05-08 11:38:29 +02:00
Sandro Santilli
cf445c92a7 Explicitly install postgresql-9.3 and postgresql-9.3-client 2014-05-08 11:37:14 +02:00
Sandro Santilli
6b49db5a63 Purge PostgreSQL 9.1 and 9.2
They make testing more problematic.
There's likely a better way but we don't support 9.1 and 9.2 anyway
2014-05-08 10:51:54 +02:00
Sandro Santilli
160ea9a3cb Do not take failures as successes due to "diff" command succeeding
Also check which versions of postgresql are installed, to drop 9.1
2014-05-08 10:41:37 +02:00
Sandro Santilli
1460f3b0a8 It's regression.diffs (ending 's') to look at... 2014-05-08 10:37:22 +02:00
Sandro Santilli
b723954b74 Create required test output dir
See http://travis-ci.org/CartoDB/cartodb-postgresql/builds/24691945
2014-05-08 10:31:23 +02:00
Sandro Santilli
e1300dc4a6 Get out of schema_trigger dir after install, show regress diff on failure 2014-05-08 10:28:01 +02:00
Sandro Santilli
ac40db6c10 Attempt to fix yaml format 2014-05-08 10:25:40 +02:00
Sandro Santilli
aeca4db9b8 Instruct travis to install schema_triggers 2014-05-08 10:22:59 +02:00
Sandro Santilli
d554a9dd12 Add NEWS file 2014-05-08 10:10:20 +02:00
Sandro Santilli
5d3c63b964 Add cdb_version() function 2014-05-08 10:07:47 +02:00
Sandro Santilli
b8e15dba83 Generate cartodb.control with Makefile-driver version
Set version to 0.1dev
2014-05-08 09:58:58 +02:00
Sandro Santilli
0051ff33b3 Add notes about creating "cartodb" extension from unpackaged version 2014-05-07 18:14:59 +02:00
Sandro Santilli
d1a767f343 Re-add the test/Makefile which was available while in cartodb/lib/sql 2014-05-07 18:08:38 +02:00
Sandro Santilli
b3bade740d Generate script to create migrate from unpackaged
Usage: CREATE EXTENSION cartodb FROM unpackaged;
2014-05-07 18:06:20 +02:00
Sandro Santilli
f56221ca25 Add debugging line 2014-05-06 16:45:14 +02:00
Sandro Santilli
255332f949 Update README with info about installing/testing/using 2014-05-06 11:11:49 +02:00
Sandro Santilli
574ce7997d Do not hard-code session search_path at start of extension 2014-05-06 10:54:37 +02:00
Sandro Santilli
9b6f9e21f2 Stick with user tables being in public
... but workaround extension code replacing "public." with "cartodb."
2014-05-06 10:53:19 +02:00
Sandro Santilli
b8adcae6c3 We're not dependent on CartoDB rails/ruby anymore 2014-05-06 10:36:07 +02:00
Sandro Santilli
6119006287 Travis: install postgresql server
NOTE: it cannot work until "schema_triggers" can be installed, we
      might need to use a fork...
2014-05-06 10:28:06 +02:00
Sandro Santilli
00dc8dcd51 Temptative travis script 2014-05-06 10:21:27 +02:00
Sandro Santilli
15740f2ef6 Enable running all tests via "installcheck"
NOTE: also makes CDB_TableMetadata triggers still functional
      when user quota and varnish invalidation functions are missing
      from the database (currently installed by cartodb ruby)
2014-05-06 10:18:38 +02:00
Sandro Santilli
82c8259de6 Update LICENSE, set copyright ownership to Vizzuality 2014-05-06 07:33:01 +02:00
Sandro Santilli
0960276046 Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
Sandro Santilli
5e28417b3d Add "cdb_org_admin" and "cdb_org_user" roles as part of extension 2014-05-05 18:04:14 +02:00
Sandro Santilli
2f1fdf5a15 Copy cartodb lib/sql scripts from CDB_CartodbfyTable branch 2014-05-05 17:13:06 +02:00
Sandro Santilli
7a5ce833a4 Fix expected result 2014-05-05 12:43:37 +02:00
Sandro Santilli
1a7fd8fd67 Fix automated test 2014-05-05 12:20:38 +02:00
Sandro Santilli
8cd7e31450 Include some of the cartodb scripts in the extension
NOTE: this is unfinished as cartodb scripts are only referenced and not
      really included
2014-04-30 19:03:14 +02:00
Sandro Santilli
2672fc8842 Do not fire trigger on drop table performed by superuser 2014-04-30 11:48:00 +02:00
Sandro Santilli
be25906953 Move toward cartodb extension 2013-12-02 16:29:02 +01:00
Sandro Santilli
a87f358253 Add drop table handler, manage CDB_TableMetadata entries on create/drop 2013-10-22 18:16:57 +02:00
Sandro Santilli
963bbb3e13 Add reference about CartoDB dependency 2013-10-22 17:13:20 +02:00