Built motion from commit bfc7a72f7045b27461c9a5d1f71c1a658cfd0b8b. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.9.js
1 const a1012_0x5403=['changeColumn','sequelize','stringify','Added\x20column\x20%s\x20to\x20%s','indexName','catch','query','../config/logger','Changed\x20column\x20%s\x20in\x20table\x20%s','queryInterface','exports','dropTable','prototype','tail','util','renameColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','addColumn','inspect','migration','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex','indicesType','then','removeIndex\x20%s\x20%s','table\x20dropped\x20%s','removeColumn','removeIndex','sequence','Removed\x20column\x20%s\x20from\x20%s','final','info','enqueue'];(function(_0x2298c2,_0x5403ca){const _0x132e58=function(_0x27cfcf){while(--_0x27cfcf){_0x2298c2['push'](_0x2298c2['shift']());}};_0x132e58(++_0x5403ca);}(a1012_0x5403,0x6d));const a1012_0x132e=function(_0x2298c2,_0x5403ca){_0x2298c2=_0x2298c2-0x0;let _0x132e58=a1012_0x5403[_0x2298c2];return _0x132e58;};const _0x3a177e=a1012_0x132e;'use strict';const util=require(_0x3a177e('0x4')),logger=require(_0x3a177e('0x1e'))(_0x3a177e('0x9')),Sequence=function(){};Sequence[_0x3a177e('0x2')][_0x3a177e('0x16')]=function(_0x27cfcf){const _0x25b0da=_0x3a177e;this[_0x25b0da('0x3')]=this['tail']?this[_0x25b0da('0x3')]['finally'](_0x27cfcf):_0x27cfcf();};const Migration=function(_0x16a554){this['queryInterface']=_0x16a554,this['sequence']=new Sequence();};Migration[_0x3a177e('0x2')][_0x3a177e('0x17')]=function(_0x944bd8,_0x1144a0,_0x2195eb){const _0x3df582=_0x3a177e,_0x3e114b=this;this[_0x3df582('0x12')]['enqueue'](function(){const _0x210109=_0x3df582;return _0x3e114b[_0x210109('0x20')][_0x210109('0x17')](_0x944bd8,_0x1144a0,_0x2195eb)['then'](function(){const _0x59250d=_0x210109;logger[_0x59250d('0x15')](_0x59250d('0x1f'),_0x1144a0,_0x944bd8);})[_0x210109('0x1c')](function(_0x54212c){const _0x322175=_0x210109;logger[_0x322175('0x15')](JSON[_0x322175('0x19')](_0x54212c));});});},Migration[_0x3a177e('0x2')]['addColumn']=function(_0x3dfc14,_0x43a0d1,_0x115223){const _0x12e36b=_0x3a177e,_0x57f692=this;this['sequence'][_0x12e36b('0x16')](function(){const _0x5d3b60=_0x12e36b;return _0x57f692[_0x5d3b60('0x20')][_0x5d3b60('0x7')](_0x3dfc14,_0x43a0d1,_0x115223)[_0x5d3b60('0xd')](function(){const _0xc94a04=_0x5d3b60;logger[_0xc94a04('0x15')](_0xc94a04('0x1a'),_0x43a0d1,_0x3dfc14);})['catch'](function(_0x4e946c){const _0x3a430b=_0x5d3b60;logger[_0x3a430b('0x15')](JSON[_0x3a430b('0x19')](_0x4e946c));});});},Migration[_0x3a177e('0x2')][_0x3a177e('0x1')]=function(_0x293953){const _0x59d708=_0x3a177e,_0x4884d3=this;this[_0x59d708('0x12')]['enqueue'](function(){const _0x127824=_0x59d708;return _0x4884d3['queryInterface'][_0x127824('0x1')](_0x293953,{'force':!![]})[_0x127824('0xd')](function(){const _0x1cdfb0=_0x127824;logger[_0x1cdfb0('0x15')](_0x1cdfb0('0xf'),_0x293953);})[_0x127824('0x1c')](function(_0x70c5e8){const _0x571c1c=_0x127824;logger[_0x571c1c('0x15')](JSON[_0x571c1c('0x19')](_0x70c5e8));});});},Migration[_0x3a177e('0x2')][_0x3a177e('0xb')]=function(_0x4fa882,_0x224af9,_0x322141){const _0x479109=_0x3a177e,_0x5e8a91=this;this[_0x479109('0x12')][_0x479109('0x16')](function(){const _0x323a1a=_0x479109;return _0x5e8a91['queryInterface'][_0x323a1a('0xb')](_0x4fa882,_0x224af9,{'indexName':_0x322141[_0x323a1a('0x1b')],'indicesType':_0x322141[_0x323a1a('0xc')]})[_0x323a1a('0xd')](function(){const _0x711f2f=_0x323a1a;logger[_0x711f2f('0x15')](_0x711f2f('0x6'),_0x4fa882,_0x224af9['join'](','),_0x322141[_0x711f2f('0x1b')],_0x322141[_0x711f2f('0xc')]);})[_0x323a1a('0x1c')](function(_0x263355){const _0x6fc215=_0x323a1a;logger[_0x6fc215('0x15')](JSON[_0x6fc215('0x19')](_0x263355));});});},Migration['prototype'][_0x3a177e('0x11')]=function(_0x5bce94,_0xe289b1){const _0x18b3af=this;this['sequence']['enqueue'](function(){const _0x2c1c8a=a1012_0x132e;return _0x18b3af[_0x2c1c8a('0x20')][_0x2c1c8a('0x11')](_0x5bce94,_0xe289b1)[_0x2c1c8a('0xd')](function(){const _0x284f6a=_0x2c1c8a;logger[_0x284f6a('0x15')](_0x284f6a('0xe'),_0x5bce94,_0xe289b1);})['catch'](function(_0x55c507){const _0x373c66=_0x2c1c8a;logger[_0x373c66('0x15')](JSON[_0x373c66('0x19')](_0x55c507));});});},Migration['prototype'][_0x3a177e('0x1d')]=function(_0x40bb70){const _0x1c1e77=_0x3a177e,_0x35a00c=this;this[_0x1c1e77('0x12')]['enqueue'](function(){const _0xda7ed8=_0x1c1e77;return _0x35a00c[_0xda7ed8('0x20')][_0xda7ed8('0x18')]['query'](_0x40bb70)[_0xda7ed8('0xd')](function(){const _0x5664e7=_0xda7ed8;logger[_0x5664e7('0x15')]('query\x20%s',_0x40bb70);})[_0xda7ed8('0x1c')](function(_0x28f19c){const _0x384ce1=_0xda7ed8;logger[_0x384ce1('0x15')](JSON[_0x384ce1('0x19')](_0x28f19c));});});},Migration['prototype']['removeColumn']=function(_0x11ae76,_0x3db815){const _0x3f2008=_0x3a177e,_0x4c12b1=this;this[_0x3f2008('0x12')][_0x3f2008('0x16')](function(){const _0x3afdbb=_0x3f2008;return _0x4c12b1[_0x3afdbb('0x20')][_0x3afdbb('0x10')](_0x11ae76,_0x3db815)['then'](function(){const _0x2c0d8f=_0x3afdbb;logger['info'](_0x2c0d8f('0x13'),_0x3db815,_0x11ae76);})[_0x3afdbb('0x1c')](function(_0x455a09){const _0x55c1a6=_0x3afdbb;logger[_0x55c1a6('0x15')](util['inspect'](_0x455a09,{'showHidden':![],'depth':null}));});});},Migration[_0x3a177e('0x2')][_0x3a177e('0x5')]=function(_0x312797,_0x44ce95,_0x465a5c){const _0x4a07d1=_0x3a177e,_0x41f135=this;this[_0x4a07d1('0x12')][_0x4a07d1('0x16')](function(){const _0x2d7404=_0x4a07d1;return _0x41f135[_0x2d7404('0x20')][_0x2d7404('0x5')](_0x312797,_0x44ce95,_0x465a5c)['then'](function(){const _0x3e6227=_0x2d7404;logger['info'](_0x3e6227('0xa'),_0x44ce95,_0x465a5c,_0x312797);})[_0x2d7404('0x1c')](function(_0x303929){const _0x47a63e=_0x2d7404;logger['info'](util[_0x47a63e('0x8')](_0x303929,{'showHidden':![],'depth':null}));});});},Migration[_0x3a177e('0x2')][_0x3a177e('0x14')]=function(_0x4ca50c){const _0x19d487=_0x3a177e;this['sequence'][_0x19d487('0x16')](function(){return _0x4ca50c();});},module[_0x3a177e('0x0')]={'up':function(_0x27dd8c){return new Promise(function(_0x3af370){const _0x3b0917=a1012_0x132e,_0x1810ef=new Migration(_0x27dd8c);_0x1810ef[_0x3b0917('0x14')](_0x3af370);});},'down':function(){}};