Skip to content

Commit

Permalink
Update schema_generate.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Dec 25, 2023
1 parent 35dab40 commit bf9cf9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
4 changes: 2 additions & 2 deletions tools/database/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ $function$;
-- PostgreSQL database dump
--

-- Dumped from database version 11.8
-- Dumped by pg_dump version 11.7 (Debian 11.7-0+deb10u1)
-- Dumped from database version 13.13 (Debian 13.13-0+deb11u1)
-- Dumped by pg_dump version 13.13 (Debian 13.13-0+deb11u1)

SET statement_timeout = 0;
SET lock_timeout = 0;
Expand Down
12 changes: 2 additions & 10 deletions tools/database/schema_generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,9 @@ WHERE
-- Before Postgres 11:
-- NOT p.proisagg AND
d.objid IS NULL
(d.objid IS NULL OR proname = 'marker_elem_ids')
ORDER BY
CASE p.proname
WHEN 'lon2tile' THEN '1'
WHEN 'lat2tile' THEN '2'
WHEN 'z_order_curve' THEN '3'
WHEN 'lonlat2z_order_curve' THEN '4'
WHEN 'zoc18min' THEN '5'
WHEN 'zoc18max' THEN '6'
ELSE p.proname
END
p.proname
" > schema.sql

pg_dump --no-tablespaces -s -O -x -t "backends|markers|categories|markers_counts|class|items|sources|sources_password|stats|markers_status|updates|updates_last" -h "$DB_HOST" -U osmose osmose_frontend >> schema.sql

0 comments on commit bf9cf9d

Please sign in to comment.