Built motion from commit ecdc8e66766c75b1b08288b0ea13eb12d42606b4. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.1.js
index 990f0b2..5556afe 100644 (file)
@@ -1 +1 @@
-const a973_0xf8d9=['info','exports','tail','finally','Added\x20column\x20%s\x20to\x20%s','enqueue','removeColumn','dropTable','table\x20dropped\x20%s','removeIndex','query\x20%s','addIndex','inspect','changeColumn','Removed\x20column\x20%s\x20from\x20%s','then','final','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence','util','stringify','removeIndex\x20%s\x20%s','prototype','queryInterface','addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','../config/logger','migration','query'];(function(_0x2ad179,_0xf8d9fa){const _0xf522d8=function(_0x13e928){while(--_0x13e928){_0x2ad179['push'](_0x2ad179['shift']());}};_0xf522d8(++_0xf8d9fa);}(a973_0xf8d9,0xa3));const a973_0xf522=function(_0x2ad179,_0xf8d9fa){_0x2ad179=_0x2ad179-0x0;let _0xf522d8=a973_0xf8d9[_0x2ad179];return _0xf522d8;};const _0xeb99eb=a973_0xf522;'use strict';const util=require(_0xeb99eb('0x7')),logger=require(_0xeb99eb('0xe'))(_0xeb99eb('0xf')),Sequence=function(){};Sequence[_0xeb99eb('0xa')][_0xeb99eb('0x16')]=function(_0x13e928){const _0x452016=_0xeb99eb;this[_0x452016('0x13')]=this[_0x452016('0x13')]?this['tail'][_0x452016('0x14')](_0x13e928):_0x13e928();};const Migration=function(_0x4e46c7){const _0x3a2b70=_0xeb99eb;this[_0x3a2b70('0xb')]=_0x4e46c7,this[_0x3a2b70('0x6')]=new Sequence();};Migration[_0xeb99eb('0xa')]['changeColumn']=function(_0x13816f,_0x12cb20,_0x1ef052){const _0x59cb2d=_0xeb99eb,_0x202fa0=this;this[_0x59cb2d('0x6')][_0x59cb2d('0x16')](function(){const _0x3360f0=_0x59cb2d;return _0x202fa0[_0x3360f0('0xb')][_0x3360f0('0x0')](_0x13816f,_0x12cb20,_0x1ef052)[_0x3360f0('0x2')](function(){const _0x3e4e9f=_0x3360f0;logger['info'](_0x3e4e9f('0x5'),_0x12cb20,_0x13816f);})[_0x3360f0('0x4')](function(_0x14956e){const _0x5afb4b=_0x3360f0;logger[_0x5afb4b('0x11')](JSON['stringify'](_0x14956e));});});},Migration[_0xeb99eb('0xa')][_0xeb99eb('0xc')]=function(_0x484ba2,_0x91ae44,_0x3de258){const _0x314b99=_0xeb99eb,_0x129544=this;this['sequence'][_0x314b99('0x16')](function(){const _0x147e29=_0x314b99;return _0x129544[_0x147e29('0xb')][_0x147e29('0xc')](_0x484ba2,_0x91ae44,_0x3de258)['then'](function(){const _0x280689=_0x147e29;logger['info'](_0x280689('0x15'),_0x91ae44,_0x484ba2);})[_0x147e29('0x4')](function(_0x3d1b26){const _0x5790bd=_0x147e29;logger['info'](JSON[_0x5790bd('0x8')](_0x3d1b26));});});},Migration[_0xeb99eb('0xa')]['dropTable']=function(_0x1f07d3){const _0x316d73=this;this['sequence']['enqueue'](function(){const _0x40c666=a973_0xf522;return _0x316d73['queryInterface'][_0x40c666('0x18')](_0x1f07d3,{'force':!![]})[_0x40c666('0x2')](function(){const _0x5a5445=_0x40c666;logger[_0x5a5445('0x11')](_0x5a5445('0x19'),_0x1f07d3);})[_0x40c666('0x4')](function(_0x37a99b){const _0x4986c3=_0x40c666;logger[_0x4986c3('0x11')](JSON[_0x4986c3('0x8')](_0x37a99b));});});},Migration[_0xeb99eb('0xa')][_0xeb99eb('0x1c')]=function(_0x3433b5,_0x480b51,_0x987f8a){const _0x5df3c7=this;this['sequence']['enqueue'](function(){const _0x354e43=a973_0xf522;return _0x5df3c7[_0x354e43('0xb')]['addIndex'](_0x3433b5,_0x480b51,{'indexName':_0x987f8a})['then'](function(){const _0x4347c6=_0x354e43;logger[_0x4347c6('0x11')]('addIndex\x20%s\x20%s\x20%s',_0x3433b5,_0x480b51['join'](','),_0x987f8a);})[_0x354e43('0x4')](function(_0x2d75ea){const _0x1a5b72=_0x354e43;logger[_0x1a5b72('0x11')](JSON['stringify'](_0x2d75ea));});});},Migration[_0xeb99eb('0xa')]['removeIndex']=function(_0x342550,_0x354441){const _0x15048a=_0xeb99eb,_0x45412f=this;this[_0x15048a('0x6')][_0x15048a('0x16')](function(){const _0x5b4374=_0x15048a;return _0x45412f[_0x5b4374('0xb')][_0x5b4374('0x1a')](_0x342550,_0x354441)['then'](function(){const _0x23d654=_0x5b4374;logger[_0x23d654('0x11')](_0x23d654('0x9'),_0x342550,_0x354441);})[_0x5b4374('0x4')](function(_0x25db2b){const _0x3a3912=_0x5b4374;logger[_0x3a3912('0x11')](JSON['stringify'](_0x25db2b));});});},Migration[_0xeb99eb('0xa')]['query']=function(_0x107853){const _0x4e9b7e=_0xeb99eb,_0x4bd187=this;this[_0x4e9b7e('0x6')][_0x4e9b7e('0x16')](function(){const _0xcb263e=_0x4e9b7e;return _0x4bd187['queryInterface']['sequelize'][_0xcb263e('0x10')](_0x107853)['then'](function(){const _0x159d34=_0xcb263e;logger['info'](_0x159d34('0x1b'),_0x107853);})[_0xcb263e('0x4')](function(_0x2e1902){const _0x2b5ed3=_0xcb263e;logger[_0x2b5ed3('0x11')](JSON['stringify'](_0x2e1902));});});},Migration['prototype']['removeColumn']=function(_0x2d5bf9,_0x186303){const _0x11327c=this;this['sequence']['enqueue'](function(){const _0x49d972=a973_0xf522;return _0x11327c['queryInterface'][_0x49d972('0x17')](_0x2d5bf9,_0x186303)[_0x49d972('0x2')](function(){const _0x2dbba3=_0x49d972;logger[_0x2dbba3('0x11')](_0x2dbba3('0x1'),_0x186303,_0x2d5bf9);})[_0x49d972('0x4')](function(_0x58247d){const _0x5c17b9=_0x49d972;logger[_0x5c17b9('0x11')](util['inspect'](_0x58247d,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x570710,_0x355a1d,_0x3b40a6){const _0x1b7dca=_0xeb99eb,_0x1eaf9c=this;this[_0x1b7dca('0x6')][_0x1b7dca('0x16')](function(){const _0x309b31=_0x1b7dca;return _0x1eaf9c['queryInterface']['renameColumn'](_0x570710,_0x355a1d,_0x3b40a6)[_0x309b31('0x2')](function(){const _0xde1b55=_0x309b31;logger[_0xde1b55('0x11')](_0xde1b55('0xd'),_0x355a1d,_0x3b40a6,_0x570710);})[_0x309b31('0x4')](function(_0x599432){const _0x349ff9=_0x309b31;logger[_0x349ff9('0x11')](util[_0x349ff9('0x1d')](_0x599432,{'showHidden':![],'depth':null}));});});},Migration[_0xeb99eb('0xa')][_0xeb99eb('0x3')]=function(_0x5a7b26){const _0x4a313a=_0xeb99eb;this[_0x4a313a('0x6')][_0x4a313a('0x16')](function(){return _0x5a7b26();});},module[_0xeb99eb('0x12')]={'up':function(_0x17cccb){return new Promise(function(_0x4a95ac){const _0x3b5935=a973_0xf522,_0x1f99df=new Migration(_0x17cccb);_0x1f99df[_0x3b5935('0x3')](_0x4a95ac);});},'down':function(){}};
\ No newline at end of file
+const a973_0x45db=['inspect','query','changeColumn','table\x20dropped\x20%s','enqueue','exports','sequelize','queryInterface','info','final','addIndex\x20%s\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','renameColumn','prototype','removeIndex','removeIndex\x20%s\x20%s','addIndex','query\x20%s','migration','stringify','then','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','Added\x20column\x20%s\x20to\x20%s','catch','util','../config/logger','dropTable','tail'];(function(_0x161118,_0x45dbc4){const _0x888c02=function(_0x69b704){while(--_0x69b704){_0x161118['push'](_0x161118['shift']());}};_0x888c02(++_0x45dbc4);}(a973_0x45db,0x1b1));const a973_0x888c=function(_0x161118,_0x45dbc4){_0x161118=_0x161118-0x0;let _0x888c02=a973_0x45db[_0x161118];return _0x888c02;};const _0x3c68d7=a973_0x888c;'use strict';const util=require(_0x3c68d7('0x1c')),logger=require(_0x3c68d7('0x1d'))(_0x3c68d7('0x14')),Sequence=function(){};Sequence[_0x3c68d7('0xf')]['enqueue']=function(_0x69b704){const _0x25f44f=_0x3c68d7;this[_0x25f44f('0x0')]=this['tail']?this[_0x25f44f('0x0')]['finally'](_0x69b704):_0x69b704();};const Migration=function(_0x513b5b){const _0x45a960=_0x3c68d7;this['queryInterface']=_0x513b5b,this[_0x45a960('0x17')]=new Sequence();};Migration[_0x3c68d7('0xf')]['changeColumn']=function(_0x2c5d45,_0x533752,_0x5121fb){const _0x37e4df=_0x3c68d7,_0x388dd1=this;this[_0x37e4df('0x17')][_0x37e4df('0x5')](function(){const _0x18ce3d=_0x37e4df;return _0x388dd1['queryInterface'][_0x18ce3d('0x3')](_0x2c5d45,_0x533752,_0x5121fb)[_0x18ce3d('0x16')](function(){const _0x2ae80b=_0x18ce3d;logger[_0x2ae80b('0x9')](_0x2ae80b('0x18'),_0x533752,_0x2c5d45);})[_0x18ce3d('0x1b')](function(_0x40e89e){const _0x520dd2=_0x18ce3d;logger[_0x520dd2('0x9')](JSON[_0x520dd2('0x15')](_0x40e89e));});});},Migration[_0x3c68d7('0xf')]['addColumn']=function(_0x4d6b83,_0x5afd28,_0x5744ef){const _0x403c3b=_0x3c68d7,_0x2ab01b=this;this[_0x403c3b('0x17')][_0x403c3b('0x5')](function(){const _0x53e94c=_0x403c3b;return _0x2ab01b[_0x53e94c('0x8')][_0x53e94c('0x19')](_0x4d6b83,_0x5afd28,_0x5744ef)[_0x53e94c('0x16')](function(){const _0x1af5d1=_0x53e94c;logger[_0x1af5d1('0x9')](_0x1af5d1('0x1a'),_0x5afd28,_0x4d6b83);})[_0x53e94c('0x1b')](function(_0x244a4d){const _0x22b2a8=_0x53e94c;logger[_0x22b2a8('0x9')](JSON['stringify'](_0x244a4d));});});},Migration[_0x3c68d7('0xf')]['dropTable']=function(_0x4417f4){const _0x19036d=_0x3c68d7,_0x4f3a81=this;this[_0x19036d('0x17')][_0x19036d('0x5')](function(){const _0x248fdc=_0x19036d;return _0x4f3a81[_0x248fdc('0x8')][_0x248fdc('0x1e')](_0x4417f4,{'force':!![]})[_0x248fdc('0x16')](function(){const _0x56bb7f=_0x248fdc;logger[_0x56bb7f('0x9')](_0x56bb7f('0x4'),_0x4417f4);})['catch'](function(_0x171844){const _0x4d8df6=_0x248fdc;logger[_0x4d8df6('0x9')](JSON[_0x4d8df6('0x15')](_0x171844));});});},Migration[_0x3c68d7('0xf')][_0x3c68d7('0x12')]=function(_0x58163f,_0xc153cf,_0xf032c4){const _0x211e7c=_0x3c68d7,_0x2637eb=this;this['sequence'][_0x211e7c('0x5')](function(){const _0x12374a=_0x211e7c;return _0x2637eb[_0x12374a('0x8')][_0x12374a('0x12')](_0x58163f,_0xc153cf,{'indexName':_0xf032c4})['then'](function(){const _0x93645c=_0x12374a;logger[_0x93645c('0x9')](_0x93645c('0xb'),_0x58163f,_0xc153cf['join'](','),_0xf032c4);})[_0x12374a('0x1b')](function(_0x38d7aa){const _0x543a91=_0x12374a;logger[_0x543a91('0x9')](JSON['stringify'](_0x38d7aa));});});},Migration['prototype'][_0x3c68d7('0x10')]=function(_0x4265a3,_0x48c101){const _0x324496=_0x3c68d7,_0x27a441=this;this[_0x324496('0x17')][_0x324496('0x5')](function(){const _0x328719=_0x324496;return _0x27a441[_0x328719('0x8')][_0x328719('0x10')](_0x4265a3,_0x48c101)['then'](function(){const _0x55b194=_0x328719;logger[_0x55b194('0x9')](_0x55b194('0x11'),_0x4265a3,_0x48c101);})[_0x328719('0x1b')](function(_0x2c54db){const _0x308b7d=_0x328719;logger['info'](JSON[_0x308b7d('0x15')](_0x2c54db));});});},Migration['prototype'][_0x3c68d7('0x2')]=function(_0x2d3cf9){const _0x25dab9=_0x3c68d7,_0x14cb8e=this;this[_0x25dab9('0x17')]['enqueue'](function(){const _0x11a150=_0x25dab9;return _0x14cb8e[_0x11a150('0x8')][_0x11a150('0x7')][_0x11a150('0x2')](_0x2d3cf9)[_0x11a150('0x16')](function(){const _0x2d6888=_0x11a150;logger[_0x2d6888('0x9')](_0x2d6888('0x13'),_0x2d3cf9);})[_0x11a150('0x1b')](function(_0x3f39dd){const _0x5d06d9=_0x11a150;logger['info'](JSON[_0x5d06d9('0x15')](_0x3f39dd));});});},Migration[_0x3c68d7('0xf')]['removeColumn']=function(_0x3488cb,_0x15b0da){const _0x16e920=this;this['sequence']['enqueue'](function(){const _0x3f1f3c=a973_0x888c;return _0x16e920[_0x3f1f3c('0x8')]['removeColumn'](_0x3488cb,_0x15b0da)['then'](function(){const _0x3fadd6=_0x3f1f3c;logger[_0x3fadd6('0x9')](_0x3fadd6('0xc'),_0x15b0da,_0x3488cb);})[_0x3f1f3c('0x1b')](function(_0x3bd3a2){const _0x51a2e0=_0x3f1f3c;logger[_0x51a2e0('0x9')](util[_0x51a2e0('0x1')](_0x3bd3a2,{'showHidden':![],'depth':null}));});});},Migration[_0x3c68d7('0xf')][_0x3c68d7('0xe')]=function(_0x26263c,_0x615be7,_0x1b879a){const _0x5977fe=_0x3c68d7,_0x34897d=this;this[_0x5977fe('0x17')]['enqueue'](function(){const _0x911cf=_0x5977fe;return _0x34897d[_0x911cf('0x8')][_0x911cf('0xe')](_0x26263c,_0x615be7,_0x1b879a)[_0x911cf('0x16')](function(){const _0x1a0693=_0x911cf;logger[_0x1a0693('0x9')](_0x1a0693('0xd'),_0x615be7,_0x1b879a,_0x26263c);})[_0x911cf('0x1b')](function(_0x28179e){const _0x3d2fb0=_0x911cf;logger['info'](util[_0x3d2fb0('0x1')](_0x28179e,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3c68d7('0xa')]=function(_0x109172){const _0x21b4eb=_0x3c68d7;this[_0x21b4eb('0x17')][_0x21b4eb('0x5')](function(){return _0x109172();});},module[_0x3c68d7('0x6')]={'up':function(_0x57a31b){return new Promise(function(_0x3f7cc1){const _0x2d38a8=a973_0x888c,_0x196ff5=new Migration(_0x57a31b);_0x196ff5[_0x2d38a8('0xa')](_0x3f7cc1);});},'down':function(){}};
\ No newline at end of file