Clarify agent should run required SSH ops directly
All checks were successful
build-and-deploy / build-deploy (push) Successful in 49s

This commit is contained in:
androidlover5842
2026-02-02 08:23:22 +05:30
parent c081f21688
commit e81a656254

View File

@@ -205,9 +205,7 @@ 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: - Agent workflow expectation: when schema/runtime issues require server-side SQL or service checks, execute the required `ssh hotel` operations directly and report what was changed; do not block on asking for confirmation in normal flow.
- `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`.