ordre sql

This commit is contained in:
2025-10-14 22:28:15 +02:00
parent 1311068103
commit 94b69bb041
12 changed files with 22 additions and 12 deletions

View File

@@ -5,9 +5,12 @@ create schema postgis;
create extension if not exists postgis schema postgis;
create extension if not exists pgrouting schema postgis;
create extension if not exists ltree;
create extension if not exists pgtap;
create extension if not exists pgcrypto;
create schema ext;
create extension if not exists ltree schema ext;
create extension if not exists pgcrypto schema ext;
create schema pgtap;
create extension if not exists pgtap schema pgtap;
create table adherent (
id int primary key,
@@ -22,7 +25,7 @@ create table famille (
code text primary key,
famille text,
code_parent text, -- references famille(code)
arborescence ltree
arborescence ext.ltree
);
create table article (

View File

@@ -1,2 +1,5 @@
create role postgraphile nosuperuser nocreatedb nocreaterole noinherit noreplication nobypassrls
create role postgraphile_user nosuperuser nocreatedb nocreaterole noinherit noreplication nobypassrls
login password '9013';
alter default privileges in schema public
grant select on tables to postgraphile_user;

View File

@@ -1,3 +1,5 @@
set SEARCH_PATH to public,pgtap;
SELECT plan(4);
SELECT is(
@@ -26,3 +28,5 @@ SELECT is(
-- Termine le test
SELECT * FROM finish();
\dx

View File

@@ -1 +0,0 @@
\dx