Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.9.js
index c761db5..61de58e 100644 (file)
@@ -1 +1 @@
-const a982_0x4e9a=['renameColumn','prototype','exports','removeIndex\x20%s\x20%s','stringify','inspect','query','removeIndex','../config/logger','removeColumn','migration','info','Changed\x20column\x20%s\x20in\x20table\x20%s','then','sequence','catch','enqueue','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','indexName','addColumn','queryInterface','dropTable','indicesType','addIndex','sequelize','table\x20dropped\x20%s','join','addIndex\x20%s\x20%s\x20%s\x20[%s]','tail'];(function(_0x198c35,_0x4e9a34){const _0x4c41f1=function(_0x5ab6e6){while(--_0x5ab6e6){_0x198c35['push'](_0x198c35['shift']());}};_0x4c41f1(++_0x4e9a34);}(a982_0x4e9a,0xe2));const a982_0x4c41=function(_0x198c35,_0x4e9a34){_0x198c35=_0x198c35-0x0;let _0x4c41f1=a982_0x4e9a[_0x198c35];return _0x4c41f1;};const _0x4abe71=a982_0x4c41;'use strict';const util=require('util'),logger=require(_0x4abe71('0x16'))(_0x4abe71('0x18')),Sequence=function(){};Sequence[_0x4abe71('0xf')][_0x4abe71('0x0')]=function(_0x5ab6e6){const _0x413cf7=_0x4abe71;this[_0x413cf7('0xd')]=this[_0x413cf7('0xd')]?this['tail']['finally'](_0x5ab6e6):_0x5ab6e6();};const Migration=function(_0x5138fc){const _0x5abec5=_0x4abe71;this[_0x5abec5('0x5')]=_0x5138fc,this['sequence']=new Sequence();};Migration[_0x4abe71('0xf')]['changeColumn']=function(_0x2da38d,_0x203030,_0x2f2209){const _0x5968ff=_0x4abe71,_0x5b95ac=this;this[_0x5968ff('0x1c')][_0x5968ff('0x0')](function(){const _0x1a572a=_0x5968ff;return _0x5b95ac['queryInterface'][_0x1a572a('0x1')](_0x2da38d,_0x203030,_0x2f2209)['then'](function(){const _0x48c550=_0x1a572a;logger[_0x48c550('0x19')](_0x48c550('0x1a'),_0x203030,_0x2da38d);})[_0x1a572a('0x1d')](function(_0x376628){const _0x512d3c=_0x1a572a;logger[_0x512d3c('0x19')](JSON[_0x512d3c('0x12')](_0x376628));});});},Migration[_0x4abe71('0xf')][_0x4abe71('0x4')]=function(_0x59724b,_0x4b2249,_0x36096b){const _0x143a3f=_0x4abe71,_0x85821d=this;this['sequence'][_0x143a3f('0x0')](function(){const _0x5175c4=_0x143a3f;return _0x85821d[_0x5175c4('0x5')][_0x5175c4('0x4')](_0x59724b,_0x4b2249,_0x36096b)[_0x5175c4('0x1b')](function(){const _0xb05702=_0x5175c4;logger[_0xb05702('0x19')]('Added\x20column\x20%s\x20to\x20%s',_0x4b2249,_0x59724b);})[_0x5175c4('0x1d')](function(_0x11d2b6){const _0x3d4225=_0x5175c4;logger[_0x3d4225('0x19')](JSON[_0x3d4225('0x12')](_0x11d2b6));});});},Migration['prototype'][_0x4abe71('0x6')]=function(_0x1d9bc1){const _0x5a6151=_0x4abe71,_0x5805a0=this;this['sequence'][_0x5a6151('0x0')](function(){const _0x173652=_0x5a6151;return _0x5805a0[_0x173652('0x5')][_0x173652('0x6')](_0x1d9bc1,{'force':!![]})[_0x173652('0x1b')](function(){const _0x1244d9=_0x173652;logger[_0x1244d9('0x19')](_0x1244d9('0xa'),_0x1d9bc1);})['catch'](function(_0x55ec17){const _0x164c26=_0x173652;logger[_0x164c26('0x19')](JSON[_0x164c26('0x12')](_0x55ec17));});});},Migration[_0x4abe71('0xf')][_0x4abe71('0x8')]=function(_0xf4488d,_0x36ddf3,_0x5ebae9){const _0x38df88=_0x4abe71,_0x16ab11=this;this[_0x38df88('0x1c')]['enqueue'](function(){const _0x46ba47=_0x38df88;return _0x16ab11[_0x46ba47('0x5')]['addIndex'](_0xf4488d,_0x36ddf3,{'indexName':_0x5ebae9['indexName'],'indicesType':_0x5ebae9['indicesType']})[_0x46ba47('0x1b')](function(){const _0x1a0a1c=_0x46ba47;logger[_0x1a0a1c('0x19')](_0x1a0a1c('0xc'),_0xf4488d,_0x36ddf3[_0x1a0a1c('0xb')](','),_0x5ebae9[_0x1a0a1c('0x3')],_0x5ebae9[_0x1a0a1c('0x7')]);})['catch'](function(_0x53f827){const _0x4b30c6=_0x46ba47;logger[_0x4b30c6('0x19')](JSON['stringify'](_0x53f827));});});},Migration[_0x4abe71('0xf')]['removeIndex']=function(_0x706d2d,_0x258c86){const _0x50aca1=_0x4abe71,_0x4c9b04=this;this[_0x50aca1('0x1c')][_0x50aca1('0x0')](function(){const _0x31d10a=_0x50aca1;return _0x4c9b04[_0x31d10a('0x5')][_0x31d10a('0x15')](_0x706d2d,_0x258c86)[_0x31d10a('0x1b')](function(){const _0x505002=_0x31d10a;logger[_0x505002('0x19')](_0x505002('0x11'),_0x706d2d,_0x258c86);})[_0x31d10a('0x1d')](function(_0x168bc9){const _0x2dc9a3=_0x31d10a;logger[_0x2dc9a3('0x19')](JSON[_0x2dc9a3('0x12')](_0x168bc9));});});},Migration[_0x4abe71('0xf')][_0x4abe71('0x14')]=function(_0x44166d){const _0x371dd6=_0x4abe71,_0x4de61e=this;this[_0x371dd6('0x1c')]['enqueue'](function(){const _0x4662a3=_0x371dd6;return _0x4de61e[_0x4662a3('0x5')][_0x4662a3('0x9')]['query'](_0x44166d)['then'](function(){const _0x3ba657=_0x4662a3;logger[_0x3ba657('0x19')]('query\x20%s',_0x44166d);})[_0x4662a3('0x1d')](function(_0x455861){const _0x47c51e=_0x4662a3;logger[_0x47c51e('0x19')](JSON[_0x47c51e('0x12')](_0x455861));});});},Migration[_0x4abe71('0xf')]['removeColumn']=function(_0x3b1351,_0x2f6af4){const _0x466650=_0x4abe71,_0x578a01=this;this['sequence'][_0x466650('0x0')](function(){const _0x49e7d8=_0x466650;return _0x578a01[_0x49e7d8('0x5')][_0x49e7d8('0x17')](_0x3b1351,_0x2f6af4)[_0x49e7d8('0x1b')](function(){const _0x26ca21=_0x49e7d8;logger[_0x26ca21('0x19')]('Removed\x20column\x20%s\x20from\x20%s',_0x2f6af4,_0x3b1351);})['catch'](function(_0x2b63af){const _0x129f2d=_0x49e7d8;logger[_0x129f2d('0x19')](util[_0x129f2d('0x13')](_0x2b63af,{'showHidden':![],'depth':null}));});});},Migration[_0x4abe71('0xf')][_0x4abe71('0xe')]=function(_0x4ec301,_0x1af5df,_0x5001a4){const _0x3d3a12=_0x4abe71,_0x34c34e=this;this[_0x3d3a12('0x1c')][_0x3d3a12('0x0')](function(){const _0x50e956=_0x3d3a12;return _0x34c34e[_0x50e956('0x5')]['renameColumn'](_0x4ec301,_0x1af5df,_0x5001a4)[_0x50e956('0x1b')](function(){const _0x240a87=_0x50e956;logger[_0x240a87('0x19')](_0x240a87('0x2'),_0x1af5df,_0x5001a4,_0x4ec301);})[_0x50e956('0x1d')](function(_0x214e2c){const _0x318a72=_0x50e956;logger[_0x318a72('0x19')](util['inspect'](_0x214e2c,{'showHidden':![],'depth':null}));});});},Migration[_0x4abe71('0xf')]['final']=function(_0x3ff131){const _0x3e273=_0x4abe71;this[_0x3e273('0x1c')]['enqueue'](function(){return _0x3ff131();});},module[_0x4abe71('0x10')]={'up':function(_0x3b3b0b){return new Promise(function(_0x191d70){const _0x3126bd=new Migration(_0x3b3b0b);_0x3126bd['final'](_0x191d70);});},'down':function(){}};
\ No newline at end of file
+const a982_0xf62a=['catch','tail','final','addColumn','join','removeIndex','then','indicesType','inspect','queryInterface','Added\x20column\x20%s\x20to\x20%s','addIndex','migration','removeColumn','finally','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequence','enqueue','sequelize','addIndex\x20%s\x20%s\x20%s\x20[%s]','renameColumn','stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','dropTable','exports','query\x20%s','prototype','util','changeColumn','../config/logger','info'];(function(_0x302dd0,_0xf62a37){const _0x53aada=function(_0x21a7e5){while(--_0x21a7e5){_0x302dd0['push'](_0x302dd0['shift']());}};_0x53aada(++_0xf62a37);}(a982_0xf62a,0x143));const a982_0x53aa=function(_0x302dd0,_0xf62a37){_0x302dd0=_0x302dd0-0x0;let _0x53aada=a982_0xf62a[_0x302dd0];return _0x53aada;};const _0x25f4a4=a982_0x53aa;'use strict';const util=require(_0x25f4a4('0xe')),logger=require(_0x25f4a4('0x10'))(_0x25f4a4('0x1e')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x21a7e5){const _0x5c17ea=_0x25f4a4;this['tail']=this[_0x5c17ea('0x13')]?this[_0x5c17ea('0x13')][_0x5c17ea('0x1')](_0x21a7e5):_0x21a7e5();};const Migration=function(_0x1ff23a){const _0x1ccadc=_0x25f4a4;this[_0x1ccadc('0x1b')]=_0x1ff23a,this[_0x1ccadc('0x3')]=new Sequence();};Migration[_0x25f4a4('0xd')]['changeColumn']=function(_0x12086b,_0x5cfe2e,_0x5af5fb){const _0x13e4b4=_0x25f4a4,_0x388a95=this;this[_0x13e4b4('0x3')]['enqueue'](function(){const _0xb5697f=_0x13e4b4;return _0x388a95[_0xb5697f('0x1b')][_0xb5697f('0xf')](_0x12086b,_0x5cfe2e,_0x5af5fb)[_0xb5697f('0x18')](function(){const _0x59bb5d=_0xb5697f;logger['info'](_0x59bb5d('0x9'),_0x5cfe2e,_0x12086b);})[_0xb5697f('0x12')](function(_0x6b5b7a){const _0x4c78fe=_0xb5697f;logger['info'](JSON[_0x4c78fe('0x8')](_0x6b5b7a));});});},Migration[_0x25f4a4('0xd')][_0x25f4a4('0x15')]=function(_0x343ba6,_0x2f3ae3,_0x5cf71f){const _0x1a2fc7=_0x25f4a4,_0x113cbe=this;this[_0x1a2fc7('0x3')][_0x1a2fc7('0x4')](function(){const _0x23e1b5=_0x1a2fc7;return _0x113cbe[_0x23e1b5('0x1b')][_0x23e1b5('0x15')](_0x343ba6,_0x2f3ae3,_0x5cf71f)['then'](function(){const _0x1faa6a=_0x23e1b5;logger[_0x1faa6a('0x11')](_0x1faa6a('0x1c'),_0x2f3ae3,_0x343ba6);})[_0x23e1b5('0x12')](function(_0x55c54a){const _0x33cab7=_0x23e1b5;logger[_0x33cab7('0x11')](JSON['stringify'](_0x55c54a));});});},Migration['prototype'][_0x25f4a4('0xa')]=function(_0x3e2c34){const _0x3fd035=_0x25f4a4,_0x14a931=this;this[_0x3fd035('0x3')][_0x3fd035('0x4')](function(){const _0x49ea70=_0x3fd035;return _0x14a931[_0x49ea70('0x1b')][_0x49ea70('0xa')](_0x3e2c34,{'force':!![]})[_0x49ea70('0x18')](function(){const _0x15752f=_0x49ea70;logger[_0x15752f('0x11')]('table\x20dropped\x20%s',_0x3e2c34);})[_0x49ea70('0x12')](function(_0x22881e){const _0x3382f5=_0x49ea70;logger[_0x3382f5('0x11')](JSON['stringify'](_0x22881e));});});},Migration[_0x25f4a4('0xd')][_0x25f4a4('0x1d')]=function(_0x2fa53d,_0x78d18f,_0x1162e4){const _0x57c531=_0x25f4a4,_0x1124da=this;this['sequence'][_0x57c531('0x4')](function(){const _0x5be3cd=_0x57c531;return _0x1124da[_0x5be3cd('0x1b')]['addIndex'](_0x2fa53d,_0x78d18f,{'indexName':_0x1162e4['indexName'],'indicesType':_0x1162e4[_0x5be3cd('0x19')]})[_0x5be3cd('0x18')](function(){const _0xd33527=_0x5be3cd;logger[_0xd33527('0x11')](_0xd33527('0x6'),_0x2fa53d,_0x78d18f[_0xd33527('0x16')](','),_0x1162e4['indexName'],_0x1162e4['indicesType']);})[_0x5be3cd('0x12')](function(_0x3022c1){const _0x3579a9=_0x5be3cd;logger[_0x3579a9('0x11')](JSON[_0x3579a9('0x8')](_0x3022c1));});});},Migration[_0x25f4a4('0xd')][_0x25f4a4('0x17')]=function(_0x1b7435,_0x5dea95){const _0x217722=_0x25f4a4,_0x399421=this;this[_0x217722('0x3')][_0x217722('0x4')](function(){const _0x328221=_0x217722;return _0x399421[_0x328221('0x1b')]['removeIndex'](_0x1b7435,_0x5dea95)['then'](function(){const _0x1cf2ca=_0x328221;logger[_0x1cf2ca('0x11')]('removeIndex\x20%s\x20%s',_0x1b7435,_0x5dea95);})[_0x328221('0x12')](function(_0xa7c55b){const _0x6dab10=_0x328221;logger[_0x6dab10('0x11')](JSON[_0x6dab10('0x8')](_0xa7c55b));});});},Migration[_0x25f4a4('0xd')]['query']=function(_0x278d43){const _0x543faa=_0x25f4a4,_0x3e781d=this;this['sequence'][_0x543faa('0x4')](function(){const _0x23c269=_0x543faa;return _0x3e781d['queryInterface'][_0x23c269('0x5')]['query'](_0x278d43)[_0x23c269('0x18')](function(){const _0x5cfec7=_0x23c269;logger[_0x5cfec7('0x11')](_0x5cfec7('0xc'),_0x278d43);})[_0x23c269('0x12')](function(_0x99c537){const _0x422566=_0x23c269;logger[_0x422566('0x11')](JSON[_0x422566('0x8')](_0x99c537));});});},Migration['prototype']['removeColumn']=function(_0x4e0e9d,_0x1ca545){const _0x390de9=_0x25f4a4,_0x30888c=this;this[_0x390de9('0x3')][_0x390de9('0x4')](function(){const _0x4e9bb9=_0x390de9;return _0x30888c[_0x4e9bb9('0x1b')][_0x4e9bb9('0x0')](_0x4e0e9d,_0x1ca545)[_0x4e9bb9('0x18')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x1ca545,_0x4e0e9d);})['catch'](function(_0x3f30a0){const _0x4a318b=_0x4e9bb9;logger[_0x4a318b('0x11')](util[_0x4a318b('0x1a')](_0x3f30a0,{'showHidden':![],'depth':null}));});});},Migration[_0x25f4a4('0xd')][_0x25f4a4('0x7')]=function(_0x20304a,_0xdbbcfa,_0x38bcbf){const _0x34b405=_0x25f4a4,_0x2840a7=this;this[_0x34b405('0x3')]['enqueue'](function(){const _0x53b017=_0x34b405;return _0x2840a7[_0x53b017('0x1b')][_0x53b017('0x7')](_0x20304a,_0xdbbcfa,_0x38bcbf)[_0x53b017('0x18')](function(){const _0x17a71d=_0x53b017;logger['info'](_0x17a71d('0x2'),_0xdbbcfa,_0x38bcbf,_0x20304a);})[_0x53b017('0x12')](function(_0x3ab0bc){const _0x48a3f8=_0x53b017;logger[_0x48a3f8('0x11')](util[_0x48a3f8('0x1a')](_0x3ab0bc,{'showHidden':![],'depth':null}));});});},Migration[_0x25f4a4('0xd')][_0x25f4a4('0x14')]=function(_0x526f81){const _0x32d5be=_0x25f4a4;this[_0x32d5be('0x3')][_0x32d5be('0x4')](function(){return _0x526f81();});},module[_0x25f4a4('0xb')]={'up':function(_0xcb409b){return new Promise(function(_0x34b524){const _0xa17b47=new Migration(_0xcb409b);_0xa17b47['final'](_0x34b524);});},'down':function(){}};
\ No newline at end of file