Skip to content

Commit f8bfc41

Browse files
committed
fix(docs): fix pathes for migrations demo in docs
1 parent e779f37 commit f8bfc41

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,10 @@ By default, nuxt-slip-auth will create tables in your database for you !
236236

237237
However, if you want to use exising table you can still use [`drizze-kit`](https://orm.drizzle.team/kit-docs/overview) to generate and run migrations
238238

239-
create a schema.ts file
239+
create a server/schema.ts file
240240

241-
```ts[schemas.ts]
242-
import { getNuxtSlipAuthSchemas } from "nuxt-slip-auth/dist/runtime/nuxt/drizzle";
241+
```ts[server/schemas.ts]
242+
import { getNuxtSlipAuthSchemas } from "nuxt-slip-auth/nuxt-drizzle";
243243
244244
// getNuxtSlipAuthSchemas accepts a tableNames argument where you can provide your table names
245245
export const {
@@ -264,7 +264,7 @@ function getDbUrl() {
264264
export default defineConfig({
265265
dialect: "sqlite",
266266
out: "./migrations",
267-
schema: "./server/schemas.playground.ts",
267+
schema: "./server/schemas.ts",
268268
dbCredentials: {
269269
url: getDbUrl(),
270270
},

playground/server/schemas.playground.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// replace "../../" by "nuxt-slip-auth"
1+
// replace by "nuxt-slip-auth/nuxt-drizzle";
22
import { getNuxtSlipAuthSchemas } from "../../dist/runtime/nuxt/drizzle";
33

44
export const {

0 commit comments

Comments
 (0)