feat:移除了弹窗,服务器添加sls

This commit is contained in:
2026-09-08 22:39:45 +08:00
commit 6a295f9a7a
4082 changed files with 1322534 additions and 0 deletions

View File

@ -0,0 +1,23 @@
CREATE TABLE ingestion_daily (
day TEXT NOT NULL,
installation_hash TEXT NOT NULL,
accepted_batches INTEGER NOT NULL DEFAULT 0,
PRIMARY KEY (day, installation_hash)
)
WITHOUT ROWID;
CREATE TABLE ingestion_global_daily (
day TEXT PRIMARY KEY,
accepted_batches INTEGER NOT NULL DEFAULT 0
)
WITHOUT ROWID;
INSERT INTO ingestion_daily (day, installation_hash, accepted_batches)
SELECT date(accepted_at, 'unixepoch'), installation_hash, COUNT(*)
FROM accepted_batches
GROUP BY date(accepted_at, 'unixepoch'), installation_hash;
INSERT INTO ingestion_global_daily (day, accepted_batches)
SELECT date(accepted_at, 'unixepoch'), COUNT(*)
FROM accepted_batches
GROUP BY date(accepted_at, 'unixepoch');