mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-23 21:16:41 +02:00
chore: complete ManaCore → Mana rename (docs, go modules, plists, images)
Final cleanup of references missed in previous rename commits: - Dockerfiles: PUBLIC_MANA_CORE_AUTH_URL → PUBLIC_MANA_AUTH_URL - Go modules: github.com/manacore/* → github.com/mana/* (7 go.mod files) - launchd plists: com.manacore.* → com.mana.* (14 files renamed + content) - Image assets: *_Manacore_AI_Credits* → *_Mana_AI_Credits* (11 files) - .env.example files: ManaCore brand strings → Mana - .prettierignore: stale apps/manacore/* paths → apps/mana/* - Markdown docs (CLAUDE.md, /docs/*): mana-core-auth → mana-auth, etc. Excluded from rename: .claude/, devlog/, manascore/ (historical content), client testimonials, blueprints, npm package refs (@mana-core/*). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
6f4667c2a3
commit
22a73943e1
307 changed files with 2408 additions and 4537 deletions
|
|
@ -240,10 +240,10 @@ pnpm setup:db:chat
|
|||
### Per-Service Commands
|
||||
|
||||
```bash
|
||||
# mana-core-auth
|
||||
pnpm --filter mana-core-auth db:push
|
||||
pnpm --filter mana-core-auth db:generate
|
||||
pnpm --filter mana-core-auth db:migrate
|
||||
# mana-auth
|
||||
pnpm --filter mana-auth db:push
|
||||
pnpm --filter mana-auth db:generate
|
||||
pnpm --filter mana-auth db:migrate
|
||||
|
||||
# chat-backend
|
||||
pnpm --filter @chat/server db:push
|
||||
|
|
@ -325,7 +325,7 @@ Migrations run automatically after database creation:
|
|||
# .github/workflows/cd-staging.yml
|
||||
- name: Run database migrations
|
||||
run: |
|
||||
docker compose exec -T mana-core-auth pnpm run db:migrate
|
||||
docker compose exec -T mana-auth pnpm run db:migrate
|
||||
```
|
||||
|
||||
### Production Deployment
|
||||
|
|
@ -336,7 +336,7 @@ Migrations run BEFORE deploying new code:
|
|||
# .github/workflows/cd-production.yml
|
||||
- name: Run database migrations
|
||||
run: |
|
||||
docker compose run --rm mana-core-auth pnpm run db:migrate
|
||||
docker compose run --rm mana-auth pnpm run db:migrate
|
||||
|
||||
- name: Deploy with zero-downtime
|
||||
run: |
|
||||
|
|
@ -352,7 +352,7 @@ Advisory locks prevent multiple instances from running migrations simultaneously
|
|||
### How It Works
|
||||
|
||||
```typescript
|
||||
// services/mana-core-auth/src/db/migrate.ts
|
||||
// services/mana-auth/src/db/migrate.ts
|
||||
|
||||
const MIGRATION_LOCK_ID = 987654321;
|
||||
|
||||
|
|
@ -377,7 +377,7 @@ await db.execute(sql`SELECT pg_advisory_unlock(${LOCK_ID})`);
|
|||
|
||||
| Service | Lock ID |
|
||||
|---------|---------|
|
||||
| mana-core-auth | `987654321` |
|
||||
| mana-auth | `987654321` |
|
||||
| chat-backend | (to be assigned) |
|
||||
| todo-backend | (to be assigned) |
|
||||
|
||||
|
|
@ -530,7 +530,7 @@ src/db/migrations/
|
|||
|
||||
```bash
|
||||
# Connect to database
|
||||
docker compose exec -T postgres psql -U postgres -d manacore_auth
|
||||
docker compose exec -T postgres psql -U postgres -d mana_platform
|
||||
|
||||
# Run down migration
|
||||
\i /path/to/001_add_feature.down.sql
|
||||
|
|
@ -594,7 +594,7 @@ docker compose exec -T postgres pg_isready -U postgres
|
|||
echo $DATABASE_URL
|
||||
|
||||
# Manual connection test
|
||||
docker compose exec -T postgres psql -U postgres -d manacore_auth -c "SELECT 1"
|
||||
docker compose exec -T postgres psql -U postgres -d mana_platform -c "SELECT 1"
|
||||
```
|
||||
|
||||
### Migration Fails in CI/CD
|
||||
|
|
@ -631,7 +631,7 @@ docker compose exec -T postgres psql -U postgres -d manacore_auth -c "SELECT 1"
|
|||
## Migration File Structure
|
||||
|
||||
```
|
||||
services/mana-core-auth/
|
||||
services/mana-auth/
|
||||
├── src/db/
|
||||
│ ├── schema/
|
||||
│ │ ├── index.ts # Export all schemas
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue