database düzeltme
This commit is contained in:
8
_archive/sql/supabase_schema_update_price.sql
Normal file
8
_archive/sql/supabase_schema_update_price.sql
Normal 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;
|
||||
Reference in New Issue
Block a user