{"id":20914898,"url":"https://github.com/showx/dbshow","last_synced_at":"2026-03-14T08:36:58.710Z","repository":{"id":227210883,"uuid":"770730364","full_name":"showx/dbshow","owner":"showx","description":"数据库表结构管理","archived":false,"fork":false,"pushed_at":"2024-03-22T10:05:15.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T16:14:58.787Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/showx.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-03-12T03:52:14.000Z","updated_at":"2024-03-12T03:52:14.000Z","dependencies_parsed_at":"2024-11-19T05:01:44.845Z","dependency_job_id":null,"html_url":"https://github.com/showx/dbshow","commit_stats":null,"previous_names":["showx/dbshow"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/showx%2Fdbshow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/showx%2Fdbshow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/showx%2Fdbshow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/showx%2Fdbshow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/showx","download_url":"https://codeload.github.com/showx/dbshow/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243307496,"owners_count":20270263,"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-18T16:12:05.066Z","updated_at":"2025-12-25T08:52:03.486Z","avatar_url":"https://github.com/showx.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 关于\ndbshow是一款数据库表管理工具\n\n# 使用\nphp vendor/bin/doctrine migrations:diff\n\n# doctrine-migrations\n./vendor/bin/doctrine-migrations\n\nmigrations:current\nmigrations:dump-schema\nmigrations:execute\nmigrations:generate\nmigrations:latest\nmigrations:list\nmigrations:migrate\nmigrations:rollup\nmigrations:status\nmigrations:sync-metadata-storage\nmigrations:up-to-date\nmigrations:version\n\n\ndoctrine:migrations:generate：生成一个新的迁移文件。\ndoctrine:migrations:migrate：执行所有未执行的迁移。\ndoctrine:migrations:status：显示当前数据库 schema 的状态。\ndoctrine:migrations:diff：显示数据库 schema 与映射信息之间的差异。\ndoctrine:migrations:execute：执行指定的迁移。\ndoctrine:migrations:version：显示当前数据库 schema 的版本。\n\n--name：指定迁移文件的名称。\n--up：指定要执行的 SQL 语句。\n--down：指定要回滚的 SQL 语句。\n\n ./vendor/bin/doctrine-migrations migrations:dump-schema --namespace mg2\n\n# 文档说明\nhttps://www.doctrine-project.org/projects/doctrine-migrations/en/3.7/reference/introduction.html\n\n# 参数\nmigrations:diff [--configuration CONFIGURATION] [--em EM] [--conn CONN] [--namespace NAMESPACE] [--filter-expression FILTER-EXPRESSI\nON] [--formatted] [--line-length LINE-LENGTH] [--check-database-platform [CHECK-DATABASE-PLATFORM]] [--allow-empty-diff] [--from-emp\nty-schema]\n\n\n\n\n# phinx\n\nhttps://book.cakephp.org/phinx/0/en/index.html\n\n./vendor/bin/phinx diff\n\ncreate：创建新的迁移文件。\nmigrate：执行数据库迁移。\nrollback：回滚数据库迁移。\nseed：执行 seeders 文件。\nstatus：查看数据库迁移状态。\n\n\nmysqldump -u root -p database_name \u003e database_structure.sql\n\n./vendor/bin/phinx sql create_users_table.sql\n\n./vendor/bin/phinx migrate --environments development,production\n\n./vendor/bin/phinx seed --environment development --seed seeds/development.sql\n\n./vendor/bin/phinx seed:create CreateUsersSeed\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshowx%2Fdbshow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshowx%2Fdbshow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshowx%2Fdbshow/lists"}