添加安装部署脚本
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user