Logo
Explore Help
Sign In
jjkiers/cloudron-box
1
0
Fork 0
You've already forked cloudron-box
Code Issues Pull Requests 1 Actions Packages Projects Releases Wiki Activity
Files
17b7d89db9fef5cbdf5518f064e182e43fe46ec7
cloudron-box/migrations/20150430165335-settings-default-autoupdatepattern.js

11 lines
322 B
JavaScript
Raw Normal View History

Use new db-migrate which allows to specify the db backend We use only mysql, so updating this means a lot of unused db backends like sqlite do not need to be built with gyp anymore. Note that this version is not yet released as stable, but works fine for us. The outstanding issues are not related to our use-case from what I can tell. Fixes #82
2017-02-07 10:22:52 +01:00
'use strict';
app.portBindings and newManifest.tcpPorts may be null
2015-07-20 00:09:47 -07:00
exports.up = function(db, callback) {
// everyday at 1am
db.runSql('INSERT settings (name, value) VALUES("autoupdate_pattern", ?)', [ '00 00 1 * * *' ], callback);
};
exports.down = function(db, callback) {
db.runSql('DELETE * FROM settings WHERE name="autoupdate_pattern"', [ ], callback);
Use new db-migrate which allows to specify the db backend We use only mysql, so updating this means a lot of unused db backends like sqlite do not need to be built with gyp anymore. Note that this version is not yet released as stable, but works fine for us. The outstanding issues are not related to our use-case from what I can tell. Fixes #82
2017-02-07 10:22:52 +01:00
};
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 580ms Template: 28ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API