feat: stream originals with download accounting
This commit is contained in:
1 parent
c400167b8f
commit
8871e4794a
28 files changed
+4081
-8
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { readFile } from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
|
||||
import { expect, test } from "vitest";
|
||||
|
||||
test("0003 adds a durable voided billing state without deleting usage history", async () => {
|
||||
const migration = await readFile(
|
||||
path.join(process.cwd(), "drizzle/0003_stream_delivery.sql"),
|
||||
"utf8",
|
||||
);
|
||||
|
||||
expect(migration).toContain("ALTER TYPE \"public\".\"usage_billing_status\" ADD VALUE 'voided'");
|
||||
expect(migration).not.toMatch(/delete\s+from\s+"?usages"?/i);
|
||||
});
|
||||
Reference in new issue
Block a user