apskel-pos-backend/migrations/000057_add_customer_password_field.down.sql
2025-09-18 01:32:01 +07:00

9 lines
315 B
SQL

-- Remove indexes
DROP INDEX IF EXISTS idx_customers_password_hash;
DROP INDEX IF EXISTS idx_customers_phone_number;
-- Remove added columns
ALTER TABLE customers DROP COLUMN IF EXISTS birth_date;
ALTER TABLE customers DROP COLUMN IF EXISTS phone_number;
ALTER TABLE customers DROP COLUMN IF EXISTS password_hash;