Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Mar 5, 2024
1 parent 96ea56d commit 5d4ba65
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ This will refresh & rebuild assets on file changes.
## Other development commands

The database setup should be run only once for a fresh database.
Whenever you change the `app/drizzle/schema.server.ts` file you need to run [npm run generate:migration](https://orm.drizzle.team/kit-docs/commands#generate-migrations) to generate a migration, edit generated `app/drizzle/*.sql` file if needed and then run `npm run setup` to apply migration to database.
Whenever you change the `app/drizzle/schema.server.ts` file you need to run [npm run generate:migration](https://orm.drizzle.team/kit-docs/commands#generate-migrations) to generate a migration, edit generated `app/drizzle/*.sql` file if needed and then run `npm run setup` to apply migration to database.

To format according to [prettier](https://prettier.io) run

Expand Down
6 changes: 2 additions & 4 deletions app/drizzle/meta/0000_snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@
"users_email_unique": {
"name": "users_email_unique",
"nullsNotDistinct": false,
"columns": [
"email"
]
"columns": ["email"]
}
}
}
Expand All @@ -112,4 +110,4 @@
"schemas": {},
"tables": {}
}
}
}
2 changes: 1 addition & 1 deletion app/drizzle/meta/_journal.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
"breakpoints": true
}
]
}
}
3 changes: 1 addition & 2 deletions drizzle.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ export default {
schema: [resolve(__dirname, "./app/drizzle/schema.server.ts")],
dbCredentials: {
connectionString:
process.env.DATABASE_URL ??
"<Please set DATABASE_URL env var>",
process.env.DATABASE_URL ?? "<Please set DATABASE_URL env var>",
},
// Print all statements
verbose: true,
Expand Down

0 comments on commit 5d4ba65

Please sign in to comment.