fp/services/migrations-schema/migrations/00103_add-toy_num.sql

22 lines
609 B
SQL

ALTER TABLE IF EXISTS api.toys
ADD COLUMN IF NOT EXISTS toy_id_num INT;
ALTER TABLE IF EXISTS api.toys
ADD COLUMN IF NOT EXISTS created_at TIMESTAMP WITHOUT TIME ZONE;
ALTER TABLE IF EXISTS api.toys
ADD COLUMN IF NOT EXISTS updated_at TIMESTAMP WITHOUT TIME ZONE;
ALTER TABLE IF EXISTS api.toys
ADD COLUMN IF NOT EXISTS created_by_id_num INT;
ALTER TABLE IF EXISTS api.toys
ADD COLUMN IF NOT EXISTS updated_by_id_num INT;
ALTER TABLE IF EXISTS api.toys
ADD COLUMN IF NOT EXISTS created_by_id UUID;
ALTER TABLE IF EXISTS api.toys
ADD COLUMN IF NOT EXISTS updated_by_id UUID;