candle-annotator/scripts
Marko Djordjevic 73f44bf447 Add data migration script for user-accounts (task 2.5)
Create scripts/migrate-users.ts that:
- Creates a default admin user from DEFAULT_ADMIN_EMAIL/DEFAULT_ADMIN_PASSWORD env vars
- Backfills user_id on all existing rows in charts, annotations, annotation_types,
  span_annotations, span_label_types
- Is idempotent (safe to run multiple times)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-20 09:51:23 +01:00
..
import_talib_annotations.ts fix: correct timestamp/boolean types for PostgreSQL schema (Date not int, bool not 0/1) 2026-02-17 22:50:31 +01:00
list_charts.ts fix: correct timestamp/boolean types for PostgreSQL schema (Date not int, bool not 0/1) 2026-02-17 22:50:31 +01:00
load-initial-data.js fix: replace all SQLite references with PostgreSQL in scripts and lazy-init db connection 2026-02-17 23:48:47 +01:00
migrate-sqlite-to-postgres.py feat: add Python migration script and successfully test SQLite to PostgreSQL data migration 2026-02-17 14:01:21 +01:00
migrate-users.ts Add data migration script for user-accounts (task 2.5) 2026-02-20 09:51:23 +01:00
run-migrations.js fix: replace all SQLite references with PostgreSQL in scripts and lazy-init db connection 2026-02-17 23:48:47 +01:00
seed-span-labels.ts feat: add database schema, migrations, and API endpoints for span annotations 2026-02-14 05:56:28 +01:00
startup.sh fix: resolve database migration failures and startup ordering 2026-02-16 19:59:47 +01:00