lahmanlite/sql/franchiseseasons.sql

12 lines
239 B
PL/PgSQL

begin;
alter table "teams" rename to "franchiseseasons";
update franchiseseasons
set teamid = 'WS9'
where teamid = 'WAS' and franchid = 'WAS';
update franchiseseasons
set teamid = 'PHP'
where teamid = 'PH4' and franchid = 'PHQ';
commit;