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;