Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# training-app

## 1.1.1

### Patch Changes

- d7d2235: Disable Postgres schema auto-push (`push: false`). Schema changes now go exclusively through migrations (`payload migrate:create` + `payload migrate`), so running `yarn dev` can no longer sync schema directly into a remote/production database. After this change a fresh database must be migrated before the app can run.

## 1.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "training-app",
"version": "1.1.0",
"version": "1.1.1",
"description": "Aplikacja treningowa na Payload 3",
"license": "MIT",
"type": "module",
Expand Down
3 changes: 3 additions & 0 deletions src/payload.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ export default buildConfig({
outputFile: path.resolve(dirname, 'payload-types.ts'),
},
db: postgresAdapter({
// Never auto-sync schema from models. Schema changes go through migrations only
// (migrate:create + migrate), so `yarn dev` can never push to a remote/prod DB.
push: false,
pool: {
connectionString: process.env.DATABASE_URL || '',
max: 10,
Expand Down
Loading