Skip to content

Refactor database migration and instance management#12

Merged
wsapi-chat merged 2 commits intomainfrom
singleDB
Mar 6, 2026
Merged

Refactor database migration and instance management#12
wsapi-chat merged 2 commits intomainfrom
singleDB

Conversation

@wsapi-chat
Copy link
Owner

  • Consolidate WSAPI database migrations into a single version tracking table.
  • Remove separate app store and WhatsApp store databases; use a unified database for all data.
  • Update migration functions to create necessary tables in a single migration step.
  • Simplify SQLite DSN configuration by applying required pragmas in a dedicated function.
  • Enhance instance management with a new InstanceStore to handle instance records.
  • Update service and session management to reflect changes in instance handling.
  • Modify configuration documentation to reflect the new single database architecture.
  • Update Docker deployment instructions to align with the new database structure.

Description

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Refactoring
  • CI/CD or build changes

Checklist

  • Code compiles without errors (make build)
  • Tests pass (make test)
  • Linter passes (make lint)
  • OpenAPI specs updated (if endpoints or events changed)
  • OpenAPI specs validate (make openapi-lint)

- Consolidate WSAPI database migrations into a single version tracking table.
- Remove separate app store and WhatsApp store databases; use a unified database for all data.
- Update migration functions to create necessary tables in a single migration step.
- Simplify SQLite DSN configuration by applying required pragmas in a dedicated function.
- Enhance instance management with a new InstanceStore to handle instance records.
- Update service and session management to reflect changes in instance handling.
- Modify configuration documentation to reflect the new single database architecture.
- Update Docker deployment instructions to align with the new database structure.
@wsapi-chat wsapi-chat merged commit 0e66e46 into main Mar 6, 2026
1 check passed
@wsapi-chat wsapi-chat deleted the singleDB branch March 6, 2026 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant