Skip to content

Commit 9bd3745

Browse files
authored
Merge pull request #5 from codee-sh/release/v1.1.1
Release/v1.1.1
2 parents e0b401c + 25ee743 commit 9bd3745

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# training-app
22

3+
## 1.1.1
4+
5+
### Patch Changes
6+
7+
- 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.
8+
39
## 1.1.0
410

511
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "training-app",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Aplikacja treningowa na Payload 3",
55
"license": "MIT",
66
"type": "module",

src/payload.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ export default buildConfig({
5252
outputFile: path.resolve(dirname, 'payload-types.ts'),
5353
},
5454
db: postgresAdapter({
55+
// Never auto-sync schema from models. Schema changes go through migrations only
56+
// (migrate:create + migrate), so `yarn dev` can never push to a remote/prod DB.
57+
push: false,
5558
pool: {
5659
connectionString: process.env.DATABASE_URL || '',
5760
max: 10,

0 commit comments

Comments
 (0)