├── .editorconfig ├── .envrc ├── .github ├── dependabot.yml ├── pull_request_template.md ├── stale.yml └── workflows │ └── test.yml ├── .gitignore ├── .kodiak.toml ├── .pre-commit-config.yaml ├── .prettierrc ├── CHANGELOG.md ├── Dockerfile ├── LICENSE ├── META.json.in ├── Makefile ├── README.md ├── check-packages.bash ├── create-extension-sql.bash ├── create-prepare-db-sql.bash ├── create-update-script-sql.bash ├── create-upgrade-scripts.bash ├── create-version-template.bash ├── debian ├── changelog ├── compat ├── control ├── control.in ├── copyright ├── git-tag-debian ├── pgversions ├── rules └── source │ └── format ├── doc ├── how_to_release.md └── table_version.md ├── nix ├── sources.json └── sources.nix ├── shell.nix ├── sql ├── 00-common.sql ├── 00-config_tables.sql ├── 01-enable_versioning.sql ├── 02-disable_versioning.sql ├── 03-create_revision.sql ├── 04-complete_revision.sql ├── 05-delete_revision.sql ├── 06-get_revisions.sql ├── 07-get_modified_tables.sql ├── 08-is_table_versioned.sql ├── 09-table_change_column_type.sql ├── 10-table_add_column.sql ├── 11-get_versioned_tables.sql ├── 12-create_table_functions.sql ├── 13-create_version_trigger.sql ├── 14-common.sql ├── 15-table_diff_functions.sql ├── 16-table_drop_column.sql ├── 17-fix_revision_disorder.sql ├── 18-log_modified_tables.sql ├── 20-version.sql.in └── noextension.sql.in ├── table_version-loader.bash ├── table_version.control.in └── test ├── ci ├── install-from-source.bash ├── install-latest.bash ├── install-local-package.bash ├── package-upgrade.bash ├── setup-postgresql.bash ├── source-upgrade-using-loader-without-extension-support.bash ├── source-upgrade-using-loader.bash └── source-upgrade.bash └── sql ├── base.pg ├── preparedb.in ├── upgrade-post.sql ├── upgrade-pre.sql └── version.pg.in /.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | 3 | [*] 4 | trim_trailing_whitespace = true 5 | -------------------------------------------------------------------------------- /.envrc: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | use nix 3 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/.github/pull_request_template.md -------------------------------------------------------------------------------- /.github/stale.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/.github/stale.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/.gitignore -------------------------------------------------------------------------------- /.kodiak.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/.kodiak.toml -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/.prettierrc -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/LICENSE -------------------------------------------------------------------------------- /META.json.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/META.json.in -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/README.md -------------------------------------------------------------------------------- /check-packages.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/check-packages.bash -------------------------------------------------------------------------------- /create-extension-sql.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/create-extension-sql.bash -------------------------------------------------------------------------------- /create-prepare-db-sql.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/create-prepare-db-sql.bash -------------------------------------------------------------------------------- /create-update-script-sql.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/create-update-script-sql.bash -------------------------------------------------------------------------------- /create-upgrade-scripts.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/create-upgrade-scripts.bash -------------------------------------------------------------------------------- /create-version-template.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/create-version-template.bash -------------------------------------------------------------------------------- /debian/changelog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/debian/changelog -------------------------------------------------------------------------------- /debian/compat: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /debian/control: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/debian/control -------------------------------------------------------------------------------- /debian/control.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/debian/control.in -------------------------------------------------------------------------------- /debian/copyright: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/debian/copyright -------------------------------------------------------------------------------- /debian/git-tag-debian: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/debian/git-tag-debian -------------------------------------------------------------------------------- /debian/pgversions: -------------------------------------------------------------------------------- 1 | 12 2 | 13 3 | 14 4 | 15 5 | 16 6 | -------------------------------------------------------------------------------- /debian/rules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/debian/rules -------------------------------------------------------------------------------- /debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /doc/how_to_release.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/doc/how_to_release.md -------------------------------------------------------------------------------- /doc/table_version.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/doc/table_version.md -------------------------------------------------------------------------------- /nix/sources.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/nix/sources.json -------------------------------------------------------------------------------- /nix/sources.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/nix/sources.nix -------------------------------------------------------------------------------- /shell.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/shell.nix -------------------------------------------------------------------------------- /sql/00-common.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/sql/00-common.sql -------------------------------------------------------------------------------- /sql/00-config_tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/sql/00-config_tables.sql -------------------------------------------------------------------------------- /sql/01-enable_versioning.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/sql/01-enable_versioning.sql -------------------------------------------------------------------------------- /sql/02-disable_versioning.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/sql/02-disable_versioning.sql -------------------------------------------------------------------------------- /sql/03-create_revision.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/sql/03-create_revision.sql -------------------------------------------------------------------------------- /sql/04-complete_revision.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/sql/04-complete_revision.sql -------------------------------------------------------------------------------- /sql/05-delete_revision.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/sql/05-delete_revision.sql -------------------------------------------------------------------------------- /sql/06-get_revisions.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/sql/06-get_revisions.sql -------------------------------------------------------------------------------- /sql/07-get_modified_tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/sql/07-get_modified_tables.sql -------------------------------------------------------------------------------- /sql/08-is_table_versioned.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/sql/08-is_table_versioned.sql -------------------------------------------------------------------------------- /sql/09-table_change_column_type.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/sql/09-table_change_column_type.sql -------------------------------------------------------------------------------- /sql/10-table_add_column.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/sql/10-table_add_column.sql -------------------------------------------------------------------------------- /sql/11-get_versioned_tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/sql/11-get_versioned_tables.sql -------------------------------------------------------------------------------- /sql/12-create_table_functions.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/sql/12-create_table_functions.sql -------------------------------------------------------------------------------- /sql/13-create_version_trigger.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/sql/13-create_version_trigger.sql -------------------------------------------------------------------------------- /sql/14-common.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/sql/14-common.sql -------------------------------------------------------------------------------- /sql/15-table_diff_functions.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/sql/15-table_diff_functions.sql -------------------------------------------------------------------------------- /sql/16-table_drop_column.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/sql/16-table_drop_column.sql -------------------------------------------------------------------------------- /sql/17-fix_revision_disorder.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/sql/17-fix_revision_disorder.sql -------------------------------------------------------------------------------- /sql/18-log_modified_tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/sql/18-log_modified_tables.sql -------------------------------------------------------------------------------- /sql/20-version.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/sql/20-version.sql.in -------------------------------------------------------------------------------- /sql/noextension.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/sql/noextension.sql.in -------------------------------------------------------------------------------- /table_version-loader.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/table_version-loader.bash -------------------------------------------------------------------------------- /table_version.control.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/table_version.control.in -------------------------------------------------------------------------------- /test/ci/install-from-source.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/test/ci/install-from-source.bash -------------------------------------------------------------------------------- /test/ci/install-latest.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/test/ci/install-latest.bash -------------------------------------------------------------------------------- /test/ci/install-local-package.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/test/ci/install-local-package.bash -------------------------------------------------------------------------------- /test/ci/package-upgrade.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/test/ci/package-upgrade.bash -------------------------------------------------------------------------------- /test/ci/setup-postgresql.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/test/ci/setup-postgresql.bash -------------------------------------------------------------------------------- /test/ci/source-upgrade-using-loader-without-extension-support.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/test/ci/source-upgrade-using-loader-without-extension-support.bash -------------------------------------------------------------------------------- /test/ci/source-upgrade-using-loader.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/test/ci/source-upgrade-using-loader.bash -------------------------------------------------------------------------------- /test/ci/source-upgrade.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/test/ci/source-upgrade.bash -------------------------------------------------------------------------------- /test/sql/base.pg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/test/sql/base.pg -------------------------------------------------------------------------------- /test/sql/preparedb.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/test/sql/preparedb.in -------------------------------------------------------------------------------- /test/sql/upgrade-post.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/test/sql/upgrade-post.sql -------------------------------------------------------------------------------- /test/sql/upgrade-pre.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/test/sql/upgrade-pre.sql -------------------------------------------------------------------------------- /test/sql/version.pg.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linz/postgresql-tableversion/HEAD/test/sql/version.pg.in --------------------------------------------------------------------------------