mirror of
https://codeberg.org/icewind/ugc-scaper.git
synced 2026-06-03 18:24:10 +02:00
team archive
This commit is contained in:
parent
a46314d91a
commit
f4082d619d
15 changed files with 514 additions and 37 deletions
12
archiver/.sqlx/query-0626bad337af6332795252dc9dc2af03eb471cbd38efe61afd712860bcd2fe62.json
generated
Normal file
12
archiver/.sqlx/query-0626bad337af6332795252dc9dc2af03eb471cbd38efe61afd712860bcd2fe62.json
generated
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"db_name": "PostgreSQL",
|
||||
"query": "INSERT INTO records (\n team_id, season, wins, losses\n ) VALUES ($1, $2, $3, $4)",
|
||||
"describe": {
|
||||
"columns": [],
|
||||
"parameters": {
|
||||
"Left": ["Int4", "Int4", "Int4", "Int4"]
|
||||
},
|
||||
"nullable": []
|
||||
},
|
||||
"hash": "0626bad337af6332795252dc9dc2af03eb471cbd38efe61afd712860bcd2fe62"
|
||||
}
|
||||
24
archiver/.sqlx/query-4e366cccbfd194d3b52eb7209caaccebb73bf731e3f7a9f274363966925e8ee6.json
generated
Normal file
24
archiver/.sqlx/query-4e366cccbfd194d3b52eb7209caaccebb73bf731e3f7a9f274363966925e8ee6.json
generated
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"db_name": "PostgreSQL",
|
||||
"query": "INSERT INTO memberships (\n team_id, steam_id, role, since\n ) VALUES ($1, $2, $3, $4)",
|
||||
"describe": {
|
||||
"columns": [],
|
||||
"parameters": {
|
||||
"Left": [
|
||||
"Int4",
|
||||
"Int8",
|
||||
{
|
||||
"Custom": {
|
||||
"name": "membership_role",
|
||||
"kind": {
|
||||
"Enum": ["leader", "member"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"Timestamptz"
|
||||
]
|
||||
},
|
||||
"nullable": []
|
||||
},
|
||||
"hash": "4e366cccbfd194d3b52eb7209caaccebb73bf731e3f7a9f274363966925e8ee6"
|
||||
}
|
||||
18
archiver/.sqlx/query-51956c0afc079c48272920a4bd615c47c92908889c4291337bba3cbdd162f2c3.json
generated
Normal file
18
archiver/.sqlx/query-51956c0afc079c48272920a4bd615c47c92908889c4291337bba3cbdd162f2c3.json
generated
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"db_name": "PostgreSQL",
|
||||
"query": "select id from teams where region IS NULL and format != 'eights' order by id desc",
|
||||
"describe": {
|
||||
"columns": [
|
||||
{
|
||||
"ordinal": 0,
|
||||
"name": "id",
|
||||
"type_info": "Int4"
|
||||
}
|
||||
],
|
||||
"parameters": {
|
||||
"Left": []
|
||||
},
|
||||
"nullable": [false]
|
||||
},
|
||||
"hash": "51956c0afc079c48272920a4bd615c47c92908889c4291337bba3cbdd162f2c3"
|
||||
}
|
||||
12
archiver/.sqlx/query-5daea92ea98daa8e37969e9e7cdb7d1e97fea0c6e07f2ba5a2a513fc1bfc41c9.json
generated
Normal file
12
archiver/.sqlx/query-5daea92ea98daa8e37969e9e7cdb7d1e97fea0c6e07f2ba5a2a513fc1bfc41c9.json
generated
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"db_name": "PostgreSQL",
|
||||
"query": "INSERT INTO team_name_changes (\n team_id, from_tag, from_name, to_tag, to_name, date\n ) VALUES ($1, $2, $3, $4, $5, $6)",
|
||||
"describe": {
|
||||
"columns": [],
|
||||
"parameters": {
|
||||
"Left": ["Int4", "Varchar", "Varchar", "Varchar", "Varchar", "Date"]
|
||||
},
|
||||
"nullable": []
|
||||
},
|
||||
"hash": "5daea92ea98daa8e37969e9e7cdb7d1e97fea0c6e07f2ba5a2a513fc1bfc41c9"
|
||||
}
|
||||
28
archiver/.sqlx/query-902d2815a624acb69228dd6e7afc698dac51107067d44659592a99493ad5473a.json
generated
Normal file
28
archiver/.sqlx/query-902d2815a624acb69228dd6e7afc698dac51107067d44659592a99493ad5473a.json
generated
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"db_name": "PostgreSQL",
|
||||
"query": "UPDATE teams SET region = $2 WHERE id = $1",
|
||||
"describe": {
|
||||
"columns": [],
|
||||
"parameters": {
|
||||
"Left": [
|
||||
"Int4",
|
||||
{
|
||||
"Custom": {
|
||||
"name": "region",
|
||||
"kind": {
|
||||
"Enum": [
|
||||
"europe",
|
||||
"north-america",
|
||||
"south-america",
|
||||
"asia",
|
||||
"australia"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"nullable": []
|
||||
},
|
||||
"hash": "902d2815a624acb69228dd6e7afc698dac51107067d44659592a99493ad5473a"
|
||||
}
|
||||
23
archiver/.sqlx/query-a559964ee9c6927333b32de71f1a666fae60ea06cb81a85b71345fb732343fdc.json
generated
Normal file
23
archiver/.sqlx/query-a559964ee9c6927333b32de71f1a666fae60ea06cb81a85b71345fb732343fdc.json
generated
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"db_name": "PostgreSQL",
|
||||
"query": "select greatest(max(team_home), max(team_away)) as max, least(min(team_home), min(team_away)) as min from matches limit 1;",
|
||||
"describe": {
|
||||
"columns": [
|
||||
{
|
||||
"ordinal": 0,
|
||||
"name": "max",
|
||||
"type_info": "Int4"
|
||||
},
|
||||
{
|
||||
"ordinal": 1,
|
||||
"name": "min",
|
||||
"type_info": "Int4"
|
||||
}
|
||||
],
|
||||
"parameters": {
|
||||
"Left": []
|
||||
},
|
||||
"nullable": [null, null]
|
||||
},
|
||||
"hash": "a559964ee9c6927333b32de71f1a666fae60ea06cb81a85b71345fb732343fdc"
|
||||
}
|
||||
12
archiver/.sqlx/query-b153094d4f619005eecae2c23568e10c2f76613e30935b654f67f1a7b07813ea.json
generated
Normal file
12
archiver/.sqlx/query-b153094d4f619005eecae2c23568e10c2f76613e30935b654f67f1a7b07813ea.json
generated
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"db_name": "PostgreSQL",
|
||||
"query": "INSERT INTO titles (\n team_id, title\n ) VALUES ($1, $2)",
|
||||
"describe": {
|
||||
"columns": [],
|
||||
"parameters": {
|
||||
"Left": ["Int4", "Varchar"]
|
||||
},
|
||||
"nullable": []
|
||||
},
|
||||
"hash": "b153094d4f619005eecae2c23568e10c2f76613e30935b654f67f1a7b07813ea"
|
||||
}
|
||||
18
archiver/.sqlx/query-dd9ca1267a43207ad70d6cf683291866c889d50dd3793a89936f0731151f8aec.json
generated
Normal file
18
archiver/.sqlx/query-dd9ca1267a43207ad70d6cf683291866c889d50dd3793a89936f0731151f8aec.json
generated
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"db_name": "PostgreSQL",
|
||||
"query": "SELECT id FROM teams ORDER BY id DESC LIMIT 1",
|
||||
"describe": {
|
||||
"columns": [
|
||||
{
|
||||
"ordinal": 0,
|
||||
"name": "id",
|
||||
"type_info": "Int4"
|
||||
}
|
||||
],
|
||||
"parameters": {
|
||||
"Left": []
|
||||
},
|
||||
"nullable": [false]
|
||||
},
|
||||
"hash": "dd9ca1267a43207ad70d6cf683291866c889d50dd3793a89936f0731151f8aec"
|
||||
}
|
||||
43
archiver/.sqlx/query-e2a0bc541b90e1374bdbaf9f151af569ab906620c2b9da88d919a072c8073f6f.json
generated
Normal file
43
archiver/.sqlx/query-e2a0bc541b90e1374bdbaf9f151af569ab906620c2b9da88d919a072c8073f6f.json
generated
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"db_name": "PostgreSQL",
|
||||
"query": "INSERT INTO teams (\n id, tag, name, image, format, region, timezone, steam_group, division, description\n ) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)",
|
||||
"describe": {
|
||||
"columns": [],
|
||||
"parameters": {
|
||||
"Left": [
|
||||
"Int4",
|
||||
"Varchar",
|
||||
"Varchar",
|
||||
"Varchar",
|
||||
{
|
||||
"Custom": {
|
||||
"name": "game_mode",
|
||||
"kind": {
|
||||
"Enum": ["highlander", "eights", "sixes", "fours", "ultiduo"]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Custom": {
|
||||
"name": "region",
|
||||
"kind": {
|
||||
"Enum": [
|
||||
"europe",
|
||||
"north-america",
|
||||
"south-america",
|
||||
"asia",
|
||||
"australia"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"Varchar",
|
||||
"Varchar",
|
||||
"Varchar",
|
||||
"Varchar"
|
||||
]
|
||||
},
|
||||
"nullable": []
|
||||
},
|
||||
"hash": "e2a0bc541b90e1374bdbaf9f151af569ab906620c2b9da88d919a072c8073f6f"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue