diff options
author | Leonardo Borges <leonardoborges.rj@gmail.com> | 2009-08-09 12:56:25 +0400 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-08-09 22:24:54 -0700 |
commit | 0c391b46fb39b697bbae1493caade23e2ddbd8a6 (patch) | |
tree | 5af5ca090d1cf4cc31b51b2f4cfd528e21d2f724 /activerecord/test/schema | |
parent | 9c1bac0b7fcb627640db6824dca3e6e829a3c3e6 (diff) | |
download | rails-0c391b46fb39b697bbae1493caade23e2ddbd8a6.tar.gz rails-0c391b46fb39b697bbae1493caade23e2ddbd8a6.tar.bz2 rails-0c391b46fb39b697bbae1493caade23e2ddbd8a6.zip |
PostgreSQL: XML datatype support
[#1874 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r-- | activerecord/test/schema/postgresql_specific_schema.rb | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/activerecord/test/schema/postgresql_specific_schema.rb b/activerecord/test/schema/postgresql_specific_schema.rb index 576a4d03c6..3d8911bfe9 100644 --- a/activerecord/test/schema/postgresql_specific_schema.rb +++ b/activerecord/test/schema/postgresql_specific_schema.rb @@ -1,7 +1,7 @@ ActiveRecord::Schema.define do %w(postgresql_arrays postgresql_moneys postgresql_numbers postgresql_times postgresql_network_addresses postgresql_bit_strings - postgresql_oids defaults geometrics).each do |table_name| + postgresql_oids postgresql_xml_data_type defaults geometrics).each do |table_name| execute "DROP TABLE IF EXISTS #{quote_table_name table_name}" end @@ -100,4 +100,15 @@ _SQL obj_id OID ); _SQL -end
\ No newline at end of file + + begin + execute <<_SQL + CREATE TABLE postgresql_xml_data_type ( + id SERIAL PRIMARY KEY, + data xml + ); +_SQL +rescue #This version of PostgreSQL either has no XML support or is was not compiled with XML support: skipping table + end +end + |