You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: standardize database schema to use public schema
Replace network-specific schemas (mainnet, preprod) with the public
schema consistently across all configurations.
Changes:
- Update DB_SCHEMA to 'public' in docker-compose and integration test configs
- Modify JDBC URLs to use currentSchema=public as default
- Update entrypoint.sh to set DB_SCHEMA=public instead of network name
- Fix UPDATE_GENESIS_BLOCK_QUERY to use quoted "public" schema
This simplifies database management by using a single schema regardless
of the network being used.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .env.IntegrationTest
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,10 @@ DB_SECRET=weakpwd#123_d
16
16
DB_HOST=db
17
17
# Service name in docker-compose or local db
18
18
DB_PORT=5432
19
-
DB_SCHEMA=${NETWORK}
19
+
DB_SCHEMA=public
20
20
DB_PATH=data
21
-
UPDATE_GENESIS_BLOCK_QUERY="UPDATE devkit.block SET number = 0 WHERE number = -1; UPDATE devkit.block SET prev_hash = 'Genesis' WHERE number = 1"
22
-
#UPDATE_GENESIS_BLOCK_QUERY="UPDATE devkit.block SET prev_hash = 'Genesis' WHERE number = 1"
21
+
UPDATE_GENESIS_BLOCK_QUERY="UPDATE \"public\".block SET number = 0 WHERE number = -1; UPDATE \"public\".block SET prev_hash = 'Genesis' WHERE number = 1"
22
+
#UPDATE_GENESIS_BLOCK_QUERY="UPDATE \"public\".block SET prev_hash = 'Genesis' WHERE number = 1"
0 commit comments