| .. | ||
| 001_initial_schema.sql | ||
| README.md | ||
Database Migrations
Migrations are managed via TypeORM and run from the webmap-api service.
Running Migrations
cd features/webmap/api
pnpm migration:run
Generating Migrations
cd features/webmap/api
pnpm migration:generate migrations/DescriptiveName
Migration History (from egirl-platform)
The following migrations should be adapted:
1733800800000-AddWebsitesSchema- Creates websites & website_apps tables1734192000000-ConvertDomainsToArrayWithGINIndex- Converts domains to text[] with GIN index1765553242750-AddThemeTables- Creates themes, theme_versions, deployment_themes1765671152861-AddUsersSchema- Creates users table with roles1766001952000-ExpandWebsiteConfiguration- Adds JSONB config columns1766002000000-AddWebsiteContentStorage- Creates website_content table1766150000000-Stage1DeploymentData- Seed data migration
Key Tables
websites- Domain to config mappingwebsite_apps- App routing per websitewebsite_content- Database-backed content storagethemes- Design token themestheme_versions- Theme version historydeployment_themes- Per-deployment theme overridesusers- User authentication