# Database Scripts

Use these scripts in the order that matches your environment.

Fresh install:
1) `scripts/setup-database-user.sql` (optional, run as MySQL root)
2) `scripts/schema.sql` (creates tables + default admin user)

Existing database upgrades:
1) `scripts/migrate-managed-types.sql` (adds managed types + hierarchy)

Maintenance:
- `scripts/database-maintenance.sql`

Archived scripts:
- Legacy one-off migrations are in `scripts/archive/` for reference only.
