Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add more db options #1622

Merged
merged 38 commits into from
Jan 20, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
bb89d66
it works but needs more testing
ronanru Oct 24, 2023
b89463b
fix drizzle config
ronanru Oct 24, 2023
80eed45
fix ci error
ronanru Oct 24, 2023
03634e6
use planetscale as default for drizzle
ronanru Oct 24, 2023
f5d5a2d
add ci tests
ronanru Oct 30, 2023
40405de
remove neon
ronanru Nov 2, 2023
071bfd9
move drizzle schemas to different files
ronanru Nov 3, 2023
19b0d66
add db container
ronanru Nov 3, 2023
7e36c88
fix drizzle config, switch to postgres.js
ronanru Nov 3, 2023
80643cb
chore: add changeset
ronanru Nov 3, 2023
1aae6fa
fixes for sqlite
ronanru Nov 3, 2023
d35ad8e
bugfixes
ronanru Nov 3, 2023
83a5639
fix ci
ronanru Nov 3, 2023
e2e4750
add @prisma/adapter-planetscale
ronanru Nov 19, 2023
962adeb
fix prisma + planetscale
ronanru Nov 19, 2023
52fb275
Merge remote-tracking branch 'upstream/main' into db-options
ronanru Nov 19, 2023
5a318d9
fix eslint error
ronanru Nov 19, 2023
5f92792
fix db script
ronanru Nov 19, 2023
423d9fe
Revert "fix prisma + planetscale"
ronanru Nov 20, 2023
6f668e5
remove unnecessary comment
ronanru Nov 20, 2023
84c4d4d
move password generation to the start script
ronanru Nov 22, 2023
166f3b7
add foreign keys to drizzle schemas
ronanru Nov 22, 2023
1e77b3a
docs: update first steps
ronanru Nov 22, 2023
cfd53be
Merge branch 'main' into db-options
ronanru Nov 22, 2023
fde1ed4
fix planetscale+prisma schema
ronanru Nov 23, 2023
59a65ce
add windows instructions to the db script
ronanru Nov 26, 2023
4887feb
Merge branch 'main' into db-options
ronanru Nov 26, 2023
f9a6b4b
Merge branch 'main' into db-options
ronanru Dec 6, 2023
7f8925d
Merge branch 'main' into db-options
ronanru Dec 7, 2023
e28a41c
merge
juliusmarminge Jan 4, 2024
1d89669
Merge branch 'main' into db-options
juliusmarminge Jan 4, 2024
a0c2050
fix schema
juliusmarminge Jan 4, 2024
255988d
add type cast for adapter to workaround version mismatch
juliusmarminge Jan 4, 2024
a72ea73
add mode
juliusmarminge Jan 4, 2024
ed73195
rm cast for prisma adapter
juliusmarminge Jan 4, 2024
60914c7
fix env var string
juliusmarminge Jan 4, 2024
1ef48ab
Merge branch 'main' into db-options
ronanru Jan 15, 2024
cfa68bf
Merge branch 'main' into db-options
juliusmarminge Jan 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cli/template/extras/src/server/auth-app/with-drizzle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
type DefaultSession,
type NextAuthOptions,
} from "next-auth";
import { type Adapter } from "next-auth/adapters";
import DiscordProvider from "next-auth/providers/discord";

import { env } from "~/env";
Expand Down Expand Up @@ -46,7 +47,7 @@ export const authOptions: NextAuthOptions = {
},
}),
},
adapter: DrizzleAdapter(db, createTable),
adapter: DrizzleAdapter(db, createTable) as Adapter,
juliusmarminge marked this conversation as resolved.
Show resolved Hide resolved
providers: [
DiscordProvider({
clientId: env.DISCORD_CLIENT_ID,
Expand Down
3 changes: 2 additions & 1 deletion cli/template/extras/src/server/auth-app/with-prisma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
type DefaultSession,
type NextAuthOptions,
} from "next-auth";
import { type Adapter } from "next-auth/adapters";
import DiscordProvider from "next-auth/providers/discord";

import { env } from "~/env";
Expand Down Expand Up @@ -45,7 +46,7 @@ export const authOptions: NextAuthOptions = {
},
}),
},
adapter: PrismaAdapter(db),
adapter: PrismaAdapter(db) as Adapter,
providers: [
DiscordProvider({
clientId: env.DISCORD_CLIENT_ID,
Expand Down
3 changes: 2 additions & 1 deletion cli/template/extras/src/server/auth-pages/with-drizzle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
type DefaultSession,
type NextAuthOptions,
} from "next-auth";
import { type Adapter } from "next-auth/adapters";
import DiscordProvider from "next-auth/providers/discord";

import { env } from "~/env";
Expand Down Expand Up @@ -47,7 +48,7 @@ export const authOptions: NextAuthOptions = {
},
}),
},
adapter: DrizzleAdapter(db, createTable),
adapter: DrizzleAdapter(db, createTable) as Adapter,
providers: [
DiscordProvider({
clientId: env.DISCORD_CLIENT_ID,
Expand Down
3 changes: 2 additions & 1 deletion cli/template/extras/src/server/auth-pages/with-prisma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
type DefaultSession,
type NextAuthOptions,
} from "next-auth";
import { type Adapter } from "next-auth/adapters";
import DiscordProvider from "next-auth/providers/discord";

import { env } from "~/env";
Expand Down Expand Up @@ -46,7 +47,7 @@ export const authOptions: NextAuthOptions = {
},
}),
},
adapter: PrismaAdapter(db),
adapter: PrismaAdapter(db) as Adapter,
providers: [
DiscordProvider({
clientId: env.DISCORD_CLIENT_ID,
Expand Down
Loading