Files
NodeBB/src/upgrades/TEMPLATE

15 lines
379 B
Plaintext
Raw Normal View History

2017-02-22 13:28:22 -05:00
'use strict';
const db = require('../../database');
2017-02-22 13:28:22 -05:00
module.exports = {
// you should use spaces
// the underscores are there so you can double click to select the whole thing
2017-02-22 13:28:22 -05:00
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 () => {
2017-02-22 13:28:22 -05:00
// Do stuff here...
2017-03-10 16:37:16 -05:00
},
};