Skip to content

Commit cec5d8c

Browse files
committed
remove pgrowlocks extension from database so that it doesn't appear in backups and thus doesn't cause problems upon restore (cf. getodk/central#1261)
1 parent 6723775 commit cec5d8c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Copyright 2025 ODK Central Developers
2+
// See the NOTICE file at the top-level directory of this distribution and at
3+
// https://github.com/getodk/central-backend/blob/master/NOTICE.
4+
// This file is part of ODK Central. It is subject to the license terms in
5+
// the LICENSE file found in the top-level directory of this distribution and at
6+
// https://www.apache.org/licenses/LICENSE-2.0. No part of ODK Central,
7+
// including this file, may be copied, modified, propagated, or distributed
8+
// except according to the terms contained in the LICENSE file.
9+
10+
const down = async (db) => db.raw('CREATE EXTENSION IF NOT EXISTS pgrowlocks');
11+
12+
const up = (db) => db.raw('DROP EXTENSION IF EXISTS pgrowlocks');
13+
14+
module.exports = { up, down };

0 commit comments

Comments
 (0)