Compare commits
No commits in common. "c46190d5a8ce497f5afd381c9804826bf202b345" and "6e17945d338d95e3033928c2dce81480f92a4faa" have entirely different histories.
c46190d5a8
...
6e17945d33
|
@ -54,15 +54,6 @@ 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,18 +26,12 @@ 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, ''),
|
||||||
|
@ -61,15 +55,6 @@ 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