Doc_chelvyn/Mito/Rilis & Deploy/Mito — Catatan Cepat Upgrad...

42 lines
1.0 KiB
Markdown
Raw Normal View History

---
proyek: Mito
modul: mito_odoo
odoo: "18.0"
kategori: Rilis & Deploy
status: Catatan cepat
sumber: snk_mito/config/upgrade.md + snk_mito/config/solvepland.md
tags:
- mito
- deploy
- migration
- snippet
---
> Index: [[Mito — Index]] · Kategori: **Rilis & Deploy**
>
> Dua catatan pendek yang digabung: perintah upgrade yang dipakai sehari-hari di dev,
> dan alasan kenapa penghapusan table dipindah ke migration script.
> Prosedur lengkap untuk production ada di [[Mito — Upgrade Playbook Production]].
# Catatan Cepat Upgrade & Migrasi
## Perintah upgrade di dev
```bash
docker compose run --rm web odoo -u mito_base,jubelio_connector -d MITO_DEV_JUN --stop-after-init --logfile=```
Catatan: `-u` hanya mengurus DB/struktur. Kode Python baru ter-load ulang setelah container di-restart.
## Kenapa hapus table dipindah ke migration
## masalah
1. yang saya hadapi di sini saya harus hapus tabel lewat sql
2. error selesperson
## solusi
1. ini saya tambahkan migrasi untuk meletakan queri untuk menghapus table nya