mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-10 13:15:47 -05:00
Fix tournaments script
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
"season-initial-powers": "node --experimental-specifier-resolution=node -r @swc-node/register -r tsconfig-paths/register scripts/season-initial-powers.ts",
|
||||
"map-popularity": "node --experimental-specifier-resolution=node -r @swc-node/register -r tsconfig-paths/register scripts/map-popularity.ts",
|
||||
"map-popularity-q": "node --experimental-specifier-resolution=node -r @swc-node/register -r tsconfig-paths/register scripts/map-popularity-q.ts",
|
||||
"fix-tournaments": "node --experimental-specifier-resolution=node -r @swc-node/register -r tsconfig-paths/register scripts/fix-tournaments.ts",
|
||||
"transfer-weapon-pools": "node --experimental-specifier-resolution=node -r @swc-node/register -r tsconfig-paths/register scripts/transfer-weapon-pools.ts",
|
||||
"reopen-tournament": "node --experimental-specifier-resolution=node -r @swc-node/register -r tsconfig-paths/register scripts/reopen-tournament.ts",
|
||||
"refresh-prod-db": "node --experimental-specifier-resolution=node -r @swc-node/register -r tsconfig-paths/register scripts/refresh-prod-db.ts && npm run migrate up",
|
||||
|
||||
11
scripts/fix-tournaments.ts
Normal file
11
scripts/fix-tournaments.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/* eslint-disable no-console */
|
||||
import "dotenv/config";
|
||||
import { sql } from "~/db/sql";
|
||||
|
||||
sql
|
||||
.prepare(
|
||||
`update "TournamentStage" set "name" = 'Main bracket' where "name" = 'Elimination stage'`,
|
||||
)
|
||||
.run();
|
||||
|
||||
console.log(`Fixed tournaments`);
|
||||
Reference in New Issue
Block a user