mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
11 lines
299 B
JavaScript
11 lines
299 B
JavaScript
export function up(db) {
|
|
db.transaction(() => {
|
|
db.prepare(
|
|
/* sql */ `alter table "TournamentBadgeOwner" add "tournamentId" integer`,
|
|
).run();
|
|
db.prepare(
|
|
`create unique index badge_owner_tournament_user_unique on "TournamentBadgeOwner"("tournamentId", "userId")`,
|
|
).run();
|
|
})();
|
|
}
|