feat: add persisted page insight platform

This commit is contained in:
2026-08-21 18:51:00 +08:00
parent 8507b5d017
commit 17e3f1a7d0
18 changed files with 1587 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ func main() {
os.Exit(1)
}
defer pool.Close()
for _, path := range []string{"migrations/000001_mvp.sql", "migrations/000002_growth_analyst.sql", "migrations/000003_ai_summary_refresh.sql"} {
for _, path := range []string{"migrations/000001_mvp.sql", "migrations/000002_growth_analyst.sql", "migrations/000003_ai_summary_refresh.sql", "migrations/000004_ai_page_insights.sql"} {
migration, err := os.ReadFile(path)
if err != nil {
logger.Error("reading migration failed", "path", path, "error", err)
@@ -36,5 +36,5 @@ func main() {
os.Exit(1)
}
}
logger.Info("migration complete", "version", 3)
logger.Info("migration complete", "version", 4)
}