Mode produksi: aplikasi live di pdkbsbu.web.id. Gunakan data dengan teliti dan cek ulang sebelum submit/perubahan status.
Database
Urutan aman untuk mengaktifkan PostgreSQL, migrate schema, seed cache AppSheet, verifikasi count, lalu submit draft WO.
Total Steps
13Linked Checks
10Write Steps
3Mode
RUNBOOK| Step | Title | Description | Status | Command | Link |
|---|---|---|---|---|---|
| STEP 1 | Buka Handover Runbook | Gunakan checklist go-live final sebelum operasi tulis database. | Read-only handover. | - | Buka |
| STEP 2 | Buka Command Center | Lihat ringkasan DB readiness, seed history, draft readiness, dan count comparison dalam satu dashboard. | Read-only overview. | - | Buka |
| STEP 3 | Cek Database Readiness | Pastikan DATABASE_URL tersedia, koneksi PostgreSQL berhasil, dan tabel wajib bisa dicek. | Wajib sebelum migrate/seed/submit. | - | Buka |
| STEP 4 | Review Schema & Migration | Review tabel Drizzle, migration SQL, dan catatan schema sebelum menyentuh DB. | Aman, read-only. | - | Buka |
| STEP 5 | Generate Migration | Generate SQL migration dari schema Drizzle jika ada perubahan schema. | Jalankan lokal setelah schema final. | npm run db:generate | - |
| STEP 6 | Apply Migration | Apply migration ke PostgreSQL target. Pastikan DATABASE_URL benar. | Perlu hati-hati; ini menulis ke DB. | npm run db:migrate | - |
| STEP 7 | Cek Seed Readiness | Bandingkan data cache dan validasi rencana urutan seed/upsert. | Dry-run/read-only. | npm run db:seed:plan | Buka |
| STEP 8 | Dry-run Seed Cache | Preview dataset yang akan di-upsert ke PostgreSQL tanpa menulis DB. | Default aman: dry-run. | npm run db:seed:cache | Buka |
| STEP 9 | Execute Seed Cache | Seed/upsert cache ke PostgreSQL setelah DB readiness dan migration aman. | Menulis DB; jalankan hanya saat sudah siap. | npm run db:seed:cache -- --execute | - |
| STEP 10 | Review Seed History | Cek log lokal dry-run/execute seed untuk audit operasional. | Read-only audit trail. | - | Buka |
| STEP 11 | Cek Draft DB Readiness | Validasi field draft lokal sebelum submit per item ke PostgreSQL. | Read-only draft validation. | - | Buka |
| STEP 12 | Compare Counts | Bandingkan jumlah row cache vs PostgreSQL per tabel setelah seed. | Read-only verification. | - | Buka |
| STEP 13 | Submit Draft WO | Submit draft yang sudah Siap Final/Exported ke PostgreSQL via tombol Submit DB. | Menulis DB per draft. | - | Buka |