Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Correctly handle array columns with defaults in the schema dumper | Sean Griffin | 2015-06-11 | 1 | -0/+1 |
| | | | | | | | | | If the subtype provides custom schema dumping behavior, we need to defer to it. We purposely choose not to handle any values other than an array (which technically should only ever be `nil`, but I'd rather code defensively here). Fixes #20515. | ||||
* | Move PostgreSQL specific schema to postgresql_specific_schema.rb | Ryuta Kamizono | 2015-05-03 | 1 | -0/+11 |
| | |||||
* | Delegate limit to subtype | wallerjake | 2015-03-21 | 1 | -0/+4 |
| | | | | | | | | | | As described here https://github.com/rails/rails/issues/19420. When using the Postgres BigInt[] field type the big int value was not being translated into schema.rb. This caused the field to become just a regular integer field when building off of schema.rb. This fix will address this by delegating the limit from the subtype to the Array type. https://github.com/rails/rails/issues/19420 | ||||
* | Remove unused table | Ryuta Kamizono | 2015-02-25 | 1 | -10/+0 |
| | | | | `postgresql_xml_data_type` table is used from nowhere. | ||||
* | Prefer `drop_table if_exists: true` over raw SQL | Ryuta Kamizono | 2015-02-18 | 1 | -1/+1 |
| | | | | | Lowercase raw SQL has been replaced by 07b659c already. This commit replaces everything else of raw SQL. | ||||
* | pg tests, get rid of global schema `schema_1`. | Yves Senn | 2014-12-02 | 1 | -7/+0 |
| | |||||
* | pg tests, move uniqueness validation test to array tests. | Yves Senn | 2014-12-02 | 1 | -10/+1 |
| | |||||
* | tests, extract pg number tests into separate file. | Yves Senn | 2014-12-02 | 1 | -9/+1 |
| | |||||
* | tests, move schema shorthand assertions into pg specific tests. | Yves Senn | 2014-12-02 | 1 | -55/+3 |
| | |||||
* | tests, move pg geometric tests out of `base_test`. | Yves Senn | 2014-12-02 | 1 | -13/+0 |
| | |||||
* | tests, favor public API over inspecting columns where possible. | Yves Senn | 2014-12-01 | 1 | -3/+0 |
| | | | | | This is a follow up to https://github.com/rails/rails/commit/07786c5e75a7b0afdf318063510af6b475e3e04c and https://github.com/rails/rails/commit/cd2596f55e88fe659592612a793c4f4aa723c9be | ||||
* | Added SchemaDumper support for tables with jsonb columns. | Ted O'Meara | 2014-11-04 | 1 | -11/+4 |
| | |||||
* | pg, preserve money type when dumping schema and extract money default. | Yves Senn | 2014-06-03 | 1 | -8/+1 |
| | |||||
* | test pg, move bit string type tests into `bit_string_test.rb`. | Yves Senn | 2014-06-03 | 1 | -8/+0 |
| | |||||
* | register OID for PostgreSQL citex datatype [Troy Kruthoff & Lachlan Sylvester] | lsylvester | 2014-03-11 | 1 | -1/+10 |
| | | | | citext makes it possible to use AR Hash finders for case-insensitive matching as sql UPPER/LOWER functions are not needed. | ||||
* | extract PG range tests from datatype_test.rb into range_test.rb | Yves Senn | 2013-12-13 | 1 | -14/+1 |
| | |||||
* | Correctly parse bigint defaults in PostgreSQL | Erik Peterson | 2013-04-05 | 1 | -0/+1 |
| | |||||
* | Fix default output for postgres network address types | Erik Peterson | 2013-02-26 | 1 | -3/+3 |
| | |||||
* | Fix PostgreSQL tests on Travis | Andrew White | 2013-01-24 | 1 | -1/+1 |
| | | | | Travis only has PostgreSQL 9.1.x but 9.2 is required for range datatypes. | ||||
* | Add postgresql range types support | bUg | 2013-01-23 | 1 | -12/+14 |
| | |||||
* | Support for PostgreSQL's ltree data type. | Rob Worley | 2013-01-04 | 1 | -1/+10 |
| | |||||
* | AR supporting new intrange data type on PostgreSQL >= 9.2 | Alexey | 2012-12-16 | 1 | -1/+11 |
| | |||||
* | Fix some indentation in the postgresql_specific_schema | Rafael Mendonça França | 2012-11-28 | 1 | -9/+9 |
| | |||||
* | Add comment to a table without model. | Rafael Mendonça França | 2012-11-28 | 1 | -0/+1 |
| | | | | | This table is being used to verify if the :limit options is being ignored for text and binary columns | ||||
* | Postgresql doesn't accepts limits on text columns. | Victor Costan | 2012-11-20 | 1 | -0/+5 |
| | |||||
* | #7914 get default value when type uses schema name | Arturo Pie | 2012-10-13 | 1 | -1/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | PostgreSQL adapter properly parses default values when using multiple schemas and domains. When using domains across schemas, PostgresSQL prefixes the type of the default value with the name of the schema where that type (or domain) is. For example, this query: ``` SELECT a.attname, d.adsrc FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = "defaults"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum; ``` could return something like "'<default_value>'::pg_catalog.text" or "(''<default_value>'::pg_catalog.text)::text" for the text columns with defaults. I modified the regexp used to parse this value so that it ignores anything between ':: and \b(?:character varying|bpchar|text), and it allows to have optional parens like in the above second example. | ||||
* | postgres, map scaled intervals to string datatype (#7518) | Yves Senn | 2012-09-06 | 1 | -1/+2 |
| | |||||
* | ActiveRecord support to PostgreSQL 9.2 JSON type | Dickson S. Guedes | 2012-09-05 | 1 | -1/+10 |
| | | | | | | | | | This implements the support to encode/decode JSON data to/from database and creating columns of type JSON using a native type [1] supported by PostgreSQL from version 9.2. [1] http://www.postgresql.org/docs/9.2/static/datatype-json.html | ||||
* | Add uuid type support to PostgreSQL adapter | Konstantin Shabanov | 2012-06-14 | 1 | -1/+9 |
| | |||||
* | Create plpgsql language if not available | Prem Sichanugrist | 2012-04-27 | 1 | -21/+29 |
| | | | | | This should fix the problem in Travis CI server. (http://travis-ci.org/#!/rails/rails/jobs/1194988) | ||||
* | add use_returning as a postgresql connection config | Doug Cole | 2012-03-31 | 1 | -2/+27 |
| | |||||
* | don't test schema where hstore not installed | Joel | 2012-02-08 | 1 | -0/+2 |
| | |||||
* | schema dumper tests for hstore | Joel | 2012-02-08 | 1 | -1/+8 |
| | |||||
* | Added tsvector Datatype Support | Benjamin Fritsch | 2011-04-26 | 1 | -1/+9 |
| | | | Applied Patch from https://rails.lighthouseapp.com/projects/8994/tickets/5577-suport-from-tsvector-data-type-in-postgresql | ||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -1/+1 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | PostgreSQLAdapter: set time_zone to UTC when Base.default_timezone == :utc ↵ | Jack Christensen | 2010-01-25 | 1 | -1/+8 |
| | | | | so that Postgres doesn't incorrectly offset-adjust values inserted into TIMESTAMP WITH TIME ZONE columns [#3777 state:resolved] | ||||
* | PostgreSQL: XML datatype support | Leonardo Borges | 2009-08-09 | 1 | -2/+13 |
| | | | | | | [#1874 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Ensure postgresql tests work when starting from scratch. | Frederick Cheung | 2008-04-30 | 1 | -1/+1 |
| | |||||
* | Use schema.rb for all databases | Frederick Cheung | 2008-04-22 | 1 | -0/+103 |
Move adapter specific schema into their own files Signed-off-by: Michael Koziarski <michael@koziarski.com> |