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:
parent
c23ea0ce5e
commit
33122894c2
10 changed files with 1936 additions and 39 deletions
15
drizzle.config.ts
Normal file
15
drizzle.config.ts
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue