BEGIN;

-- Reconciles oauth_tokens with the schema the application code actually
-- expects. Neither of these two changes was ever committed as a migration
-- despite being applied by hand at some point - see the "claims" column
-- below, which no application code reads or writes.

ALTER TABLE oauth_tokens
	DROP COLUMN claims;

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

COMMIT;
