sendou.ink/migrations/074-seeding-skill.js
Kalle feebdfaf54
Some checks are pending
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
Seeding points (#1969)
* Initial

* Seed page initial

* Progress

* tests

* Fix e2e tests
2024-11-23 12:42:52 +02:00

18 lines
421 B
JavaScript

export function up(db) {
db.transaction(() => {
db.prepare(
/*sql*/ `
create table "SeedingSkill" (
"mu" real not null,
"sigma" real not null,
"ordinal" real not null,
"userId" integer not null,
"type" text not null,
foreign key ("userId") references "User"("id") on delete cascade,
unique("userId", "type") on conflict replace
) strict
`,
).run();
})();
}