mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-23 07:34:07 -05:00
* Initial * CSS lint * Test CI * Add 1v1, 2v2, and 3v3 Tags (#1771) * Initial * CSS lint * Test CI * Rename step --------- Co-authored-by: xi <104683822+ximk@users.noreply.github.com>
29 lines
517 B
JavaScript
29 lines
517 B
JavaScript
export function up(db) {
|
|
for (const badge of itzBadges) {
|
|
db.prepare(
|
|
`insert into "Badge" ("code", "displayName") values ($code, $displayName)`,
|
|
).run(badge);
|
|
}
|
|
}
|
|
|
|
export function down(db) {
|
|
db.prepare(
|
|
`delete from "Badge" where "code" in ('itz_red', 'itz_orange', 'itz_blue')`,
|
|
).run();
|
|
}
|
|
|
|
const itzBadges = [
|
|
{
|
|
code: "itz_red",
|
|
displayName: "In The Zone 1-9",
|
|
},
|
|
{
|
|
code: "itz_orange",
|
|
displayName: "In The Zone 10-19",
|
|
},
|
|
{
|
|
code: "itz_blue",
|
|
displayName: "In The Zone 20-29",
|
|
},
|
|
];
|