sbwerewolf / fias-gar-schema-deploy-tool
FIAS GAR数据库部署的模板和脚本套件
v2.0.5
2023-02-10 23:52 UTC
Requires
- ext-json: *
- ext-pdo: *
- psr/log: ^3.0
- sbwerewolf/batch-file-scripting: ^2.0
- sbwerewolf/json-serialize-trait: ^1.0
Requires (Dev)
- monolog/monolog: ^3.2
README
FIAS GAR数据库部署的模板和脚本套件
联邦信息地址系统国家地址目录 - FIAS ГАР
如何安装
composer require sbwerewolf/fias-gar-schema-deploy-tool
如何使用
第一步是创建表,第二步是创建索引。
部署表
- 创建包含数据库凭据的 .env 文件
- 将目录
test/template
复制到可访问的位置 - 复制以下链接内容 test/install-storage.php
- 在 test/install-storage.php 中更正所有路径
- 检查模板列表,移除不必要的模板
- 运行脚本 test/install-storage.php
创建索引
- 复制以下链接内容 test/create-indexes.php
- 在 test/create-indexes.php 中更正所有路径
- 更正模板列表,移除不必要的模板
- 运行脚本 test/create-indexes.php
创建自己的模板和脚本
让我们探索源代码,并随时对其进行修改。
SQL 只为 PostgreSQL 开发,可能不适合 MySQL 和其他 DBMS。
联系方式
Volkhin Nikolay
e-mail ulfnew@gmail.com
phone +7-902-272-65-35
Telegram @sbwerewolf
通过消息传递与我聊天