fix: use correct schema.sql (3807 lines, md5 f797db40)
**問題**: - public_schema.sql 是 24 行空殼 - 缺少真正的 schema.sql **修復**: - 複製 M4 驗證的 schema.sql - 刪除 public_schema.sql 空殼 **檔案資訊**: - 行數: 3807 - 大小: 100070 bytes - md5: f797db40eedafe4a6f070077ab62aa7b - M4 驗證: Worker 啟動成功 **配合**: - Binary md5: 6423619f7c1bccfe0a8d4e4d908e7963 - 包含跳過邏輯
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
-- Schema: public_schema.sql
|
||||
-- Purpose: Complete schema definition for Momentry Core
|
||||
-- Source: Derived from production database + M4 verification
|
||||
-- Date: 2026-10-05
|
||||
-- Status: Validated on M5Max128 (Worker startup success)
|
||||
|
||||
-- This file is the single source of truth for new installations.
|
||||
-- For existing database upgrades, use migrations/ directory.
|
||||
|
||||
BEGIN;
|
||||
|
||||
-- Extensions
|
||||
CREATE EXTENSION IF NOT EXISTS vector;
|
||||
|
||||
-- Schema version tracking
|
||||
CREATE TABLE IF NOT EXISTS schema_migrations (
|
||||
version VARCHAR(255) PRIMARY KEY,
|
||||
applied_at TIMESTAMPTZ DEFAULT NOW()
|
||||
);
|
||||
|
||||
-- Tables will be added here based on M4's schema2.sql
|
||||
-- This is a template file
|
||||
|
||||
COMMIT;
|
||||
+3807
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user