mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-22 14:40:04 +02:00
* feat: allow awaitable upgrade scripts * feat: allowFileUploads removal upgrade script * refactor: remove unnecessary ACP option `allowFileUploads` * fix: updated upgrade script template to not use callback arg * fix: upgrade script as per @baris * fix: add missing await * fix: add missing await
16 lines
415 B
Plaintext
16 lines
415 B
Plaintext
'use strict';
|
|
|
|
const db = require('../../database');
|
|
const winston = require('winston');
|
|
|
|
module.exports = {
|
|
// you should use spaces
|
|
// the underscores are there so you can double click to select the whole thing
|
|
name: 'User_friendly_upgrade_script_name',
|
|
// remember, month is zero-indexed (so January is 0, December is 11)
|
|
timestamp: Date.UTC(2020, 0, 1),
|
|
method: async () => {
|
|
// Do stuff here...
|
|
},
|
|
};
|