Fix profile loading and noise bug

This commit is contained in:
Kevin Thomas
2021-11-08 00:30:20 -08:00
parent 12d2759a56
commit 3b1e23f2af
2 changed files with 10 additions and 5 deletions

View File

@@ -37,9 +37,10 @@ module.exports = function () {
db.run(`CREATE TABLE IF NOT EXISTS samples (
id INTEGER PRIMARY KEY,
name TEXT UNIQUE,
name TEXT,
user INTEGER,
FOREIGN KEY(user) REFERENCES users(id))`
FOREIGN KEY(user) REFERENCES users(id),
UNIQUE(user,name))`
)
db.run(`CREATE TABLE IF NOT EXISTS profiles_samples (