1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-02 19:55:18 +02:00

Add featuredAdventures table and related code

This commit is contained in:
Sean Morley 2024-04-02 14:01:35 +00:00
parent c23ea0ce5e
commit 33122894c2
10 changed files with 1936 additions and 39 deletions

15
drizzle.config.ts Normal file
View file

@ -0,0 +1,15 @@
import type { Config } from 'drizzle-kit';
import * as dotenv from 'dotenv';
dotenv.config();
const { DATABASE_URL } = process.env;
if (!DATABASE_URL) {
throw new Error('No url');
}
export default {
schema: './src/lib/db/schema.ts',
out: './migrations',
driver: 'pg',
dbCredentials: {
connectionString: DATABASE_URL
}
} satisfies Config;