{"id":22213536,"url":"https://github.com/robbycbennett/migrate","last_synced_at":"2025-03-25T06:22:12.889Z","repository":{"id":188098006,"uuid":"622253283","full_name":"RobbyCBennett/Migrate","owner":"RobbyCBennett","description":"Portable database migration shell script","archived":false,"fork":false,"pushed_at":"2023-08-13T17:51:11.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-30T05:42:37.698Z","etag":null,"topics":["database-management","database-migrations","personal","script"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RobbyCBennett.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-04-01T15:13:37.000Z","updated_at":"2024-11-08T23:28:01.000Z","dependencies_parsed_at":"2023-08-13T19:15:38.618Z","dependency_job_id":null,"html_url":"https://github.com/RobbyCBennett/Migrate","commit_stats":null,"previous_names":["robbycbennett/migrate"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobbyCBennett%2FMigrate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobbyCBennett%2FMigrate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobbyCBennett%2FMigrate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobbyCBennett%2FMigrate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobbyCBennett","download_url":"https://codeload.github.com/RobbyCBennett/Migrate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245408908,"owners_count":20610417,"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-management","database-migrations","personal","script"],"created_at":"2024-12-02T21:10:03.370Z","updated_at":"2025-03-25T06:22:12.862Z","avatar_url":"https://github.com/RobbyCBennett.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Migrate\n\nPortable database migration shell script\n\n# 🧠 Design Philosophy\n\n* Simple to use and portable\n* Migrate up/down multiple times with one command\n* Review each migration if you want to\n* Extensible via the environment script\n\n# 📥 Installation\n\nClone the repository, which includes the migrate script, and an example environment script for PostgreSQL\n\nCreate an environment script and edit it, especially `migration_sql_dir`, `database`, and `user`\n\n```sh\ncd MY_EXISTING_REPO_HERE\ngit submodule add git@github.com:RobbyCBennett/migrate.git\ncd migrate\ncp .env.postgresql.sh .env.sh\nedit .env.sh\n```\n\n# 📚 Help\n\n```sh\n./migrate.sh\n```\n\n```\nMigration help\n\n    Usage:\n        ./migrate.sh MIG_NAME\n        ./migrate.sh up EXTRA_ARGS\n        ./migrate.sh down EXTRA_ARGS\n\n    Examples:\n        ./migrate.sh init\n        ./migrate.sh create_users_table\n        ./migrate.sh up\n        ./migrate.sh up 2\n        ./migrate.sh down 3 yes\n        ./migrate.sh status\n\n    Primary Arguments:\n        init:        Initialize the database and create the migrations table\n\n        MIG_NAME:    Create a migration (usually snake_case) with the given migration name\n\n        up:          Use a migration to change the database\n        down:        Undo a migration to change the database back\n\n        status:      Get the status of all migrations\n\n    Extra Arguments (EXTRA_ARGS):\n        yes:         Ignore confirmation for each migration (dangerous)\n        INTEGER:     Instead of only 1 migration, migrate up/down many times\n\n    Tips:\n        Folders:     Organize SQL files into folders if you want to\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobbycbennett%2Fmigrate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobbycbennett%2Fmigrate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobbycbennett%2Fmigrate/lists"}