database düzeltme

This commit is contained in:
2025-12-29 21:34:32 +03:00
parent 7656b22514
commit 66cd0fac29
14 changed files with 14 additions and 14 deletions

View File

@@ -0,0 +1,8 @@
-- Add price column to reservations table
alter table reservations add column price decimal(10,2);
-- Optional: Update existing reservations to set price from their package (snapshotting the price)
update reservations
set price = packages.price
from packages
where reservations.package_id = packages.id;