Skip to content

Commit 004bba3

Browse files
committed
Refactor topology extension creation to be cleaner.
1 parent 509b8f6 commit 004bba3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

azuredbmock/00-initialize.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ GRANT ALL ON DATABASE xxx_db_tiamat_name_xxx TO xxx_db_tiamat_username_xxx;
5454
-- switch database context to stop db to initialize it to the state where tiamat can use it
5555
\connect xxx_db_tiamat_name_xxx;
5656

57-
CREATE SCHEMA topology;
58-
ALTER SCHEMA topology OWNER TO xxx_db_tiamat_username_xxx;
59-
CREATE EXTENSION IF NOT EXISTS postgis WITH SCHEMA public;
6057
CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA public;
58+
CREATE EXTENSION IF NOT EXISTS postgis WITH SCHEMA public;
59+
60+
CREATE SCHEMA IF NOT EXISTS topology AUTHORIZATION xxx_db_tiamat_username_xxx;
6161
CREATE EXTENSION IF NOT EXISTS postgis_topology WITH SCHEMA topology;
6262
-- the postgis_topology creates two tables
6363
ALTER TABLE topology.layer OWNER TO xxx_db_tiamat_username_xxx;

0 commit comments

Comments
 (0)