Files
NodeBB/src/upgrades/TEMPLATE
Peter Jaszkowiak fc19f3af61 Misc fixes and improvements (#6143)
* `setup` command fixes and improvements

- Enable using the `./nodebb setup` command for auto-setup with a JSON argument
- Change CLI so package-install and dependency install are separate steps
- Fix #6142

* Prevent compiling templates multiple times

- Multiple requests for same template get pooled
- Hopefully fixes the "templateFunction is not a function" error which happens if site is restarted during high-traffic times

* More helpful upgrade template
2017-12-04 15:49:44 -05:00

18 lines
450 B
Plaintext

'use strict';
var db = require('../../database');
var async = require('async');
var 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(2017, 0, 1),
method: function (callback) {
// Do stuff here...
},
};