mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-14 10:27:57 +00:00
bigint update script
This commit is contained in:
9
sql/update_bigint.sql
Normal file
9
sql/update_bigint.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
\a
|
||||
\t
|
||||
\o /tmp/bigintupdate.sql
|
||||
select 'alter table "'||relname||'" alter '||attname||' type bigint;' from pg_attribute join pg_class on
|
||||
(attrelid = oid) where attname like '%place_id%' and attnum > 0 and relkind = 'r'::"char" and atttypid = 23
|
||||
and not relname::text ~ '^.*_[0-9]+$' order by 'alter table "'||relname||'" alter '||attname||' type
|
||||
bigint;';
|
||||
\o
|
||||
\i /tmp/bigintupdate.sql
|
||||
Reference in New Issue
Block a user