{"id":13529053,"url":"https://github.com/square/shift","last_synced_at":"2025-06-13T01:38:58.868Z","repository":{"id":7323418,"uuid":"49679370","full_name":"square/shift","owner":"square","description":"shift is an application that helps you run schema migrations on MySQL databases","archived":false,"fork":false,"pushed_at":"2023-05-04T21:40:22.000Z","size":782,"stargazers_count":738,"open_issues_count":29,"forks_count":52,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-03-30T07:02:12.213Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/square.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-01-14T22:26:32.000Z","updated_at":"2025-01-22T21:24:46.000Z","dependencies_parsed_at":"2023-01-13T16:23:36.955Z","dependency_job_id":"17a87dcf-1566-49f1-b4b8-dff4927ecf38","html_url":"https://github.com/square/shift","commit_stats":{"total_commits":67,"total_committers":10,"mean_commits":6.7,"dds":0.5671641791044777,"last_synced_commit":"72364b4c9b6f2fc5bdc337562cff311c08133d3f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/square%2Fshift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/square%2Fshift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/square%2Fshift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/square%2Fshift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/square","download_url":"https://codeload.github.com/square/shift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246655579,"owners_count":20812659,"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":[],"created_at":"2024-08-01T07:00:32.302Z","updated_at":"2025-04-01T14:33:57.244Z","avatar_url":"https://github.com/square.png","language":"Ruby","funding_links":[],"categories":["Ruby","Development"],"sub_categories":[],"readme":"# shift \u003cimg src=\"/ui/public/logo.png\" height=\"40\"\u003e\nshift is an application that makes it easy to run online schema migrations for MySQL databases\n\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\n\u003cimg src=\"/ui/screenshots/summary.png\"\u003e\n\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\n\n## Who should use it?\nshift was designed to solve the following problem - running schema migrations manually takes too much time. As such, it is most effective when schema migrations are taking up too much of your time (ex: for an operations or DBA team at a large organization), but really it can be used by anyone. As of writing this, shift has had no problem running hundreds of migrations a day or running migrations that take over a week to complete.\n\n## Features\n* safe, online schema changes (invokes the tried-and-true pt-online-schema-change)\n    * supports all \"ALTER TABLE...\", \"CREATE TABLE...\", or \"DROP TABLE...\" ddl\n* a ui where you can see the status of migrations and run them with the click of a button\n* self-service - out of the box, any user can file and run migrations, and an admin is only required to approve the ddl (this is all configurable though)\n* shard support - easily run a single migration on any number of shards\n\n## Components\nshift consists of 3 components. Each component has its own readme with more details\n* [ui](https://github.com/square/shift/tree/master/ui): a rails app where you can file, track, and run database migrations\n* [runner](https://github.com/square/shift/tree/master/runner): a go agent that consumes jobs from an api exposed by the ui\n* [pt-osc patch](https://github.com/square/shift/tree/master/ptosc-patch): a patch for pt-online-schema-change from the percona toolkit\n\n## Demo\nWatch a demo video [here](https://www.youtube.com/watch?v=u5L7PqIk--k)\n\n## Installation\nRead the installation guide [here](https://github.com/square/shift/wiki/Installation-Guide)\n\n## License\n\nCopyright (c) 2016 Square Inc. Distributed under the Apache 2.0 License.\nSee LICENSE file for further details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquare%2Fshift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsquare%2Fshift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquare%2Fshift/lists"}