Skip to content

Conversation

@pstamatop
Copy link
Member

Adds an initial “baseline” migration containing the full DB schema.
This migration is timestamped earlier than all others so new environments can be bootstrapped using migrations alone (with synchronize: false).

  • Environments that already have data must not run the InitSchema migration, because their schema already exists.
    Instead, they should mark it as executed without running it:

Option A (inside wallet-backend-server container):

yarn typeorm migration:run --fake

Option B (inside wallet-db):

INSERT INTO migrations (timestamp, name)
VALUES (1762258689036, 'InitSchema1762258689036');

After this baseline step, all future migrations will apply normally.

  • Fresh clones only need to run
yarn typeorm migration:run

which will create the full schema and then apply later migrations.

@gkatrakazas gkatrakazas marked this pull request as ready for review November 18, 2025 11:01
@gkatrakazas gkatrakazas requested a review from a team as a code owner November 18, 2025 11:01
gkatrakazas
gkatrakazas previously approved these changes Nov 18, 2025
@pstamatop pstamatop merged commit b0848c9 into master Nov 26, 2025
4 checks passed
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.

3 participants