repo inicializado

This commit is contained in:
2026-03-17 00:48:20 -04:00
parent 157c93736c
commit 717cc11a03
33 changed files with 9416 additions and 197 deletions

13
init-unix.sql Normal file
View File

@@ -0,0 +1,13 @@
UPDATE pg_database SET datistemplate='false' WHERE datname='template_postgis';
DROP DATABASE IF EXISTS template_postgis;
CREATE DATABASE template_postgis WITH ENCODING 'UTF8';
UPDATE pg_database SET datistemplate='true' WHERE datname='template_postgis';
\c template_postgis
CREATE EXTENSION IF NOT EXISTS postgis;
GRANT ALL ON geometry_columns TO PUBLIC;
GRANT ALL ON geography_columns TO PUBLIC;
GRANT ALL ON spatial_ref_sys TO PUBLIC;
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";