## pg-migration - ci/cd automation
Migration control system for postgres database
## installation
```
pip install pg-migration
```
## usage
```
$ pg_migration --help
usage: pg_migration [-h] {log,diff,upgrade,generate,plpgsql_check,auto_merge,init} ...
optional arguments:
-h, --help show this help message and exit
commands:
{log,diff,upgrade,generate,plpgsql_check,auto_merge,init}
log print chain of migrations between from_version:to_version (or tail:head)
diff show difference between database and specified (or last) version
upgrade upgrade database up to specified (or last) version
generate generate migration file
plpgsql_check check functions and triggers with plpgsql_check extension
auto_merge creates merge-request when magic word "auto-commit" / "auto-deploy" is passed (uses in cd/cd)
init build migration which will create scheme migration and table migration.release
Report bugs: https://github.com/comagic/pg_migration/issues
```
Raw data
{
"_id": null,
"home_page": "https://github.com/comagic/pg_migration",
"name": "pg-migration",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "postgresql, git, ci/cd",
"author": "Andrey Chernyakov",
"author_email": "a.chernyakov@comagic.dev",
"download_url": "https://files.pythonhosted.org/packages/10/3e/9d9565bbba5da85227017b12632f27df91f730591ea895d31ac34ddf9855/pg_migration-1.1.4.tar.gz",
"platform": null,
"description": "\ufeff## pg-migration - ci/cd automation\n\nMigration control system for postgres database\n\n## installation\n\n```\npip install pg-migration\n```\n\n## usage\n\n```\n$ pg_migration --help\nusage: pg_migration [-h] {log,diff,upgrade,generate,plpgsql_check,auto_merge,init} ...\n\noptional arguments:\n -h, --help show this help message and exit\n\ncommands:\n {log,diff,upgrade,generate,plpgsql_check,auto_merge,init}\n log print chain of migrations between from_version:to_version (or tail:head)\n diff show difference between database and specified (or last) version\n upgrade upgrade database up to specified (or last) version\n generate generate migration file\n plpgsql_check check functions and triggers with plpgsql_check extension\n auto_merge creates merge-request when magic word \"auto-commit\" / \"auto-deploy\" is passed (uses in cd/cd)\n init build migration which will create scheme migration and table migration.release\n\nReport bugs: https://github.com/comagic/pg_migration/issues\n```\n",
"bugtrack_url": null,
"license": "BSD",
"summary": "postgres ci/cd automation",
"version": "1.1.4",
"project_urls": {
"Bug Tracker": "https://github.com/comagic/pg_migration/issues",
"Documentation": "https://github.com/comagic/pg_migration/blob/master/README.md",
"Homepage": "https://github.com/comagic/pg_migration"
},
"split_keywords": [
"postgresql",
" git",
" ci/cd"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1dd6052bcf763807edc14809afea526c2143f477b7b75bf0055d6ad1e14a09ad",
"md5": "2a84b31cfd9fc5b2738008ec6637fac9",
"sha256": "ba675f68d1fdc1fae5ee2b0341a6b775830f2bdb34d24f4d4a692dd44681777e"
},
"downloads": -1,
"filename": "pg_migration-1.1.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2a84b31cfd9fc5b2738008ec6637fac9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 13728,
"upload_time": "2025-01-21T16:08:00",
"upload_time_iso_8601": "2025-01-21T16:08:00.465648Z",
"url": "https://files.pythonhosted.org/packages/1d/d6/052bcf763807edc14809afea526c2143f477b7b75bf0055d6ad1e14a09ad/pg_migration-1.1.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "103e9d9565bbba5da85227017b12632f27df91f730591ea895d31ac34ddf9855",
"md5": "9a659b24830d95f2dde0fac86fdd2722",
"sha256": "f0096ac0985ce28cc3d27ce4a0c5a68a0bb2ed4013fba5925d422a976bf75973"
},
"downloads": -1,
"filename": "pg_migration-1.1.4.tar.gz",
"has_sig": false,
"md5_digest": "9a659b24830d95f2dde0fac86fdd2722",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 11908,
"upload_time": "2025-01-21T16:08:01",
"upload_time_iso_8601": "2025-01-21T16:08:01.930865Z",
"url": "https://files.pythonhosted.org/packages/10/3e/9d9565bbba5da85227017b12632f27df91f730591ea895d31ac34ddf9855/pg_migration-1.1.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-21 16:08:01",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "comagic",
"github_project": "pg_migration",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pg-migration"
}