个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗ElasticMigrate (esmigrate) applies versioned schema scripts to Elasticsearch and records every run in a SQL schema
version table, in the spirit of Flyway. Scripts run strictly in order, a failed script stops further migrations until it
is resolved, concurrent runs are locked out, and every run can leave an audit trail.
Documentation: zobayer.net/elastic-migrate (quickstart, migrating from v1)
ElasticMigrate requires Python 3.11 or newer. Signed releases are published on GitHub Releases; see Downloads for verification steps.
python -m pip install "./elastic_migrate-2.0.0-py3-none-any.whl[postgres]"
Use the postgres or mysql extra for those databases; SQLite needs no extra.
config.json:
{
"profiles": [
{
"default": {
"elastic_host": "http://localhost:9200",
"schema_db": "sqlite:///esmigrate.db",
"schema_dir": "./migrations"
}
}
]
}
migrations/V1_0__create_tweets_index.esm:
PUT /tweets
{"mappings": {"properties": {"user": {"type": "keyword"}, "message": {"type": "text"}}}}
Run it:
esmigrate init
esmigrate upgrade
Licensed under the Apache License 2.0. Releases up to v1.0.0-alpha.1 were published under the MIT License.