BEGIN;

ALTER TABLE oauth_tokens
	ALTER COLUMN id_token_custom_claims_updated_at
	TYPE TEXT
	USING id_token_custom_claims_updated_at::TEXT;

ALTER TABLE oauth_tokens
	ADD COLUMN claims JSONB NOT NULL DEFAULT '{}'::jsonb;

ALTER TABLE oauth_tokens
	ALTER COLUMN claims DROP DEFAULT;

COMMIT;
