Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

076_ProjectionProjectsPinArchive.ts

9 lines369 Bytes

1import * as Effect from "effect/Effect";
2import * as SqlClient from "effect/sql/SqlClient";
3​
4// Null means unpinned and not archived.
5export default Effect.gen(function* () {
6 const sql = yield* SqlClient.SqlClient;
7 yield* sql`ALTER TABLE projection_projects ADD COLUMN pinned_at TEXT`;
8 yield* sql`ALTER TABLE projection_projects ADD COLUMN archived_at TEXT`;
9});