2024-01-26 19:32:45 +00:00
|
|
|
begin;
|
|
|
|
create table if not exists allstargames (
|
|
|
|
"yearID" numeric,
|
|
|
|
"gameNum" numeric,
|
2024-01-27 17:32:11 +00:00
|
|
|
"gameID" text,
|
|
|
|
primary key("yearID","gameNum")
|
2024-01-26 19:32:45 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
insert into allstargames
|
2024-01-27 17:32:11 +00:00
|
|
|
select distinct yearid, gamenum, gameid
|
2024-01-26 19:32:45 +00:00
|
|
|
from allstarfull;
|
|
|
|
|
2024-01-27 17:32:11 +00:00
|
|
|
alter table allstarfull drop column "gameID";
|
2024-01-26 19:32:45 +00:00
|
|
|
commit;
|