lahmanlite/sql/teamseasons.sql

14 lines
275 B
MySQL
Raw Normal View History

2024-01-28 00:05:45 +00:00
begin;
2024-01-28 03:45:23 +00:00
alter table "teams" rename to "teamseasons";
2024-01-28 03:07:24 +00:00
2024-01-28 03:45:23 +00:00
update teamseasons
2024-01-28 03:07:24 +00:00
set teamid = 'WS9'
where teamid = 'WAS' and franchid = 'WAS';
2024-01-28 03:45:23 +00:00
update teamseasons
2024-01-28 03:07:24 +00:00
set teamid = 'PHP'
where teamid = 'PH4' and franchid = 'PHQ';
2024-01-28 03:45:23 +00:00
alter table "teamseasons" drop column "franchID";
2024-01-28 00:05:45 +00:00
commit;