changeset 933:56d2dd058906

Stop on error.
author Tom Gottfried <tom@intevation.de>
date Fri, 06 May 2016 12:21:48 +0200
parents f5d5cc08966a
children 4d8b8c849935
files db_schema/lada_data.sql db_schema/setup-db.sh db_schema/stammdaten_data.sql
diffstat 3 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/db_schema/lada_data.sql	Fri May 06 12:13:15 2016 +0200
+++ b/db_schema/lada_data.sql	Fri May 06 12:21:48 2016 +0200
@@ -1,3 +1,5 @@
+\set ON_ERROR_STOP on
+
 --
 -- PostgreSQL database dump
 --
--- a/db_schema/setup-db.sh	Fri May 06 12:13:15 2016 +0200
+++ b/db_schema/setup-db.sh	Fri May 06 12:21:48 2016 +0200
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -e
 # SYNOPSIS
 # ./setup-db.sh [-c] [ROLE_NAME] [ROLE_PW] [DB_NAME]
 #   -c         clean - drop an existing database
--- a/db_schema/stammdaten_data.sql	Fri May 06 12:13:15 2016 +0200
+++ b/db_schema/stammdaten_data.sql	Fri May 06 12:21:48 2016 +0200
@@ -1,4 +1,6 @@
---
+\set ON_ERROR_STOP on
+
+--
 -- PostgreSQL database dump
 --
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)