Skip to content

Commit 688b89f

Browse files
committed
chore(templates): add meta protocol v1 to already aligned migration templates
1 parent 18eb4a6 commit 688b89f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/migration.js

+12
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ Migration.prototype.defaultJsTemplate = function() {
115115
'exports.down = function(db) {',
116116
' return null;',
117117
'};',
118+
'',
119+
'exports._meta = {',
120+
' "version": 1',
121+
'};',
118122
''
119123
].join('\n');
120124
};
@@ -177,6 +181,10 @@ Migration.prototype.sqlFileLoaderTemplate = function() {
177181
' return db.runSql(data);',
178182
' });',
179183
'};',
184+
'',
185+
'exports._meta = {',
186+
' "version": 1',
187+
'};',
180188
''
181189
].join('\n');
182190
};
@@ -242,6 +250,10 @@ Migration.prototype.sqlFileLoaderIgnoreOnInitTemplate = function() {
242250
' return db.runSql(data);',
243251
' });',
244252
'};',
253+
'',
254+
'exports._meta = {',
255+
' "version": 1',
256+
'};',
245257
''
246258
].join('\n');
247259
};

0 commit comments

Comments
 (0)