{"id":20541721,"url":"https://github.com/hivesolutions/migratore","last_synced_at":"2026-01-07T12:15:29.404Z","repository":{"id":13920494,"uuid":"16619837","full_name":"hivesolutions/migratore","owner":"hivesolutions","description":"SQL based migration system with migration management","archived":false,"fork":false,"pushed_at":"2024-01-09T14:53:15.000Z","size":265,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-01T15:41:45.046Z","etag":null,"topics":["database","migrations","mysql","sql"],"latest_commit_sha":null,"homepage":"http://migratore.hive.pt","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hivesolutions.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-07T16:10:54.000Z","updated_at":"2024-02-06T15:06:42.000Z","dependencies_parsed_at":"2023-01-11T19:45:43.004Z","dependency_job_id":null,"html_url":"https://github.com/hivesolutions/migratore","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hivesolutions%2Fmigratore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hivesolutions%2Fmigratore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hivesolutions%2Fmigratore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hivesolutions%2Fmigratore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hivesolutions","download_url":"https://codeload.github.com/hivesolutions/migratore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242146583,"owners_count":20079381,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","migrations","mysql","sql"],"created_at":"2024-11-16T01:25:42.617Z","updated_at":"2026-01-07T12:15:29.396Z","avatar_url":"https://github.com/hivesolutions.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [![Migratore](res/logo.png)](http://migratore.hive.pt)\n\nSimple migration framework / infra-structure for SQL-based databases.\n\n## Installation\n\n```bash\npip install migratore\n```\n\n## Execution\n\n```bash\nHOST=${HOST} DB=${DB_NAME} USERNAME=${DB_USER} PASSWORD=${DB_PASS} migratore upgrade\n```\n\n## Variables\n\n* `HOST` - Hostname or IP address of the database system for migration\n* `PORT` - TCP port to be used in the connection with the database system\n* `UNIX_SOCKET` - Filesystem path to the UNIX socket file to be used in connection\n* `DB` - Name of the database used as the migration target\n* `USERNAME` - Username for authentication in the database\n* `PASSWORD` - Password to be used for authentication in the database\n* `FS` - Base file system path for file migration (may depend on migration context)\n* `DB_URL` - The database connection URL following the format `protocol://username:password@host:port/db`\n* `SAFE` - If the migration operation should be performed in a safe manner.\n\n## Commands\n\n* `help` - Prints a help message about the CLI interface\n* `version` - Prints the current version of migratore\n* `environ` - Displays the current environment in the standard output\n* `list` - Lists the executed migrations on the current database\n* `errors` - Lists the various errors from migration of the database\n* `mark` - Marks the associated data source with the current timestamp\n* `trace [id]` - Prints the traceback for the error execution with the provided id\n* `rebuild [id]` - Run the partial execution of the migration with the given id\n* `touch [id]` - Touches a migration file updating its timestamp to the current time\n* `squash [start] [end] \u003coutput\u003e` - Combines multiple migrations into a single file\n* `upgrade [path]` - Executes the pending migrations using the defined directory or current\n* `dry_upgrade [path]` - Prints the pending migrations without executing them\n* `skip [path]` - Skips the current migration (next to be run) using the defined directory or current\n* `generate [path]` - Generates a new migration file into the target path\n\n## Examples\n\n```python\ndatabase = Migratore.get_database()\ntable = database.get_table(\"users\")\ntable.add_column(\"username\", type = \"text\")\n```\n\n## License\n\nMigratore is currently licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/).\n\n## Build Automation\n\n[![Build Status](https://github.com/hivesolutions/migratore/workflows/Main%20Workflow/badge.svg)](https://github.com/hivesolutions/migratore/actions)\n[![Coverage Status](https://coveralls.io/repos/hivesolutions/migratore/badge.svg?branch=master)](https://coveralls.io/r/hivesolutions/migratore?branch=master)\n[![PyPi Status](https://img.shields.io/pypi/v/migratore.svg)](https://pypi.python.org/pypi/migratore)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://www.apache.org/licenses/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhivesolutions%2Fmigratore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhivesolutions%2Fmigratore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhivesolutions%2Fmigratore/lists"}