begin;
alter table "homegames" drop column "league.key";

update homegames
set "team.key" = 'WS9'
where "team.key" = 'WAS' and "year.key" between 1891 and 1899;

update homegames
set "team.key" = 'PHP'
where "team.key" = 'PH4' and "year.key" between 1890 and 1891;
commit;
