個人 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.