25 lines
603 B
MySQL
25 lines
603 B
MySQL
|
begin;
|
||
|
alter table allstarfull rename to "allstarstartingpos";
|
||
|
|
||
|
-- fix game numbers for 1962 all-star games
|
||
|
update allstarstartingpos
|
||
|
set gamenum = 1
|
||
|
where gameid = 'ALS196207100';
|
||
|
|
||
|
update allstarstartingpos
|
||
|
set gamenum = 2
|
||
|
where gameid = 'NLS196207300';
|
||
|
|
||
|
alter table allstarstartingpos drop column "gameID";
|
||
|
alter table allstarstartingpos drop column "teamid";
|
||
|
alter table allstarstartingpos drop column "lgID";
|
||
|
alter table allstarstartingpos drop column "gp";
|
||
|
|
||
|
update allstarstartingpos
|
||
|
set startingpos = null
|
||
|
where startingpos = '';
|
||
|
|
||
|
delete from allstarstartingpos
|
||
|
where startingpos is null;
|
||
|
commit;
|