Skip to content

Commit b70fccf

Browse files
committed
copyrightheaderize existing .sql migrations (using lib/bin/check-file-headers.js)
1 parent e85193e commit b70fccf

6 files changed

+50
-0
lines changed

lib/model/migrations/20250927-01-geoextracts-01.down.sql

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
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.
19

210
--- nuke: form_field_meta ---
311
DROP VIEW IF EXISTS "public"."form_field_meta" CASCADE;

lib/model/migrations/20250927-01-geoextracts-01.up.sql

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
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+
110
CREATE TABLE submission_field_extract_geo_cache (
211
submission_def_id int NOT NULL,
312
fieldhash bigint NOT NULL,
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
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+
110
DROP TABLE submission_field_extract_geo_cache;
211
DROP INDEX entity_defs_has_geometry;

lib/model/migrations/20250927-01-geoextracts-02.up.sql

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
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.
19

210
--- create: form_field_repeatmembership ---
311
CREATE VIEW "public"."form_field_repeatmembership" AS

lib/model/migrations/20250928-01-backfill-submission-geocache-createfunction-01.down.sql

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
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.
19

210
--- drop: cache_all_submission_geo(only_default_path boolean, batchsize integer) ---
311
DROP FUNCTION IF EXISTS "public"."cache_all_submission_geo"(only_default_path boolean, batchsize integer) CASCADE;

lib/model/migrations/20250928-01-backfill-submission-geocache-createfunction-01.up.sql

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
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.
19

210
--- drop: cache_all_submission_geo(only_default_path boolean, batchsize integer) ---
311
DROP FUNCTION IF EXISTS "public"."cache_all_submission_geo"() CASCADE;

0 commit comments

Comments
 (0)