{"id":30368490,"url":"https://github.com/ledccn/ledc-phinx","last_synced_at":"2025-08-20T01:34:29.639Z","repository":{"id":270379415,"uuid":"910175931","full_name":"ledccn/ledc-phinx","owner":"ledccn","description":"Webman plugin ledc/phinx Migration数据库迁移工具","archived":false,"fork":false,"pushed_at":"2024-12-30T17:23:19.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-24T10:55:27.180Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ledccn.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":"2024-12-30T17:18:50.000Z","updated_at":"2024-12-30T17:23:22.000Z","dependencies_parsed_at":"2024-12-30T18:29:58.899Z","dependency_job_id":"27c0a505-12c7-4df3-bca2-dc8de7fb087d","html_url":"https://github.com/ledccn/ledc-phinx","commit_stats":null,"previous_names":["ledccn/ledc-phinx"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ledccn/ledc-phinx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fledc-phinx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fledc-phinx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fledc-phinx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fledc-phinx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ledccn","download_url":"https://codeload.github.com/ledccn/ledc-phinx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fledc-phinx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271252555,"owners_count":24726913,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-08-20T01:34:29.071Z","updated_at":"2025-08-20T01:34:29.630Z","avatar_url":"https://github.com/ledccn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Migration数据库迁移工具 Phinx\n\n## 安装\n`composer require ledc/phinx`\n\nPhinx 可以让开发者简洁的修改和维护数据库。 它避免了人为的手写 SQL 语句，它使用强大的 PHP API 去管理数据库迁移。开发者可以使用版本控制管理他们的数据库迁移。 Phinx 可以方便的进行不同数据库之间数据迁移。还可以追踪到哪些迁移脚本被执行，开发者可以不再担心数据库的状态从而更加关注如何编写出更好的系统。\n\n## 官方中文文档地址\nhttps://tsy12321.gitbooks.io/phinx-doc/content/\n\n## 使用建议\n\n迁移文件一旦代码合并后不允许再次修改，出现问题必须新建修改或者删除操作文件进行处理。\n\n## 命令\n\n```shell\nphp vendor/bin/phinx init\nphp vendor/bin/phinx create MyNewMigration\nphp vendor/bin/phinx migrate -e development\n```\n\n### 创建数据表操作文件命名规则\n{time(auto create)}_create_{表名英文小写}\n\n### 修改数据表操作文件命名规则\n{time(auto create)}_modify_{表名英文小写+具体修改项英文小写}\n{time(auto create)}_update_{表名英文小写+具体修改项英文小写}\n\n### 删除数据表操作文件命名规则\n{time(auto create)}_delete_{表名英文小写+具体修改项英文小写}\n\n### 填充数据文件命名规则\n{time(auto create)}_fill_{表名英文小写+具体修改项英文小写}\n\n## 捐赠\n\n![reward](reward.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledccn%2Fledc-phinx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fledccn%2Fledc-phinx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledccn%2Fledc-phinx/lists"}