添加安装部署脚本

This commit is contained in:
admin
2026-05-11 10:41:36 +08:00
parent eae665d66f
commit ddb8746954
25 changed files with 1043 additions and 1 deletions
@@ -0,0 +1,11 @@
-- 首次初始化时执行(仅在 $PGDATA 为空时触发)
-- 在 datahub 数据库内启用 TimescaleDB 扩展
-- 迁移 2026_01_29_141058_convert_orders_to_hypertable.php 等依赖此扩展
\connect datahub
CREATE EXTENSION IF NOT EXISTS timescaledb;
-- 可按需追加其他扩展,例如:
-- CREATE EXTENSION IF NOT EXISTS pg_stat_statements;
-- CREATE EXTENSION IF NOT EXISTS pg_trgm;