@secondlayer/shared 4.0.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,9 @@
1
1
  import { type Kysely, sql } from "kysely";
2
2
 
3
+ /**
4
+ * Drops `account_spend_caps.ai_cap_cents`. AI eval tracking + caps were
5
+ * removed from the product post-pivot (subgraphs + subscriptions only).
6
+ */
3
7
  export async function up(db: Kysely<unknown>): Promise<void> {
4
8
  await sql`
5
9
  ALTER TABLE account_spend_caps
@@ -7,9 +11,6 @@ export async function up(db: Kysely<unknown>): Promise<void> {
7
11
  `.execute(db);
8
12
  }
9
13
 
10
- export async function down(db: Kysely<unknown>): Promise<void> {
11
- await sql`
12
- ALTER TABLE account_spend_caps
13
- ADD COLUMN IF NOT EXISTS ai_cap_cents integer
14
- `.execute(db);
14
+ export async function down(_db: Kysely<unknown>): Promise<void> {
15
+ throw new Error("0058 is a one-way drop; restore from backup");
15
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secondlayer/shared",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "type": "module",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",