mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-25 07:32:19 -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>
20 lines
727 B
JavaScript
20 lines
727 B
JavaScript
export function up(db) {
|
|
db.prepare(`alter table "User" add "customUrl" text`).run();
|
|
db.prepare(
|
|
`create unique index user_custom_url_unique on "User"("customUrl")`,
|
|
).run();
|
|
|
|
db.prepare(`alter table "User" add "stickSens" integer`).run();
|
|
db.prepare(`alter table "User" add "motionSens" integer`).run();
|
|
|
|
db.prepare(`alter table "User" add "inGameName" text`).run();
|
|
}
|
|
|
|
export function down(db) {
|
|
db.prepare("drop index user_custom_url_unique").run();
|
|
db.prepare(`alter table "User" drop column "customUrl"`).run();
|
|
db.prepare(`alter table "User" drop column "stickSens"`).run();
|
|
db.prepare(`alter table "User" drop column "motionSens"`).run();
|
|
db.prepare(`alter table "User" drop column "inGameName"`).run();
|
|
}
|