Files
weeding/supabase_schema_update_price.sql

9 lines
306 B
SQL

-- 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;