add leagues table
This commit is contained in:
14
sql/leagues.sql
Normal file
14
sql/leagues.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
begin;
|
||||
create table if not exists "leagues" (
|
||||
"ID" text
|
||||
);
|
||||
|
||||
insert into leagues values
|
||||
("NA"),
|
||||
("NL"),
|
||||
("AA"),
|
||||
("UA"),
|
||||
("PL"),
|
||||
("AL"),
|
||||
("FL");
|
||||
commit;
|
||||
@@ -357,4 +357,11 @@ create table if not exists teams (
|
||||
);
|
||||
|
||||
insert into teams select distinct * from "transformed"."teams";
|
||||
|
||||
create table if not exists "leagues" (
|
||||
"ID" text,
|
||||
primary key("ID")
|
||||
);
|
||||
|
||||
insert into leagues select distinct * from "transformed"."leagues";
|
||||
COMMIT;
|
||||
|
||||
Reference in New Issue
Block a user