Built motion from commit b517aaa2a6638133380e4d135c64a80893061362. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.92.js
index bd555eb..ce2d4ed 100644 (file)
@@ -1 +1 @@
-const a984_0x4f9f=['renameColumn','info','sequence','then','addIndex','finally','stringify','removeColumn','addIndex\x20%s\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','join','changeColumn','enqueue','prototype','../config/logger','query','addColumn','inspect','tail','queryInterface','final','removeIndex','catch','query\x20%s','removeIndex\x20%s\x20%s'];(function(_0x6d4a02,_0x4f9f37){const _0x3de638=function(_0x13958e){while(--_0x13958e){_0x6d4a02['push'](_0x6d4a02['shift']());}};_0x3de638(++_0x4f9f37);}(a984_0x4f9f,0x9b));const a984_0x3de6=function(_0x6d4a02,_0x4f9f37){_0x6d4a02=_0x6d4a02-0x0;let _0x3de638=a984_0x4f9f[_0x6d4a02];return _0x3de638;};const _0x597f25=a984_0x3de6;'use strict';const util=require('util'),logger=require(_0x597f25('0x17'))('migration'),Sequence=function(){};Sequence[_0x597f25('0x16')]['enqueue']=function(_0x13958e){const _0xa5431=_0x597f25;this[_0xa5431('0x0')]=this[_0xa5431('0x0')]?this[_0xa5431('0x0')][_0xa5431('0xc')](_0x13958e):_0x13958e();};const Migration=function(_0x28a155){const _0x327b6c=_0x597f25;this['queryInterface']=_0x28a155,this[_0x327b6c('0x9')]=new Sequence();};Migration[_0x597f25('0x16')][_0x597f25('0x14')]=function(_0x9d6ba,_0x373913,_0x2a33bb){const _0x2291a8=this;this['sequence']['enqueue'](function(){const _0x41123f=a984_0x3de6;return _0x2291a8[_0x41123f('0x1')]['changeColumn'](_0x9d6ba,_0x373913,_0x2a33bb)[_0x41123f('0xa')](function(){const _0x510629=_0x41123f;logger[_0x510629('0x8')](_0x510629('0x12'),_0x373913,_0x9d6ba);})[_0x41123f('0x4')](function(_0x2fc8c6){const _0x2fb4d7=_0x41123f;logger[_0x2fb4d7('0x8')](JSON[_0x2fb4d7('0xd')](_0x2fc8c6));});});},Migration['prototype'][_0x597f25('0x19')]=function(_0x46fb9a,_0x304c2d,_0x135da8){const _0x1f7542=_0x597f25,_0x23c656=this;this[_0x1f7542('0x9')][_0x1f7542('0x15')](function(){const _0x342861=_0x1f7542;return _0x23c656[_0x342861('0x1')]['addColumn'](_0x46fb9a,_0x304c2d,_0x135da8)[_0x342861('0xa')](function(){const _0x3efc62=_0x342861;logger[_0x3efc62('0x8')](_0x3efc62('0x10'),_0x304c2d,_0x46fb9a);})['catch'](function(_0x507797){const _0x440b19=_0x342861;logger[_0x440b19('0x8')](JSON[_0x440b19('0xd')](_0x507797));});});},Migration[_0x597f25('0x16')][_0x597f25('0x11')]=function(_0x460d8d){const _0x5db7d0=_0x597f25,_0x5611fe=this;this[_0x5db7d0('0x9')][_0x5db7d0('0x15')](function(){const _0x55b7fd=_0x5db7d0;return _0x5611fe[_0x55b7fd('0x1')][_0x55b7fd('0x11')](_0x460d8d,{'force':!![]})['then'](function(){const _0x3b3f99=_0x55b7fd;logger[_0x3b3f99('0x8')]('table\x20dropped\x20%s',_0x460d8d);})[_0x55b7fd('0x4')](function(_0x16160a){const _0x29efd7=_0x55b7fd;logger[_0x29efd7('0x8')](JSON[_0x29efd7('0xd')](_0x16160a));});});},Migration[_0x597f25('0x16')][_0x597f25('0xb')]=function(_0x450cf3,_0x1f6b96,_0x3084df){const _0xbee5ff=_0x597f25,_0x5464f7=this;this[_0xbee5ff('0x9')][_0xbee5ff('0x15')](function(){const _0x156528=_0xbee5ff;return _0x5464f7[_0x156528('0x1')]['addIndex'](_0x450cf3,_0x1f6b96,{'indexName':_0x3084df})[_0x156528('0xa')](function(){const _0x549711=_0x156528;logger[_0x549711('0x8')](_0x549711('0xf'),_0x450cf3,_0x1f6b96[_0x549711('0x13')](','),_0x3084df);})[_0x156528('0x4')](function(_0x2178e5){const _0x2b0490=_0x156528;logger[_0x2b0490('0x8')](JSON[_0x2b0490('0xd')](_0x2178e5));});});},Migration[_0x597f25('0x16')][_0x597f25('0x3')]=function(_0x3ff863,_0x1bf106){const _0x13f68d=_0x597f25,_0x44154c=this;this[_0x13f68d('0x9')]['enqueue'](function(){const _0x10024a=_0x13f68d;return _0x44154c[_0x10024a('0x1')]['removeIndex'](_0x3ff863,_0x1bf106)[_0x10024a('0xa')](function(){const _0x4f4298=_0x10024a;logger[_0x4f4298('0x8')](_0x4f4298('0x6'),_0x3ff863,_0x1bf106);})[_0x10024a('0x4')](function(_0x297abd){const _0x33c789=_0x10024a;logger[_0x33c789('0x8')](JSON[_0x33c789('0xd')](_0x297abd));});});},Migration[_0x597f25('0x16')][_0x597f25('0x18')]=function(_0x4767f4){const _0x247d64=_0x597f25,_0x825c68=this;this[_0x247d64('0x9')][_0x247d64('0x15')](function(){const _0x45caaf=_0x247d64;return _0x825c68['queryInterface']['sequelize'][_0x45caaf('0x18')](_0x4767f4)[_0x45caaf('0xa')](function(){const _0x13653b=_0x45caaf;logger[_0x13653b('0x8')](_0x13653b('0x5'),_0x4767f4);})[_0x45caaf('0x4')](function(_0x642b59){const _0x46253f=_0x45caaf;logger[_0x46253f('0x8')](JSON[_0x46253f('0xd')](_0x642b59));});});},Migration['prototype']['removeColumn']=function(_0x16f7dc,_0x23df60){const _0x1bf9cd=_0x597f25,_0x16b9ea=this;this[_0x1bf9cd('0x9')][_0x1bf9cd('0x15')](function(){const _0x5d0eb2=_0x1bf9cd;return _0x16b9ea[_0x5d0eb2('0x1')][_0x5d0eb2('0xe')](_0x16f7dc,_0x23df60)[_0x5d0eb2('0xa')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x23df60,_0x16f7dc);})[_0x5d0eb2('0x4')](function(_0x4de10c){const _0x50cb6b=_0x5d0eb2;logger[_0x50cb6b('0x8')](util['inspect'](_0x4de10c,{'showHidden':![],'depth':null}));});});},Migration[_0x597f25('0x16')][_0x597f25('0x7')]=function(_0x4c01e7,_0x5a42f7,_0xc70e3e){const _0x1fdbe5=_0x597f25,_0x4666e1=this;this[_0x1fdbe5('0x9')][_0x1fdbe5('0x15')](function(){const _0x4eefa4=_0x1fdbe5;return _0x4666e1[_0x4eefa4('0x1')][_0x4eefa4('0x7')](_0x4c01e7,_0x5a42f7,_0xc70e3e)[_0x4eefa4('0xa')](function(){const _0x42680f=_0x4eefa4;logger[_0x42680f('0x8')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5a42f7,_0xc70e3e,_0x4c01e7);})[_0x4eefa4('0x4')](function(_0x3d0f57){const _0x34efba=_0x4eefa4;logger['info'](util[_0x34efba('0x1a')](_0x3d0f57,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x597f25('0x2')]=function(_0x55e7f2){const _0x2a9816=_0x597f25;this[_0x2a9816('0x9')][_0x2a9816('0x15')](function(){return _0x55e7f2();});},module['exports']={'up':function(_0x2547fe){return new Promise(function(_0x168740){const _0x574247=a984_0x3de6,_0x5ed1a1=new Migration(_0x2547fe);_0x5ed1a1[_0x574247('0x2')](_0x168740);});},'down':function(){}};
\ No newline at end of file
+const a984_0x2afc=['removeColumn','../config/logger','then','util','removeIndex\x20%s\x20%s','join','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','info','changeColumn','dropTable','sequence','addColumn','inspect','table\x20dropped\x20%s','migration','tail','enqueue','Added\x20column\x20%s\x20to\x20%s','prototype','addIndex','queryInterface','exports','query','final','stringify','Removed\x20column\x20%s\x20from\x20%s','removeIndex','catch'];(function(_0x492253,_0x2afcbd){const _0x3c19d5=function(_0x4a285b){while(--_0x4a285b){_0x492253['push'](_0x492253['shift']());}};_0x3c19d5(++_0x2afcbd);}(a984_0x2afc,0x10b));const a984_0x3c19=function(_0x492253,_0x2afcbd){_0x492253=_0x492253-0x0;let _0x3c19d5=a984_0x2afc[_0x492253];return _0x3c19d5;};const _0x352fab=a984_0x3c19;'use strict';const util=require(_0x352fab('0x1a')),logger=require(_0x352fab('0x18'))(_0x352fab('0x9')),Sequence=function(){};Sequence['prototype'][_0x352fab('0xb')]=function(_0x4a285b){const _0x4b4c39=_0x352fab;this[_0x4b4c39('0xa')]=this['tail']?this[_0x4b4c39('0xa')]['finally'](_0x4a285b):_0x4a285b();};const Migration=function(_0x5cb29c){const _0x8957b1=_0x352fab;this[_0x8957b1('0xf')]=_0x5cb29c,this[_0x8957b1('0x5')]=new Sequence();};Migration[_0x352fab('0xd')]['changeColumn']=function(_0x157503,_0x5801ae,_0x51be3a){const _0x4e4a79=_0x352fab,_0x4b251f=this;this[_0x4e4a79('0x5')][_0x4e4a79('0xb')](function(){const _0x408bc5=_0x4e4a79;return _0x4b251f[_0x408bc5('0xf')][_0x408bc5('0x3')](_0x157503,_0x5801ae,_0x51be3a)[_0x408bc5('0x19')](function(){const _0x5b9d59=_0x408bc5;logger['info'](_0x5b9d59('0x1'),_0x5801ae,_0x157503);})[_0x408bc5('0x16')](function(_0xc2aff1){const _0x35f6b7=_0x408bc5;logger[_0x35f6b7('0x2')](JSON[_0x35f6b7('0x13')](_0xc2aff1));});});},Migration[_0x352fab('0xd')][_0x352fab('0x6')]=function(_0x2d1079,_0x47006d,_0xae2f3a){const _0x48fa6c=_0x352fab,_0x3beea4=this;this['sequence'][_0x48fa6c('0xb')](function(){const _0x5341d3=_0x48fa6c;return _0x3beea4[_0x5341d3('0xf')][_0x5341d3('0x6')](_0x2d1079,_0x47006d,_0xae2f3a)[_0x5341d3('0x19')](function(){const _0x572bbf=_0x5341d3;logger['info'](_0x572bbf('0xc'),_0x47006d,_0x2d1079);})[_0x5341d3('0x16')](function(_0x38c3a8){const _0x4ee245=_0x5341d3;logger[_0x4ee245('0x2')](JSON[_0x4ee245('0x13')](_0x38c3a8));});});},Migration[_0x352fab('0xd')][_0x352fab('0x4')]=function(_0x3c789f){const _0x25ad4a=_0x352fab,_0x4119d7=this;this[_0x25ad4a('0x5')][_0x25ad4a('0xb')](function(){const _0x5eb217=_0x25ad4a;return _0x4119d7[_0x5eb217('0xf')][_0x5eb217('0x4')](_0x3c789f,{'force':!![]})[_0x5eb217('0x19')](function(){const _0x536118=_0x5eb217;logger['info'](_0x536118('0x8'),_0x3c789f);})[_0x5eb217('0x16')](function(_0x5665b8){logger['info'](JSON['stringify'](_0x5665b8));});});},Migration[_0x352fab('0xd')][_0x352fab('0xe')]=function(_0x4670c0,_0x2bb6ed,_0x36a146){const _0x286300=_0x352fab,_0x2f0b22=this;this[_0x286300('0x5')][_0x286300('0xb')](function(){const _0x204d99=_0x286300;return _0x2f0b22[_0x204d99('0xf')]['addIndex'](_0x4670c0,_0x2bb6ed,{'indexName':_0x36a146})['then'](function(){const _0x339b9a=_0x204d99;logger[_0x339b9a('0x2')]('addIndex\x20%s\x20%s\x20%s',_0x4670c0,_0x2bb6ed[_0x339b9a('0x1c')](','),_0x36a146);})[_0x204d99('0x16')](function(_0x36285f){const _0x3aed66=_0x204d99;logger[_0x3aed66('0x2')](JSON[_0x3aed66('0x13')](_0x36285f));});});},Migration[_0x352fab('0xd')][_0x352fab('0x15')]=function(_0x283715,_0x27e44d){const _0x242a10=_0x352fab,_0x1813a4=this;this[_0x242a10('0x5')]['enqueue'](function(){const _0x460288=_0x242a10;return _0x1813a4[_0x460288('0xf')][_0x460288('0x15')](_0x283715,_0x27e44d)[_0x460288('0x19')](function(){const _0x193c2a=_0x460288;logger[_0x193c2a('0x2')](_0x193c2a('0x1b'),_0x283715,_0x27e44d);})['catch'](function(_0x32d830){const _0x3d56d1=_0x460288;logger[_0x3d56d1('0x2')](JSON[_0x3d56d1('0x13')](_0x32d830));});});},Migration['prototype'][_0x352fab('0x11')]=function(_0x34b4a6){const _0x1bd90d=_0x352fab,_0x17f7d8=this;this[_0x1bd90d('0x5')][_0x1bd90d('0xb')](function(){const _0x528298=_0x1bd90d;return _0x17f7d8['queryInterface']['sequelize'][_0x528298('0x11')](_0x34b4a6)[_0x528298('0x19')](function(){logger['info']('query\x20%s',_0x34b4a6);})[_0x528298('0x16')](function(_0x4a1612){const _0x576132=_0x528298;logger[_0x576132('0x2')](JSON['stringify'](_0x4a1612));});});},Migration[_0x352fab('0xd')][_0x352fab('0x17')]=function(_0x4e61c2,_0x138c96){const _0x198b68=_0x352fab,_0xc5fa5b=this;this[_0x198b68('0x5')][_0x198b68('0xb')](function(){const _0x227c39=_0x198b68;return _0xc5fa5b[_0x227c39('0xf')][_0x227c39('0x17')](_0x4e61c2,_0x138c96)[_0x227c39('0x19')](function(){const _0x11c324=_0x227c39;logger[_0x11c324('0x2')](_0x11c324('0x14'),_0x138c96,_0x4e61c2);})['catch'](function(_0x5b57bb){const _0x49e189=_0x227c39;logger['info'](util[_0x49e189('0x7')](_0x5b57bb,{'showHidden':![],'depth':null}));});});},Migration[_0x352fab('0xd')]['renameColumn']=function(_0x14e24c,_0x248004,_0x382a34){const _0x3147e1=_0x352fab,_0x56af94=this;this[_0x3147e1('0x5')][_0x3147e1('0xb')](function(){const _0x49f20e=_0x3147e1;return _0x56af94[_0x49f20e('0xf')][_0x49f20e('0x0')](_0x14e24c,_0x248004,_0x382a34)[_0x49f20e('0x19')](function(){const _0x4d423c=_0x49f20e;logger[_0x4d423c('0x2')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x248004,_0x382a34,_0x14e24c);})[_0x49f20e('0x16')](function(_0x3a4f1d){const _0x5bd630=_0x49f20e;logger[_0x5bd630('0x2')](util[_0x5bd630('0x7')](_0x3a4f1d,{'showHidden':![],'depth':null}));});});},Migration[_0x352fab('0xd')][_0x352fab('0x12')]=function(_0x5d091a){const _0x39a581=_0x352fab;this[_0x39a581('0x5')][_0x39a581('0xb')](function(){return _0x5d091a();});},module[_0x352fab('0x10')]={'up':function(_0x21226e){return new Promise(function(_0x27eec0){const _0x3774ef=new Migration(_0x21226e);_0x3774ef['final'](_0x27eec0);});},'down':function(){}};
\ No newline at end of file