sendou.ink/migrations/008-user-new-fields.js
Kalle fd48bced91
Migrate Prettier/Eslint/Stylelint setup to Biome (#1772)
* 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>
2024-06-24 13:07:17 +03:00

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();
}