wingbot-mssql
Version:
MSSQL storage for wingbot.ai
20 lines (15 loc) • 381 B
JavaScript
module.exports = {
async up (next) {
await this.query(`CREATE TABLE attachments (
id varchar(73),
attachmentId int
CONSTRAINT PK_attachments PRIMARY KEY CLUSTERED (id)
)`);
next();
},
async down (next) {
await this.query('DROP TABLE IF EXISTS attachments');
next();
}
};
;