SansanandMistral Vibe fb387901cf test: Add migration test with manual data insertion
- TestMigrationsStepByStep: tests incremental migration workflow
  - Step 1: Apply first 4 migrations (creates game, song tables)
  - Step 2: Manually insert 5 games with 8 songs
  - Step 3: Apply migration 5 (rename game→soundtrack)
  - Step 4: Verify data preserved in soundtrack table
- Helper functions: cleanupDB, createTestDB, applyMigrations
- Tests data integrity through full migration cycle

Requires: DB_HOST, DB_PORT, DB_USERNAME, DB_PASSWORD env vars
Run: migrate -path internal/db/migrations -database "postgres://user:pass@host:port/db?sslmode=disable" up N

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-08 20:36:12 +02:00
2025-09-19 22:10:27 +02:00
2022-04-23 11:40:54 +02:00
2022-06-21 17:48:34 +02:00
2024-12-26 14:55:47 +01:00
S
Description
No description provided
3.9 GiB
0 Stars 1 Watchers 0 Forks
Languages
JavaScript 86%
Go 10.1%
Vue 2.8%
Python 0.3%
Just 0.3%
Other 0.3%