Compare commits
4 Commits
6e17945d33
...
c46190d5a8
Author | SHA1 | Date |
---|---|---|
|
c46190d5a8 | |
|
e34da70285 | |
|
7900c660a6 | |
|
7ebd375743 |
|
@ -54,6 +54,15 @@ where startingpos = '';
|
||||||
delete from allstarstartingpos
|
delete from allstarstartingpos
|
||||||
where startingpos is null;
|
where startingpos is null;
|
||||||
|
|
||||||
|
insert into allstarstartingpos
|
||||||
|
values
|
||||||
|
('ohtansh01', 2021, 0, 'AL', 1),
|
||||||
|
('ohtansh01', 2021, 0, 'AL', 10)
|
||||||
|
;
|
||||||
|
|
||||||
|
delete from allstarstartingpos
|
||||||
|
where startingpos = '1;10';
|
||||||
|
|
||||||
CREATE TABLE "allstarstartingpos" (
|
CREATE TABLE "allstarstartingpos" (
|
||||||
"player" NUMERIC,
|
"player" NUMERIC,
|
||||||
"year" NUMERIC,
|
"year" NUMERIC,
|
||||||
|
|
|
@ -26,12 +26,18 @@ alter table people drop column "ID";
|
||||||
|
|
||||||
-- insert some missing people
|
-- insert some missing people
|
||||||
insert into people values
|
insert into people values
|
||||||
('fowlebu99', 1858, 3, 16, 'USA', 'NY', 'Fort Plain', 1913, 2, 26, 'USA', 'NY', 'Frankfort', 'Bud', 'Fowler', 'John W. Jackson', 155, 67, 'R', 'R', null, null, null, 'fowlebu99'),
|
|
||||||
('thompan01', null, null, null, null, null, null, null, null, null, null, null, null, null, 'Thompson', null, null, null, null, null, '1875-04-26', '1875-05-17', null, 'thompan01');
|
('thompan01', null, null, null, null, null, null, null, null, null, null, null, null, null, 'Thompson', null, null, null, null, null, '1875-04-26', '1875-05-17', null, 'thompan01');
|
||||||
|
|
||||||
delete from people
|
delete from people
|
||||||
where playerID = 'kellyho99';
|
where playerID = 'kellyho99';
|
||||||
|
|
||||||
|
delete from people
|
||||||
|
where playerID = 'frazge99';
|
||||||
|
|
||||||
|
update people
|
||||||
|
set bbrefID = 'frazege99'
|
||||||
|
where playerID = 'frazege99';
|
||||||
|
|
||||||
update people
|
update people
|
||||||
set
|
set
|
||||||
birthcountry = nullif(birthcountry, ''),
|
birthcountry = nullif(birthcountry, ''),
|
||||||
|
@ -55,6 +61,15 @@ set
|
||||||
bbrefID = nullif(bbrefid, ''),
|
bbrefID = nullif(bbrefid, ''),
|
||||||
retroID = nullif(retroid, '');
|
retroID = nullif(retroid, '');
|
||||||
|
|
||||||
|
-- we don't know exactly when Alfredo Cabrera died
|
||||||
|
update people
|
||||||
|
set deathMonth = null
|
||||||
|
where deathMonth = 0;
|
||||||
|
|
||||||
|
update people
|
||||||
|
set deathDay = null
|
||||||
|
where deathDay = 0;
|
||||||
|
|
||||||
update people
|
update people
|
||||||
set throws = 'B'
|
set throws = 'B'
|
||||||
where throws = 'S';
|
where throws = 'S';
|
||||||
|
|
Loading…
Reference in New Issue