Fix HTML rendering for service descriptions, allow zero price for services, improve image_url handling
This commit is contained in:
9
backend/drop_price_constraints.sh
Executable file
9
backend/drop_price_constraints.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
# Drop check constraints on services and products tables
|
||||
# Run with: sudo ./drop_price_constraints.sh
|
||||
|
||||
sudo -u postgres psql -d prompttech << 'SQL'
|
||||
ALTER TABLE services DROP CONSTRAINT IF EXISTS chk_services_price_positive;
|
||||
ALTER TABLE products DROP CONSTRAINT IF EXISTS chk_products_price_positive;
|
||||
\echo 'Constraints dropped successfully'
|
||||
SQL
|
||||
Reference in New Issue
Block a user