mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-06-02 22:26:57 -05:00
20 lines
740 B
JavaScript
20 lines
740 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();
|
|
}
|