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

database.ts

10 lines348 Bytes

1import * as Cloudflare from "alchemy/Cloudflare";
2​
3/**
4 * A D1 database with hand-written SQL migrations. Files under
5 * `./migrations` are sorted by numeric prefix and applied in order on
6 * every deploy; already-applied migrations are skipped.
7 */
8export const Database = Cloudflare.D1.Database("Database", {
9 migrationsDir: "./migrations",
10});