match date

This commit is contained in:
Robin Appelman 2025-04-23 20:35:57 +02:00
commit a87638f177
9 changed files with 213 additions and 191 deletions

View file

@ -0,0 +1,18 @@
{
"db_name": "PostgreSQL",
"query": "select id from teams where id > $1 and format in ('highlander', 'sixes', 'fours', 'ultiduo') order by id asc",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int4"
}
],
"parameters": {
"Left": ["Int4"]
},
"nullable": [false]
},
"hash": "26e463ea8a7316befaee41794d230c0e78c956ccd345c38f58a049cb6b6bfdc2"
}

View file

@ -0,0 +1,12 @@
{
"db_name": "PostgreSQL",
"query": "UPDATE matches SET default_date = $2 WHERE id = $1",
"describe": {
"columns": [],
"parameters": {
"Left": ["Int4", "Date"]
},
"nullable": []
},
"hash": "2d58774b5365ac8ba3996246c26fb6b7ca63a8a6f8c086b85979f6ea7b5b8ebe"
}

View file

@ -1,24 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "UPDATE matches SET map = $2, week = $3, format = $4 WHERE id = $1",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int4",
"Varchar",
"Int4",
{
"Custom": {
"name": "game_mode",
"kind": {
"Enum": ["highlander", "eights", "sixes", "fours", "ultiduo"]
}
}
}
]
},
"nullable": []
},
"hash": "41dfbd9d622c42e42346499e44d2d537a277f5a5b24b98d46b0645c218270adc"
}

View file

@ -1,18 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT MIN(id) as id FROM matches WHERE id < 0",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int4"
}
],
"parameters": {
"Left": []
},
"nullable": [null]
},
"hash": "626c573368c57c8bf544ba40e68ca80e034e2c918e0fe7d0e2319354f80b7de2"
}

View file

@ -1,25 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "UPDATE matches SET map = $2, week = $3, format = $4, default_date = $5 WHERE id = $1",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int4",
"Varchar",
"Int4",
{
"Custom": {
"name": "game_mode",
"kind": {
"Enum": ["highlander", "eights", "sixes", "fours", "ultiduo"]
}
}
},
"Date"
]
},
"nullable": []
},
"hash": "7abd1664e5a53abd08cf3b437032218cac18e0dc2ca67aefa2d1cde6db125108"
}

View file

@ -0,0 +1,18 @@
{
"db_name": "PostgreSQL",
"query": "select LEAST(MIN(team_home), MIN(team_away)) as team_id from matches INNER JOIN teams ON (team_home = teams.id OR team_away = teams.id) WHERE matches.default_date IS NULL AND matches.format in ('highlander', 'sixes', 'fours', 'ultiduo')",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "team_id",
"type_info": "Int4"
}
],
"parameters": {
"Left": []
},
"nullable": [null]
},
"hash": "a3a5e50cf1dd433faf196b9cccae1417316e064be45e2ee7ba0840c0931e51f4"
}

View file

@ -1,6 +1,6 @@
{
"db_name": "PostgreSQL",
"query": "SELECT date FROM maps WHERE format = $1 AND week = $2 AND map = $3",
"query": "SELECT date FROM maps WHERE format = $1 AND week = $2 AND season = $3",
"describe": {
"columns": [
{
@ -20,10 +20,10 @@
}
},
"Int4",
"Text"
"Int4"
]
},
"nullable": [false]
},
"hash": "b679f54e09d9d2f7e5640725bfe2dbf553a6fcd68947e247e0d68a5c8eb43eab"
"hash": "ccb1cfabaf4c593cfbd8206e5c2bb2be59105f965cdcbbe04ca394d2c3751613"
}