A self hosted livestreaming server.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 
 
satyr/src/db/3.ts

9 lines
346 B

import * as db from "../database";
async function run () {
await db.query('CREATE TABLE IF NOT EXISTS ch_bans(channel VARCHAR(25), target VARCHAR(45), time BIGINT, length INT DEFAULT 30)');
await db.query('INSERT INTO ch_bans(channel) SELECT username FROM users');
await db.query('INSERT INTO db_meta (version) VALUES (3)');
}
export { run }