{"id":19064842,"url":"https://github.com/cloudbit-interactive/migration","last_synced_at":"2025-10-24T11:04:24.931Z","repository":{"id":63191520,"uuid":"309873739","full_name":"cloudbit-interactive/migration","owner":"cloudbit-interactive","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-15T03:37:46.000Z","size":36478,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-02T14:11:53.143Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/cloudbit-interactive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-04T03:34:49.000Z","updated_at":"2024-12-15T03:37:50.000Z","dependencies_parsed_at":"2025-01-02T17:00:30.117Z","dependency_job_id":null,"html_url":"https://github.com/cloudbit-interactive/migration","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudbit-interactive%2Fmigration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudbit-interactive%2Fmigration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudbit-interactive%2Fmigration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudbit-interactive%2Fmigration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudbit-interactive","download_url":"https://codeload.github.com/cloudbit-interactive/migration/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240118329,"owners_count":19750471,"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-11-09T00:47:32.400Z","updated_at":"2025-10-03T19:28:03.973Z","avatar_url":"https://github.com/cloudbit-interactive.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Migration [MySQL]\nSimple migration script wrote in golang, inspired in laravel migration implementation\n\n# How Use\n* Rename config.env.example to config.env and edit with the DataBase info\n* Create .sql script files with the next format: YYYY_MM_YY_PRIORITY_NAME.sql\n\n# Example: \n* Create a folder for your sql migration files example: **sqlFiles/** and put all yours **.sql** files inside\n```\n0000_00_00_0000_create_migrations_table.sql                       // This script should be the fist sql executed\n2010_01_01_0000_squema.sql                                        // Your initial squema\n2020_11_03_0001_create_folder_table.sql                           // A migration script file\n2020_11_03_0002_alter_text_table.sql                              // Another file with migration scripts\n2021_01_03_0001_insert_in_users_table.sql                         // Another file with migration scripts\n2021_02_01_0001_procedure_multiply_numbers_[NO_SPLIT].sql         // will avoid split the script in sub queries\n```\n\n* Rename **config.env.example** to **config.env** and set your project values\n* Execute migration.exe (windows) or the specific binary for (linux, mac).\n* The app will generate a log file with the scripts executed.\n* Please, check out **example/** folder for more detals.\n\n# Dev - Build Binaries\n```\nGOOS=windows GOARCH=amd64 go build -ldflags=\"-w -s\" -o bin/migration-windows-amd64.exe src/app/main.go \u0026\u0026 \\\nGOOS=linux GOARCH=amd64 go build -ldflags=\"-w -s\" -o bin/migration-linux-amd64 src/app/main.go  \u0026\u0026 \\\nGOOS=darwin GOARCH=amd64 go build -ldflags=\"-w -s\" -o bin/migration-mac-amd64 src/app/main.go  \u0026\u0026 \\\nGOOS=darwin GOARCH=arm64 go build -ldflags=\"-w -s\" -o bin/migration-mac-arm64 src/app/main.go  \u0026\u0026 \\\nlipo -create -output bin/migration-mac-universal bin/migration-mac-amd64 bin/migration-mac-arm64  \u0026\u0026 \\\nrm bin/migration-mac-amd64  \u0026\u0026 \\\nrm bin/migration-mac-arm64\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudbit-interactive%2Fmigration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudbit-interactive%2Fmigration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudbit-interactive%2Fmigration/lists"}