cartodb-postgresql/scripts-available
Alejandro Martínez 0bfdeae147 Move "username" column to the last position on analysis_catalog - fixes #276
Due to the way it was first implemented, the "username" column would be
on a different position depending on if it was an extension upgrade or
a fresh install.

This caused problems with pg_dumping databases and restoring them.
pg_dump does not include the extension source (so this table's schema is
not included on the dump) but does include this contents, using a COPY
without column names by default and failing due to the order difference.

After this has run, all tables (whether updated or not) will have the
"username" column on the last position.
2016-10-20 14:30:02 +02:00
..
CDB_AnalysisCatalog.sql Move "username" column to the last position on analysis_catalog - fixes #276 2016-10-20 14:30:02 +02:00
CDB_AnalysisCheck.sql Replace qmax by nominal_quota 2016-10-19 12:41:19 +02:00
CDB_AnalysisSupport.sql Cosmetic fix: s/INT8/bigint #279 2016-10-17 17:16:04 +02:00
CDB_CartodbfyTable.sql Remove casting to bigint 2016-03-16 11:03:46 +01:00
CDB_ColumnNames.sql Remove unneeded pg_catalog schema name 2016-04-25 16:30:58 +02:00
CDB_ColumnType.sql Remove unneeded pg_catalog schema name 2016-04-25 16:30:58 +02:00
CDB_Conf.sql Documented the need for create extension and separated from cdb_conf creation 2015-08-26 13:23:32 +02:00
CDB_DateToNumber.sql Overloads CDB_DateToNumber() and adds test 2015-10-05 13:32:03 +02:00
CDB_DigitSeparator.sql Copy cartodb lib/sql scripts from CDB_CartodbfyTable branch 2014-05-05 17:13:06 +02:00
CDB_DistinctMeasure.sql update test output 2015-06-25 08:17:41 -04:00
CDB_DistType.sql changed subfunction name, replaced function with case statement 2015-06-10 10:50:01 -04:00
CDB_EqualIntervalBins.sql added tests improved func 2015-05-14 15:32:58 -04:00
CDB_ExtensionPost.sql Move DDL triggers and extension postamble under scripts-available 2014-05-23 17:40:14 +02:00
CDB_ExtensionUtils.sql CDB-3303 Cartodbfication also supporting optional schemas 2014-07-04 15:55:08 +02:00
CDB_ForeignTable.sql Add a small bit of func doc about the quoting 2016-02-12 11:27:28 +01:00
CDB_GreatCircle.sql Add optional parameter for max. great circle segment length 2015-11-23 17:13:17 +01:00
CDB_Groups_API.sql https support back 2015-09-25 19:13:04 +02:00
CDB_Groups.sql Fix schema not being specified on pg_get_serial_sequence 2015-10-06 18:09:37 +02:00
CDB_HeadsTailsBins.sql Copy cartodb lib/sql scripts from CDB_CartodbfyTable branch 2014-05-05 17:13:06 +02:00
CDB_Helper.sql Typo fixing 173 2015-10-27 12:11:00 +01:00
CDB_Hexagon.sql Do not force DROP FUNCTION but rely on CREATE OR REPLACE 2014-05-20 16:39:18 +02:00
CDB_JenksBins.sql Copy cartodb lib/sql scripts from CDB_CartodbfyTable branch 2014-05-05 17:13:06 +02:00
CDB_LatLng.sql Convert some simple functions from plpgsql to sql 2015-12-21 23:59:26 -08:00
CDB_Math.sql added CDB_Math_mode 2014-08-19 18:09:27 +02:00
CDB_Organizations.sql Shorter admin role name 2015-09-21 16:31:12 +02:00
CDB_Overviews.sql Exclude null geometries to create overviews 2016-07-05 16:45:12 +02:00
CDB_OverviewsSupport.sql Exclude overviews from user data size 2016-06-13 10:04:13 +02:00
CDB_QuantileBins.sql removed group by; made binning more reliable 2015-04-27 17:59:40 -04:00
CDB_QueryStatements.sql Fix potential infinite loop in CDB_QueryStatements 2014-06-05 15:00:57 +02:00
CDB_QueryTables.sql Move fdw-aware functions to CDB_ForeignTable.sql 2016-02-09 13:40:18 +01:00
CDB_Quota.sql 💄 indent/parenthesize for clarity 2016-06-13 10:39:05 +02:00
CDB_RandomTids.sql Copy cartodb lib/sql scripts from CDB_CartodbfyTable branch 2014-05-05 17:13:06 +02:00
CDB_RectangleGrid.sql Copy cartodb lib/sql scripts from CDB_CartodbfyTable branch 2014-05-05 17:13:06 +02:00
CDB_SearchPath.sql Import cartodb/lib/sql/test, add search_path tweaker 2014-05-05 18:48:48 +02:00
CDB_Stats.sql removing raise notices and lower test bounds 2015-09-03 22:43:25 -04:00
CDB_StringToDate.sql Fix upgrade of CDB_StringToDate function #73 2015-03-03 16:09:57 +00:00
CDB_TableIndexes.sql Grant permission to run table-info functions to public 2014-06-06 11:36:19 +02:00
CDB_TableMetadata.sql Fully qualify invalidations 2016-03-02 16:22:22 +01:00
CDB_TransformToWebmercator.sql Copy cartodb lib/sql scripts from CDB_CartodbfyTable branch 2014-05-05 17:13:06 +02:00
CDB_UserTables.sql Merge branch 'master' into 103-Extension_Group_API 2015-09-28 09:48:46 +02:00
CDB_XYZ.sql Compute webmercator resolution with full accuracy 2016-04-25 14:02:26 +02:00
CDB_ZoomFromScale.sql Fix zoom from scale condition for NULL result 2016-05-27 15:10:20 +02:00