Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Also support extensions in PostgreSQL 9.1, because this has been supported ↵ | kennyj | 2013-05-15 | 1 | -4/+4 |
| | | | | since 9.1. | ||||
* | Revert "Merge pull request #10455 from ↵ | Aaron Patterson | 2013-05-07 | 1 | -6/+2 |
| | | | | | | | patricksrobertson/bigserial_id_not_identifying_pk" This reverts commit 3043d45eefc3776d5f3a9e7d212a01f99d869ef8, reversing changes made to ca0275d36b395631725c4583db5a45c06443fdb9. | ||||
* | Handle other pk types in PostgreSQL gracefully. | Patrick Robertson | 2013-05-07 | 1 | -2/+6 |
| | | | | | | | | | | | | | | In #10410 it was noted that you can no longer create PK's with the type of bigserial in PostgreSQL in 4.0.0.rc1. This is mostly because the newer adapter is checking for column type with the id column instead of just letting it pass through like it did before. Side effects: You may just create a PK column of a type that you really don't want to be your PK. As far as I can tell this was allowed in 3.2.X and perhaps an exception should be raised if you try and do something extremely dumb. | ||||
* | Changing method call according to coding conventions | Akshay Khole | 2013-05-05 | 1 | -1/+1 |
| | |||||
* | Add parameter :sslcompression to PostgreSQL adapter. | Lars Kanis | 2013-05-02 | 1 | -2/+2 |
| | | | | It is new in PostgreSQL-9.2 . | ||||
* | Improve docs for postgresql with uuid primary keys [ci skip] | Carlos Antonio da Silva | 2013-05-01 | 1 | -8/+7 |
| | | | | Introduced in 09ac1776abc0d3482f491f2d49f47bcb3d9a4ad7. | ||||
* | allow override of uuid_generate_v4() default by passing default: nil | Chad Moone | 2013-05-01 | 1 | -1/+30 |
| | | | | without this, it's not possible to use UUID primary keys without uuid-ossp installed and activated | ||||
* | Correctly parse bigint defaults in PostgreSQL | Erik Peterson | 2013-04-05 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2013-03-30 | 1 | -2/+2 |
|\ | | | | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb activerecord/test/cases/adapter_test.rb guides/source/testing.md [ci skip] | ||||
| * | nodoc AR::ConnectionHandling for adapters [ci skip] | Francesco Rodriguez | 2013-03-15 | 1 | -2/+2 |
| | | |||||
* | | Adds support for concurrent indexing in PostgreSQL adapter | Dan McClain | 2013-03-25 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | Adds support for algorithm option in MySQL indexes Moves USING and algorithm options upstream The syntax is still specific to the Adapter, so the actual executed string happens in the corresponding adapter | ||||
* | | Make Postgres point type correspond to ruby array with two floats inside | Martin Schürrer | 2013-03-25 | 1 | -1/+8 |
| | | |||||
* | | Created a layer of abstraction for the valid type checking in schema dumper. ↵ | Ranjay Krishna | 2013-03-25 | 1 | -0/+4 |
| | | | | | | | | Now, connection handles the check for valid types so that each database can handle the changes individually. | ||||
* | | add uuid primary key support | Aaron Patterson | 2013-03-22 | 1 | -0/+7 |
| | | |||||
* | | pull add_column_options! off the pg connection class | Aaron Patterson | 2013-03-22 | 1 | -13/+0 |
| | | |||||
* | | push SQL generation inside the schema creation object | Aaron Patterson | 2013-03-22 | 1 | -2/+2 |
| | | |||||
* | | mostly decouple TableDefinition from the database connection | Aaron Patterson | 2013-03-22 | 1 | -1/+1 |
| | | |||||
* | | decouple column definition from the database connection | Aaron Patterson | 2013-03-22 | 1 | -2/+2 |
| | | |||||
* | | use `connect_poll` on pg so that reaping does not hurt the connection | Aaron Patterson | 2013-03-20 | 1 | -2/+1 |
| | | |||||
* | | you can provide uuid_generate_v4 as the default value for uuid columns | Aaron Patterson | 2013-03-14 | 1 | -1/+7 |
| | | |||||
* | | pg is the only adapter that supports the xml type, so push the method down | Aaron Patterson | 2013-03-14 | 1 | -0/+4 |
| | | |||||
* | | extract factory method and push common code up to abstract adapter | Aaron Patterson | 2013-03-14 | 1 | -5/+2 |
| | | |||||
* | | Also quote extension name in disable_extension | Stephen Touset | 2013-03-12 | 1 | -1/+1 |
| | | | | | | A patch was committed recently which quoted the extension name in the SQL for `enable_extension`. But the same wasn't done for `disable_extension`. | ||||
* | | fixes enable_extension bug in postgresql_adapter | Darren Woodley | 2013-03-08 | 1 | -1/+1 |
|/ | | | | | | | | | The use of quotations is required to install extensions with certain characters in them (e.g. uuid-ossp). removes CHANGELOG entry Deemed unnecessary. | ||||
* | Unprepared Visitor + unprepared_statement | Cédric FABIANSKI | 2013-03-08 | 1 | -1/+1 |
| | |||||
* | Wrong exception is occured when raising no translatable exception | kennyj | 2013-03-01 | 1 | -0/+2 |
| | |||||
* | Support PostgreSQL specific column types when using `change_table`. | Yves Senn | 2013-02-28 | 1 | -2/+14 |
| | | | | | | | | Closes #9480. We use `TableDefinition` for `#create_table` and `Table` for `#change_table`. The PostgreSQL sepcifc types were only defined on `TableDefinition` so I also added them to `Table`. | ||||
* | Do not type cast all the database url values. | Rafael Mendonça França | 2013-02-24 | 1 | -3/+3 |
| | | | | | | We should only type cast when we need to use. Related to 4b005fb371c2e7af80df7da63be94509b1db038c | ||||
* | Remove valid_type? method | Jon Leighton | 2013-02-15 | 1 | -4/+0 |
| | | | | | It was supposed to be removed by the preceding two reversions but I did them in the wrong order. | ||||
* | Revert "Make valid_type? public" | Jon Leighton | 2013-02-15 | 1 | -4/+4 |
| | | | | | | This reverts commit 5d528f835e871f5f9d4b68e8a81cfbe900b7e718. Relates to f8c8ad5 which is also getting reverted due to failing test. | ||||
* | Make valid_type? public | Sam Ruby | 2013-02-14 | 1 | -4/+4 |
| | |||||
* | Merge pull request #9204 from ranjaykrishna/col-prob | Aaron Patterson | 2013-02-12 | 1 | -0/+4 |
|\ | | | | | schema dumper tests now conducted by ActiveRecord::Base.Connection | ||||
| * | checking in the abstractions for valid type checking: | Ranjay Krishna | 2013-02-12 | 1 | -0/+4 |
| | | |||||
* | | Call super to use the abstract adapter implementation instead | Carlos Antonio da Silva | 2013-02-06 | 1 | -1/+1 |
| | | |||||
* | | add ActiveRecord::AbstractAdapter#extensions and ↵ | Justin George | 2013-02-06 | 1 | -0/+9 |
| | | | | | | | | ActiveRecord::ConnectionAdapters::PostgreSQLAdapter#extensions to allow dumping of enabled extensions to schema.rb, add ActiveRecord::SchemaDumper#extensions to dump extensions to schema.rb | ||||
* | | reloading type map on extension changing | Aaron Patterson | 2013-01-29 | 1 | -2/+11 |
| | | |||||
* | | fixing comment | Aaron Patterson | 2013-01-29 | 1 | -1/+1 |
| | | |||||
* | | Fix typo | Rafael Mendonça França | 2013-01-29 | 1 | -1/+1 |
| | | |||||
* | | Only search for enabled extension if the PostgreSQL version supports | Rafael Mendonça França | 2013-01-29 | 1 | -3/+5 |
| | | | | | | | | extensions | ||||
* | | add API to pg for enabling / disabling hstore | Aaron Patterson | 2013-01-28 | 1 | -0/+19 |
| | | |||||
* | | Fix PostgreSQL tests on Travis | Andrew White | 2013-01-24 | 1 | -0/+5 |
| | | | | | | | | 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 | -11/+34 |
|/ | |||||
* | Use whitelist to pass valid connection parameters to PGConn. | Rafael Mendonça França | 2013-01-06 | 1 | -7/+10 |
| | | | | | | | | | All the valids parameters for libpq are used. See http://www.postgresql.org/docs/9.1/static/libpq-connect.html for the full list Fixes #8784 | ||||
* | Remove the configuration key in the correct place | Rafael Mendonça França | 2013-01-06 | 1 | -3/+1 |
| | |||||
* | Remove unnecessary begin..rescue..end, use only rescue | Akira Matsuda | 2013-01-06 | 1 | -25/+23 |
| | |||||
* | Support for PostgreSQL's ltree data type. | Rob Worley | 2013-01-04 | 1 | -1/+8 |
| | |||||
* | AR supporting new intrange data type on PostgreSQL >= 9.2 | Alexey | 2012-12-16 | 1 | -4/+15 |
| | |||||
* | Session variables for mysql, mysql2, and postgresql adapters can be set | Aaron Stone | 2012-12-08 | 1 | -1/+16 |
| | | | | | | | | | in the new 'variables:' hash in each database config section in database.yml. The key-value pairs of this hash will be sent in a 'SET key = value, ...' query on new database connections. The configure_connection methods from mysql and mysql2 into are consolidated into the abstract_mysql base class. | ||||
* | #7914 Remove code for unsupported postgreSQL version. | Arturo Pie | 2012-10-13 | 1 | -3/+0 |
| | | | | | | | Remove parsing of character type default values for 8.1 formatting since Rails doesn't support postgreSQL 8.1 anymore. Remove misleading comment unrelated to code. | ||||
* | #7914 Using a better way to get the defaults from db. | Arturo Pie | 2012-10-13 | 1 | -1/+2 |
| | | | | | | | | | According to postgreSQL documentation: (http://www.postgresql.org/docs/8.2/static/catalog-pg-attrdef.html) we should not be using 'adsrc' field because this field is unaware of outside changes that could affect the way that default values are represented. Thus, I changed the queries to use "pg_get_expr(adbin, adrelid)" instead of the historical "adsrc" field. |