mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 07:06:30 +00:00
9 lines
408 B
SQL
9 lines
408 B
SQL
-- 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')),
|