ALTER TABLE par_api_webrota ADD COLUMN access_token_exp BIGINT; ALTER TABLE par_api_webrota ADD COLUMN refresh_token_exp BIGINT; UPDATE par_api_webrota SET access_token_exp = 0 WHERE access_token_exp IS NULL; UPDATE par_api_webrota SET refresh_token_exp = 0 WHERE refresh_token_exp IS NULL; ALTER TABLE par_api_webrota ALTER COLUMN access_token_exp SET NOT NULL; ALTER TABLE par_api_webrota ALTER COLUMN refresh_token_exp SET NOT NULL;