Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
SteakFisher committed Jun 14, 2024
2 parents 4950acc + 10f7080 commit 053b424
Show file tree
Hide file tree
Showing 7 changed files with 1,665 additions and 145 deletions.
17 changes: 17 additions & 0 deletions drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import type { Config } from "drizzle-kit";
import * as dotenv from "dotenv";

dotenv.config({
path: ".env.local",
});

export default {
schema: "./drizzle/schema.ts",
out: "./drizzle/migrations",
dialect: "sqlite",
driver: "turso",
dbCredentials: {
url: process.env.TURSO_DB_URL,
authToken: process.env.TURSO_AUTH_TOKEN,
},
} satisfies Config;
5 changes: 5 additions & 0 deletions drizzle/schema.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { sqliteTable, text } from "drizzle-orm/sqlite-core";

export const fooTable = sqliteTable("foo", {
bar: text("bar").notNull().default("Hey!"),
});
3 changes: 3 additions & 0 deletions environment.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ declare global {
MESSAGING_SENDER_ID: string;
APP_ID: string;

TURSO_AUTH_TOKEN: string;
TURSO_DB_URL: string;

FIREBASE_SERVICE_ACCOUNT_KEY: string;
}
}
Expand Down
Loading

0 comments on commit 053b424

Please sign in to comment.