18 lines · 462 B · TypeScript
RawDownload
import * as Effect from "effect/Effect";import * as SqlClient from "effect/unstable/sql/SqlClient"; export default Effect.gen(function* () {  const sql = yield* SqlClient.SqlClient;  const columns = yield* sql<{ readonly name: string }>`    PRAGMA table_info(projection_threads)  `;   if (columns.some((column) => column.name === "archived_at")) {    return;  }   yield* sql`    ALTER TABLE projection_threads    ADD COLUMN archived_at TEXT  `;});

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t