[Lada-commits] [PATCH 1 of 3] Do not create database objects in case of erroneous definitions

Wald Commits scm-commit at wald.intevation.org
Thu Nov 19 12:13:27 CET 2015


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1447929900 -3600
# Node ID e15c981fe310ef053c988d1a46c9a7b9ac9081f8
# Parent  385fab3be7f47d44d8593a2af1c8359dc114d5d8
Do not create database objects in case of erroneous definitions.

diff -r 385fab3be7f4 -r e15c981fe310 db_schema/lada_schema.sql
--- a/db_schema/lada_schema.sql	Thu Nov 19 08:50:33 2015 +0100
+++ b/db_schema/lada_schema.sql	Thu Nov 19 11:45:00 2015 +0100
@@ -1,3 +1,7 @@
+\set ON_ERROR_STOP on
+
+BEGIN;
+
 --
 -- PostgreSQL database dump
 --
@@ -3303,3 +3307,4 @@
 -- PostgreSQL database dump complete
 --
 
+COMMIT;


More information about the Lada-commits mailing list