Add extension upgrade files

This commit is contained in:
Ian Barwick
2018-04-23 16:03:39 +09:00
parent 108c3a36fb
commit e1d807188d
2 changed files with 175 additions and 0 deletions

8
repmgr--4.0-4.1.sql Normal file
View File

@@ -0,0 +1,8 @@
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION repmgr" to load this file. \quit
ALTER TABLE repmgr.nodes
DROP CONSTRAINT nodes_type_check,
ADD CONSTRAINT nodes_type_check CHECK (type IN('primary','standby','witness','bdr','bdr_standby'));
type TEXT NOT NULL CHECK (type IN('primary','standby','witness','bdr','bdr_standby')),