Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/app-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
build:
name: Build Docker image
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -32,6 +33,7 @@ jobs:
name: Push Docker image to GitHub Packages
needs: build
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
packages: write
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
build:
name: Build Docker image
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/documentation-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/documentation-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/regression-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
jobs:
test-ubuntu:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
jobs:
test-ubuntu:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
33 changes: 33 additions & 0 deletions postgres/migrations/V013__pgc.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/* pgmigrate-encoding: utf-8 */

CREATE TABLE common.pgc (
id serial PRIMARY KEY
);

COMMENT ON TABLE common.pgc IS 'The list of existing PGC-numbers' ;
COMMENT ON COLUMN common.pgc.id IS 'Unique PGC-number' ;

ALTER TABLE rawdata.objects
ADD COLUMN pgc integer REFERENCES common.pgc (id) ON DELETE restrict ON UPDATE cascade,
ADD COLUMN modification_time timestamp without time zone ;

COMMENT ON TABLE rawdata.objects IS 'The registry of all objects in original data tables' ;
COMMENT ON COLUMN rawdata.objects.id IS 'The record id' ;
COMMENT ON COLUMN rawdata.objects.table_id IS 'The table in which the record is located' ;
COMMENT ON COLUMN rawdata.objects.pgc IS 'Crossidentification of the record with the PGC-number' ;
COMMENT ON COLUMN rawdata.objects.modification_time IS 'Time of PGC-number assignment to the record' ;

INSERT INTO common.pgc (id)
SELECT id
FROM rawdata.pgc
ORDER BY rawdata.pgc.id;

ALTER SEQUENCE common.pgc_id_seq RESTART WITH 6775395 ;

UPDATE rawdata.objects
SET
pgc=rawdata.pgc.id
FROM rawdata.pgc
WHERE
rawdata.pgc.object_id=rawdata.objects.id
;
67 changes: 0 additions & 67 deletions postgres/migrations/V013_pgc.sql

This file was deleted.

Loading