debian-koji/docs/schema-upgrade-1.11-1.12.sql
Dennis Gilmore 66cdd4647d update the 1.11 to 1.12 upgrade schema for BDR
in Fedora we are trying to use BDR to make the koji db more resilient
in order to get the schema to apply I had to make some changes in
order for the schema changes to be applied.
see http://bdr-project.org/docs/stable/ddl-replication-statements.html
for more info there is examples that matched what we are doing at the
bottom of the page  in the section "8.2.3. DDL statements with
restrictions"

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2017-04-21 16:26:42 -04:00

11 lines
235 B
PL/PgSQL

BEGIN;
-- from schema-update-dist-repos.sql
INSERT INTO permissions (name) VALUES ('image');
ALTER TABLE repo ADD COLUMN dist BOOLEAN;
ALTER TABLE repo ALTER COLUMN dist SET DEFAULT 'false';
UPDATE repo SET dist = 'false';
COMMIT;