We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18eb4a6 commit 688b89fCopy full SHA for 688b89f
lib/migration.js
@@ -115,6 +115,10 @@ Migration.prototype.defaultJsTemplate = function() {
115
'exports.down = function(db) {',
116
' return null;',
117
'};',
118
+ '',
119
+ 'exports._meta = {',
120
+ ' "version": 1',
121
+ '};',
122
''
123
].join('\n');
124
};
@@ -177,6 +181,10 @@ Migration.prototype.sqlFileLoaderTemplate = function() {
177
181
' return db.runSql(data);',
178
182
' });',
179
183
184
185
186
187
180
188
189
190
@@ -242,6 +250,10 @@ Migration.prototype.sqlFileLoaderIgnoreOnInitTemplate = function() {
242
250
243
251
244
252
253
254
255
256
245
257
246
258
247
259
0 commit comments