Built motion from commit ded33658aad58fc8de845a8299a9db59a88cc353. Version 3.0.0...
[motion-next.git] / server / migrations / 2.2.1.js
index 67f5d52..27f929f 100644 (file)
@@ -1 +1 @@
-const a966_0x4929=['removeColumn','query\x20%s','renameColumn','addIndex\x20%s\x20%s\x20%s','addColumn','query','addIndex','catch','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','info','sequence','stringify','tail','then','prototype','removeIndex','inspect','changeColumn','final','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','util','removeIndex\x20%s\x20%s','../config/logger','dropTable','Removed\x20column\x20%s\x20from\x20%s','queryInterface','table\x20dropped\x20%s'];(function(_0x3a330d,_0x492919){const _0x3284f6=function(_0x33edf2){while(--_0x33edf2){_0x3a330d['push'](_0x3a330d['shift']());}};_0x3284f6(++_0x492919);}(a966_0x4929,0x8e));const a966_0x3284=function(_0x3a330d,_0x492919){_0x3a330d=_0x3a330d-0x0;let _0x3284f6=a966_0x4929[_0x3a330d];return _0x3284f6;};const _0x3e74ae=a966_0x3284;'use strict';const util=require(_0x3e74ae('0x19')),logger=require(_0x3e74ae('0x1b'))('migration'),Sequence=function(){};Sequence[_0x3e74ae('0x12')][_0x3e74ae('0x17')]=function(_0x33edf2){const _0x15bfe7=_0x3e74ae;this[_0x15bfe7('0x10')]=this['tail']?this[_0x15bfe7('0x10')]['finally'](_0x33edf2):_0x33edf2();};const Migration=function(_0x4be9f5){const _0x316aed=_0x3e74ae;this[_0x316aed('0x1')]=_0x4be9f5,this[_0x316aed('0xe')]=new Sequence();};Migration[_0x3e74ae('0x12')][_0x3e74ae('0x15')]=function(_0x8b143c,_0x35ddf7,_0x5efd4f){const _0x6ead3=_0x3e74ae,_0x334144=this;this[_0x6ead3('0xe')][_0x6ead3('0x17')](function(){const _0x24aaf2=_0x6ead3;return _0x334144[_0x24aaf2('0x1')][_0x24aaf2('0x15')](_0x8b143c,_0x35ddf7,_0x5efd4f)['then'](function(){const _0x23d32b=_0x24aaf2;logger[_0x23d32b('0xd')](_0x23d32b('0x18'),_0x35ddf7,_0x8b143c);})[_0x24aaf2('0xa')](function(_0x19d1d8){const _0x37454d=_0x24aaf2;logger[_0x37454d('0xd')](JSON[_0x37454d('0xf')](_0x19d1d8));});});},Migration['prototype']['addColumn']=function(_0x4a65af,_0x256799,_0x37516f){const _0x703ce3=_0x3e74ae,_0x5612ec=this;this['sequence'][_0x703ce3('0x17')](function(){const _0x9e0101=_0x703ce3;return _0x5612ec[_0x9e0101('0x1')][_0x9e0101('0x7')](_0x4a65af,_0x256799,_0x37516f)[_0x9e0101('0x11')](function(){const _0x5bfe2d=_0x9e0101;logger[_0x5bfe2d('0xd')]('Added\x20column\x20%s\x20to\x20%s',_0x256799,_0x4a65af);})[_0x9e0101('0xa')](function(_0x170089){const _0x3fc3a8=_0x9e0101;logger[_0x3fc3a8('0xd')](JSON['stringify'](_0x170089));});});},Migration[_0x3e74ae('0x12')][_0x3e74ae('0x1c')]=function(_0x1a59f5){const _0x50e9ff=_0x3e74ae,_0x152bcc=this;this['sequence'][_0x50e9ff('0x17')](function(){const _0xdab52=_0x50e9ff;return _0x152bcc[_0xdab52('0x1')][_0xdab52('0x1c')](_0x1a59f5,{'force':!![]})[_0xdab52('0x11')](function(){const _0x2aebc2=_0xdab52;logger[_0x2aebc2('0xd')](_0x2aebc2('0x2'),_0x1a59f5);})[_0xdab52('0xa')](function(_0x518ee3){const _0x3c9474=_0xdab52;logger[_0x3c9474('0xd')](JSON[_0x3c9474('0xf')](_0x518ee3));});});},Migration['prototype'][_0x3e74ae('0x9')]=function(_0x59b4a7,_0x5f2195,_0x2a8930){const _0x57bc34=_0x3e74ae,_0x5a80fc=this;this[_0x57bc34('0xe')][_0x57bc34('0x17')](function(){const _0x16ef39=_0x57bc34;return _0x5a80fc[_0x16ef39('0x1')][_0x16ef39('0x9')](_0x59b4a7,_0x5f2195,{'indexName':_0x2a8930})[_0x16ef39('0x11')](function(){const _0x255501=_0x16ef39;logger[_0x255501('0xd')](_0x255501('0x6'),_0x59b4a7,_0x5f2195[_0x255501('0xc')](','),_0x2a8930);})[_0x16ef39('0xa')](function(_0x5ab456){const _0x559467=_0x16ef39;logger[_0x559467('0xd')](JSON[_0x559467('0xf')](_0x5ab456));});});},Migration[_0x3e74ae('0x12')][_0x3e74ae('0x13')]=function(_0x5190f2,_0x46a8b8){const _0x2bdaf0=_0x3e74ae,_0x4130d9=this;this[_0x2bdaf0('0xe')][_0x2bdaf0('0x17')](function(){const _0x31ef46=_0x2bdaf0;return _0x4130d9[_0x31ef46('0x1')][_0x31ef46('0x13')](_0x5190f2,_0x46a8b8)['then'](function(){const _0x4f9ae2=_0x31ef46;logger[_0x4f9ae2('0xd')](_0x4f9ae2('0x1a'),_0x5190f2,_0x46a8b8);})[_0x31ef46('0xa')](function(_0xfa7153){const _0x12ec59=_0x31ef46;logger[_0x12ec59('0xd')](JSON['stringify'](_0xfa7153));});});},Migration[_0x3e74ae('0x12')][_0x3e74ae('0x8')]=function(_0x38d684){const _0x322e70=_0x3e74ae,_0x464d32=this;this['sequence'][_0x322e70('0x17')](function(){const _0x5dfade=_0x322e70;return _0x464d32[_0x5dfade('0x1')]['sequelize'][_0x5dfade('0x8')](_0x38d684)[_0x5dfade('0x11')](function(){const _0x249c33=_0x5dfade;logger[_0x249c33('0xd')](_0x249c33('0x4'),_0x38d684);})[_0x5dfade('0xa')](function(_0x328cf0){const _0x2b1bc5=_0x5dfade;logger['info'](JSON[_0x2b1bc5('0xf')](_0x328cf0));});});},Migration[_0x3e74ae('0x12')][_0x3e74ae('0x3')]=function(_0x25d9f9,_0x9d727e){const _0x19e55c=_0x3e74ae,_0x30eeb3=this;this[_0x19e55c('0xe')][_0x19e55c('0x17')](function(){const _0x2f0ed4=_0x19e55c;return _0x30eeb3[_0x2f0ed4('0x1')][_0x2f0ed4('0x3')](_0x25d9f9,_0x9d727e)[_0x2f0ed4('0x11')](function(){const _0x46ba50=_0x2f0ed4;logger['info'](_0x46ba50('0x0'),_0x9d727e,_0x25d9f9);})[_0x2f0ed4('0xa')](function(_0x435e2a){const _0x5761c4=_0x2f0ed4;logger[_0x5761c4('0xd')](util['inspect'](_0x435e2a,{'showHidden':![],'depth':null}));});});},Migration[_0x3e74ae('0x12')]['renameColumn']=function(_0x1b4257,_0x1bb9ac,_0x5c6d92){const _0x19fae7=_0x3e74ae,_0x5efded=this;this['sequence'][_0x19fae7('0x17')](function(){const _0x3667fa=_0x19fae7;return _0x5efded[_0x3667fa('0x1')][_0x3667fa('0x5')](_0x1b4257,_0x1bb9ac,_0x5c6d92)[_0x3667fa('0x11')](function(){const _0x2ddfcc=_0x3667fa;logger[_0x2ddfcc('0xd')](_0x2ddfcc('0xb'),_0x1bb9ac,_0x5c6d92,_0x1b4257);})[_0x3667fa('0xa')](function(_0x36ac2c){const _0x1c455c=_0x3667fa;logger['info'](util[_0x1c455c('0x14')](_0x36ac2c,{'showHidden':![],'depth':null}));});});},Migration[_0x3e74ae('0x12')][_0x3e74ae('0x16')]=function(_0x224c14){const _0x55a9a7=_0x3e74ae;this[_0x55a9a7('0xe')]['enqueue'](function(){return _0x224c14();});},module['exports']={'up':function(_0x113725){return new Promise(function(_0x163147){const _0x2491b2=a966_0x3284,_0x2e6bf0=new Migration(_0x113725);_0x2e6bf0[_0x2491b2('0x16')](_0x163147);});},'down':function(){}};
\ No newline at end of file
+const a966_0x123d=['tail','exports','final','inspect','removeIndex\x20%s\x20%s','table\x20dropped\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','join','addIndex\x20%s\x20%s\x20%s','removeIndex','migration','prototype','query\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','addIndex','Added\x20column\x20%s\x20to\x20%s','renameColumn','sequelize','sequence','info','queryInterface','catch','dropTable','../config/logger','Removed\x20column\x20%s\x20from\x20%s','query','then','addColumn','stringify','enqueue'];(function(_0x5a3598,_0x123df4){const _0x163f54=function(_0x421c17){while(--_0x421c17){_0x5a3598['push'](_0x5a3598['shift']());}};_0x163f54(++_0x123df4);}(a966_0x123d,0x146));const a966_0x163f=function(_0x5a3598,_0x123df4){_0x5a3598=_0x5a3598-0x0;let _0x163f54=a966_0x123d[_0x5a3598];return _0x163f54;};const _0xcde6fa=a966_0x163f;'use strict';const util=require('util'),logger=require(_0xcde6fa('0x8'))(_0xcde6fa('0x19')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x421c17){const _0x31c7d5=_0xcde6fa;this['tail']=this['tail']?this[_0x31c7d5('0xf')]['finally'](_0x421c17):_0x421c17();};const Migration=function(_0x355522){const _0x2b6878=_0xcde6fa;this[_0x2b6878('0x5')]=_0x355522,this[_0x2b6878('0x3')]=new Sequence();};Migration[_0xcde6fa('0x1a')]['changeColumn']=function(_0x241c38,_0x4941c5,_0x1e163c){const _0x4e42ef=_0xcde6fa,_0x4c654f=this;this[_0x4e42ef('0x3')][_0x4e42ef('0xe')](function(){const _0x454b48=_0x4e42ef;return _0x4c654f[_0x454b48('0x5')]['changeColumn'](_0x241c38,_0x4941c5,_0x1e163c)[_0x454b48('0xb')](function(){const _0x1e61c6=_0x454b48;logger[_0x1e61c6('0x4')](_0x1e61c6('0x15'),_0x4941c5,_0x241c38);})[_0x454b48('0x6')](function(_0x5abe2b){const _0x2d1d10=_0x454b48;logger[_0x2d1d10('0x4')](JSON[_0x2d1d10('0xd')](_0x5abe2b));});});},Migration[_0xcde6fa('0x1a')][_0xcde6fa('0xc')]=function(_0x43a008,_0x2bdea7,_0x339032){const _0x393e6e=_0xcde6fa,_0x444d7c=this;this[_0x393e6e('0x3')][_0x393e6e('0xe')](function(){const _0x170a5c=_0x393e6e;return _0x444d7c[_0x170a5c('0x5')]['addColumn'](_0x43a008,_0x2bdea7,_0x339032)[_0x170a5c('0xb')](function(){const _0x14656b=_0x170a5c;logger[_0x14656b('0x4')](_0x14656b('0x0'),_0x2bdea7,_0x43a008);})['catch'](function(_0x1af39e){const _0x3fee65=_0x170a5c;logger[_0x3fee65('0x4')](JSON[_0x3fee65('0xd')](_0x1af39e));});});},Migration[_0xcde6fa('0x1a')]['dropTable']=function(_0xce749e){const _0xf3a610=_0xcde6fa,_0x593511=this;this['sequence'][_0xf3a610('0xe')](function(){const _0x1022da=_0xf3a610;return _0x593511[_0x1022da('0x5')][_0x1022da('0x7')](_0xce749e,{'force':!![]})[_0x1022da('0xb')](function(){const _0x4a8b0d=_0x1022da;logger[_0x4a8b0d('0x4')](_0x4a8b0d('0x14'),_0xce749e);})[_0x1022da('0x6')](function(_0x3bee2){const _0x6e0dc0=_0x1022da;logger[_0x6e0dc0('0x4')](JSON[_0x6e0dc0('0xd')](_0x3bee2));});});},Migration['prototype'][_0xcde6fa('0x1e')]=function(_0x112080,_0x4867bf,_0x230856){const _0x3bd629=_0xcde6fa,_0xb2f3ce=this;this[_0x3bd629('0x3')][_0x3bd629('0xe')](function(){const _0x411ed5=_0x3bd629;return _0xb2f3ce[_0x411ed5('0x5')][_0x411ed5('0x1e')](_0x112080,_0x4867bf,{'indexName':_0x230856})[_0x411ed5('0xb')](function(){const _0x548c1a=_0x411ed5;logger[_0x548c1a('0x4')](_0x548c1a('0x17'),_0x112080,_0x4867bf[_0x548c1a('0x16')](','),_0x230856);})[_0x411ed5('0x6')](function(_0x5e1ff8){const _0x1db09d=_0x411ed5;logger[_0x1db09d('0x4')](JSON[_0x1db09d('0xd')](_0x5e1ff8));});});},Migration[_0xcde6fa('0x1a')][_0xcde6fa('0x18')]=function(_0x296bed,_0x53645c){const _0x576242=this;this['sequence']['enqueue'](function(){const _0x5a8c8d=a966_0x163f;return _0x576242[_0x5a8c8d('0x5')][_0x5a8c8d('0x18')](_0x296bed,_0x53645c)['then'](function(){const _0x19bea1=_0x5a8c8d;logger[_0x19bea1('0x4')](_0x19bea1('0x13'),_0x296bed,_0x53645c);})[_0x5a8c8d('0x6')](function(_0xe5dfe3){const _0xc07d3c=_0x5a8c8d;logger['info'](JSON[_0xc07d3c('0xd')](_0xe5dfe3));});});},Migration[_0xcde6fa('0x1a')][_0xcde6fa('0xa')]=function(_0x3860a4){const _0x1ce82f=_0xcde6fa,_0x43d6d4=this;this[_0x1ce82f('0x3')][_0x1ce82f('0xe')](function(){const _0x334607=_0x1ce82f;return _0x43d6d4[_0x334607('0x5')][_0x334607('0x2')][_0x334607('0xa')](_0x3860a4)['then'](function(){const _0x1b224b=_0x334607;logger[_0x1b224b('0x4')](_0x1b224b('0x1b'),_0x3860a4);})[_0x334607('0x6')](function(_0x449451){const _0xe0e966=_0x334607;logger[_0xe0e966('0x4')](JSON[_0xe0e966('0xd')](_0x449451));});});},Migration['prototype'][_0xcde6fa('0x1d')]=function(_0x2aec0d,_0x20dc1e){const _0x43ad01=_0xcde6fa,_0x588268=this;this[_0x43ad01('0x3')][_0x43ad01('0xe')](function(){const _0x1bdcee=_0x43ad01;return _0x588268[_0x1bdcee('0x5')][_0x1bdcee('0x1d')](_0x2aec0d,_0x20dc1e)[_0x1bdcee('0xb')](function(){const _0x3a64b2=_0x1bdcee;logger[_0x3a64b2('0x4')](_0x3a64b2('0x9'),_0x20dc1e,_0x2aec0d);})[_0x1bdcee('0x6')](function(_0x28bc67){const _0x184db3=_0x1bdcee;logger[_0x184db3('0x4')](util[_0x184db3('0x12')](_0x28bc67,{'showHidden':![],'depth':null}));});});},Migration[_0xcde6fa('0x1a')][_0xcde6fa('0x1')]=function(_0x4e9230,_0x46bf7b,_0x521b3b){const _0x3cc7e2=this;this['sequence']['enqueue'](function(){const _0x18dc8d=a966_0x163f;return _0x3cc7e2['queryInterface'][_0x18dc8d('0x1')](_0x4e9230,_0x46bf7b,_0x521b3b)[_0x18dc8d('0xb')](function(){const _0x1730b0=_0x18dc8d;logger['info'](_0x1730b0('0x1c'),_0x46bf7b,_0x521b3b,_0x4e9230);})[_0x18dc8d('0x6')](function(_0x56436c){logger['info'](util['inspect'](_0x56436c,{'showHidden':![],'depth':null}));});});},Migration[_0xcde6fa('0x1a')][_0xcde6fa('0x11')]=function(_0x426f5b){const _0x5b314c=_0xcde6fa;this[_0x5b314c('0x3')][_0x5b314c('0xe')](function(){return _0x426f5b();});},module[_0xcde6fa('0x10')]={'up':function(_0x1f6857){return new Promise(function(_0x3cf5de){const _0x5f31a5=a966_0x163f,_0x4aa7a2=new Migration(_0x1f6857);_0x4aa7a2[_0x5f31a5('0x11')](_0x3cf5de);});},'down':function(){}};
\ No newline at end of file