Skip to content

Commit 92cea86

Browse files
committed
update docs
1 parent 4af97fb commit 92cea86

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/database/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pkg/db/New() called
4545
Check current database version
4646
4747
Database version > available migrations?
48-
├─ Yes → Log warning, continue (database from newer version)
48+
├─ Yes → Return error (database from newer version)
4949
└─ No → Run pending migrations sequentially
5050
5151
[Release File Lock]
@@ -87,9 +87,9 @@ for a race condition if two process concurrently attempt to run the migrations.
8787
If you run an older version of the tool after having used a newer version, the database may be at a higher schema version than the older tool expects. In this case:
8888

8989
- The tool detects the database is ahead of available migrations
90-
- A warning is logged once per process:
90+
- An error is returned to prevent potential data corruption:
9191
```
92-
Warning database version 8 (~/.docker/mcp/mcp-toolkit.db) is newer than expected. Upgrade to the newest version to prevent issues.
92+
database version 8 (~/.docker/mcp/mcp-toolkit.db) is ahead of the current application version. Please upgrade to the latest version
9393
```
9494

9595
## Testing

0 commit comments

Comments
 (0)