mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix some indentation in the postgresql_specific_schema
This commit is contained in:
parent
f036862c0f
commit
3e965e2144
1 changed files with 9 additions and 9 deletions
|
@ -152,7 +152,7 @@ _SQL
|
|||
);
|
||||
_SQL
|
||||
|
||||
begin
|
||||
begin
|
||||
execute <<_SQL
|
||||
CREATE TABLE postgresql_partitioned_table_parent (
|
||||
id SERIAL PRIMARY KEY,
|
||||
|
@ -174,14 +174,14 @@ begin
|
|||
BEFORE INSERT ON postgresql_partitioned_table_parent
|
||||
FOR EACH ROW EXECUTE PROCEDURE partitioned_insert_trigger();
|
||||
_SQL
|
||||
rescue ActiveRecord::StatementInvalid => e
|
||||
rescue ActiveRecord::StatementInvalid => e
|
||||
if e.message =~ /language "plpgsql" does not exist/
|
||||
execute "CREATE LANGUAGE 'plpgsql';"
|
||||
retry
|
||||
else
|
||||
raise e
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
begin
|
||||
execute <<_SQL
|
||||
|
@ -190,7 +190,7 @@ end
|
|||
data xml
|
||||
);
|
||||
_SQL
|
||||
rescue #This version of PostgreSQL either has no XML support or is was not compiled with XML support: skipping table
|
||||
rescue #This version of PostgreSQL either has no XML support or is was not compiled with XML support: skipping table
|
||||
end
|
||||
|
||||
# This table is to verify if the :limit option is being ignored for text and binary columns
|
||||
|
|
Loading…
Reference in a new issue