lahmanlite/sql/teamseasons.sql

14 lines
275 B
PL/PgSQL

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