{"id":14971474,"url":"https://github.com/devgaucho/mig","last_synced_at":"2026-01-24T21:18:10.706Z","repository":{"id":153376491,"uuid":"629169197","full_name":"devgaucho/mig","owner":"devgaucho","description":"Sistema básico de migrations em plain text","archived":false,"fork":false,"pushed_at":"2024-08-16T13:43:22.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-05T04:39:28.631Z","etag":null,"topics":["mariadb","migration","mysql","php","sqlite"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/gaucho/mig","language":"PHP","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/devgaucho.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":"2023-04-17T19:09:46.000Z","updated_at":"2024-08-16T13:43:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"4004d666-5d67-4a57-936c-9d6df2963f50","html_url":"https://github.com/devgaucho/mig","commit_stats":null,"previous_names":["minhalixeira/mig","devgaucho/mig"],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/devgaucho/mig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgaucho%2Fmig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgaucho%2Fmig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgaucho%2Fmig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgaucho%2Fmig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devgaucho","download_url":"https://codeload.github.com/devgaucho/mig/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgaucho%2Fmig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28737073,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T19:23:36.361Z","status":"ssl_error","status_checked_at":"2026-01-24T19:23:28.966Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["mariadb","migration","mysql","php","sqlite"],"created_at":"2024-09-24T13:45:15.491Z","updated_at":"2026-01-24T21:18:10.661Z","avatar_url":"https://github.com/devgaucho.png","language":"PHP","readme":"# mig\n\nSistema básico de migrations em plain text\n\n## Instalação\n\n```bash\ncomposer require gaucho/mig\n```\n\n## Utilização\n\n### Formato das migrations:\n\nCada tabela é representada através de um arquivo TXT com as colunas.\n\n#### Exemplo:\n\nArquivo plant text \"table/users\"\n\n```\nid\nname_32\nemail_32\n```\n\nColunas \"id\" são automaticamente convertidas para AUTO_INCREMENT\n\nOs prefixos numéricos opcionais são convertidos para VARCHAR\n\n### Para apenas um diretório:\n\n```php\n$table_dir=__DIR__.'/table';\n```\n\n### Para vários diretórios:\n\n```php\n$table_dir=[\n__DIR__.'/dir1',\n__DIR__.'/dir2'\n];\n```\n\n\n### Corre Forrest! Corre! 🏃‍♂️\n\n```php\nuse gaucho\\mig;\n\n$pdo=/* instância do pdo */;\n$db_type='mysql';//sqlite\n$mig=new mig($pdo,$table_dir,$db_type);\n$mig-\u003emig();\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevgaucho%2Fmig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevgaucho%2Fmig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevgaucho%2Fmig/lists"}