Skip to content

Commit

Permalink
update db.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
WaveringAna committed Jan 7, 2024
1 parent 3b7ada6 commit e7cdf69
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/lib/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ export function updateDatabase(oldVersion: number, newVersion: number) {
db.run("ALTER TABLE users ADD COLUMN expire TEXT", (err) => {
if (err) return;
});

db.run(
"CREATE TABLE IF NOT EXISTS settings ( \
id INTEGER PRIMARY KEY, \
downsclaing BOOLEAN, \
namerandomization BOOLEAN \
)"
);
}
if (oldVersion == 2) {
console.log(`Updating database from ${oldVersion} to ${newVersion}`);
Expand Down

0 comments on commit e7cdf69

Please sign in to comment.