mirror of
https://git.waldn.net/git/knotteye/satyr.git
synced 2025-10-20 23:43:12 +00:00
Add database migrate for viewer tracking
This commit is contained in:
8
src/db/4.ts
Normal file
8
src/db/4.ts
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
import * as db from "../database";
|
||||||
|
|
||||||
|
async function run () {
|
||||||
|
await db.query('ALTER TABLE user_meta ADD viewers int UNSIGNED DEFAULT 0 AFTER live');
|
||||||
|
await db.query('INSERT INTO db_meta (version) VALUES (4)');
|
||||||
|
}
|
||||||
|
|
||||||
|
export { run }
|
Reference in New Issue
Block a user