Document SSH SQL steps for room-stay schema rollout
All checks were successful
build-and-deploy / build-deploy (push) Successful in 49s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 49s
This commit is contained in:
@@ -205,6 +205,9 @@ Operational notes
|
|||||||
- Payment provider migrated: PayU removed; Razorpay now used for settings, QR, payment links, and webhooks.
|
- Payment provider migrated: PayU removed; Razorpay now used for settings, QR, payment links, and webhooks.
|
||||||
- Server access: SSH host alias `hotel` is available for server operations (e.g., `ssh hotel`). Use carefully; DB changes were done via `sudo -u postgres psql` on the server when needed.
|
- Server access: SSH host alias `hotel` is available for server operations (e.g., `ssh hotel`). Use carefully; DB changes were done via `sudo -u postgres psql` on the server when needed.
|
||||||
- Schema changes: schema fix classes have been removed. If a new column/table is required, apply it manually on the server using `ssh hotel` and `sudo -u postgres psql -d trisolaris`, e.g. `alter table ... add column ...`. Keep a note of the exact SQL applied.
|
- Schema changes: schema fix classes have been removed. If a new column/table is required, apply it manually on the server using `ssh hotel` and `sudo -u postgres psql -d trisolaris`, e.g. `alter table ... add column ...`. Keep a note of the exact SQL applied.
|
||||||
|
- For room-stay lifecycle rollout, run these on server via SSH:
|
||||||
|
- `ssh hotel "sudo -u postgres psql -d trisolaris -c \"alter table room_stay add column if not exists is_voided boolean not null default false;\""`
|
||||||
|
- `ssh hotel "sudo -u postgres psql -d trisolaris -c \"create table if not exists room_stay_audit_log ( id uuid primary key, property_id uuid not null, booking_id uuid not null, room_stay_id uuid not null, action text not null, old_to_at timestamptz, new_to_at timestamptz, old_is_voided boolean not null, new_is_voided boolean not null, reason text, actor_user_id uuid, created_at timestamptz not null );\""`
|
||||||
|
|
||||||
Access / ops notes (prod)
|
Access / ops notes (prod)
|
||||||
- Service: `TrisolarisServer.service` (systemd). `systemctl cat TrisolarisServer.service`.
|
- Service: `TrisolarisServer.service` (systemd). `systemctl cat TrisolarisServer.service`.
|
||||||
|
|||||||
Reference in New Issue
Block a user