Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions contract.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "db-v1.20.0",
"migrationHead": "20260823130000",
"version": "db-v1.21.0",
"migrationHead": "20260901120000",
"supabaseCliVersion": "2.109.1",
"typesSha256": "sha256:3c07d90b742072c99e081da543a596755106d9bcfa78c1b4092f620c47128676"
"typesSha256": "sha256:4f4564132dcca1d763ae72e08319bfe90b675cbdb940dfdcc730329b2fa6543d"
}
64 changes: 64 additions & 0 deletions generated/database.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,59 @@ export type Database = {
}
Relationships: []
}
match_report_corrections: {
Row: {
actor_discord_id: string
correction_key: string
created_at: string
expected_revision: number
id: string
match_report_id: string
new_value_json: Json
old_value_json: Json
reason: string
request_json: Json
result_json: Json
resulting_revision: number
}
Insert: {
actor_discord_id: string
correction_key: string
created_at?: string
expected_revision: number
id?: string
match_report_id: string
new_value_json: Json
old_value_json: Json
reason: string
request_json: Json
result_json: Json
resulting_revision: number
}
Update: {
actor_discord_id?: string
correction_key?: string
created_at?: string
expected_revision?: number
id?: string
match_report_id?: string
new_value_json?: Json
old_value_json?: Json
reason?: string
request_json?: Json
result_json?: Json
resulting_revision?: number
}
Relationships: [
{
foreignKeyName: "match_report_corrections_match_report_id_fkey"
columns: ["match_report_id"]
isOneToOne: false
referencedRelation: "match_reports"
referencedColumns: ["id"]
},
]
}
match_report_host_tokens: {
Row: {
consumed_at: string | null
Expand Down Expand Up @@ -2899,6 +2952,17 @@ export type Database = {
Args: { p_token_hash: string }
Returns: Json
}
correct_match_report_result: {
Args: {
p_actor_discord_id: string
p_correction_key: string
p_expected_revision: number
p_games: Json
p_match_report_id: string
p_reason: string
}
Returns: Json
}
correct_scouter_game: {
Args: {
p_actor_discord_id: string
Expand Down
1 change: 1 addition & 0 deletions scripts/verify-contract.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const requiredDatabaseTests = [
'026_captain_token_cardinality.test.sql',
'027_match_report_host_review.test.sql',
'028_roster_trade_workflow.test.sql',
'030_match_report_result_corrections.test.sql',
];
const hash = `sha256:${createHash('sha256').update(types).digest('hex')}`;
const databaseMajorVersion = readDatabaseMajorVersion();
Expand Down
Loading