Get rid of awardsmanagersties
This commit is contained in:
3
sql/2nf/awardsmanagers.sql
Normal file
3
sql/2nf/awardsmanagers.sql
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
begin;
|
||||||
|
alter table awardsmanagers drop column "tie";
|
||||||
|
commit;
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
begin;
|
|
||||||
create table if not exists awardsmanagersties (
|
|
||||||
"awardID" text,
|
|
||||||
"yearID" text,
|
|
||||||
"lgID" text,
|
|
||||||
"tie" text,
|
|
||||||
primary key("awardID","yearID","lgID")
|
|
||||||
);
|
|
||||||
|
|
||||||
insert into awardsmanagersties
|
|
||||||
select distinct awardID, yearID, lgID, tie
|
|
||||||
from awardsmanagers;
|
|
||||||
|
|
||||||
alter table awardsmanagers drop column "tie";
|
|
||||||
commit;
|
|
||||||
Reference in New Issue
Block a user