Built motion from commit 459747fdfe53bbf13fbede61eeaffea1f1438f86. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.17.js
index 31e7a15..6b53d3d 100644 (file)
@@ -1 +1 @@
-const a1000_0x3da2=['indicesType','prototype','sequelize','query','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence','migration','catch','inspect','queryInterface','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s','join','changeColumn','query\x20%s','addColumn','final','enqueue','exports','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','table\x20dropped\x20%s','info','then','indexName','addIndex','stringify','tail','addIndex\x20%s\x20%s\x20%s\x20[%s]','util','renameColumn','removeIndex'];(function(_0x3871d3,_0x3da279){const _0x5ceb6c=function(_0x57134d){while(--_0x57134d){_0x3871d3['push'](_0x3871d3['shift']());}};_0x5ceb6c(++_0x3da279);}(a1000_0x3da2,0x9e));const a1000_0x5ceb=function(_0x3871d3,_0x3da279){_0x3871d3=_0x3871d3-0x0;let _0x5ceb6c=a1000_0x3da2[_0x3871d3];return _0x5ceb6c;};const _0x502c0a=a1000_0x5ceb;'use strict';const util=require(_0x502c0a('0x4')),logger=require('../config/logger')(_0x502c0a('0xd')),Sequence=function(){};Sequence[_0x502c0a('0x8')][_0x502c0a('0x18')]=function(_0x57134d){const _0x195256=_0x502c0a;this['tail']=this['tail']?this[_0x195256('0x2')]['finally'](_0x57134d):_0x57134d();};const Migration=function(_0x3efa81){const _0x187862=_0x502c0a;this[_0x187862('0x10')]=_0x3efa81,this[_0x187862('0xc')]=new Sequence();};Migration[_0x502c0a('0x8')][_0x502c0a('0x14')]=function(_0x5e508c,_0x3e9cb3,_0x23c6fc){const _0x3e58c3=_0x502c0a,_0x4580b8=this;this[_0x3e58c3('0xc')][_0x3e58c3('0x18')](function(){const _0xf12546=_0x3e58c3;return _0x4580b8[_0xf12546('0x10')][_0xf12546('0x14')](_0x5e508c,_0x3e9cb3,_0x23c6fc)['then'](function(){const _0x530b83=_0xf12546;logger['info'](_0x530b83('0xb'),_0x3e9cb3,_0x5e508c);})[_0xf12546('0xe')](function(_0x4ea19a){const _0x2a9d1b=_0xf12546;logger[_0x2a9d1b('0x1e')](JSON[_0x2a9d1b('0x1')](_0x4ea19a));});});},Migration[_0x502c0a('0x8')][_0x502c0a('0x16')]=function(_0x6cb30c,_0x22dba7,_0x3634ea){const _0xd950fa=this;this['sequence']['enqueue'](function(){const _0x31e7ea=a1000_0x5ceb;return _0xd950fa['queryInterface'][_0x31e7ea('0x16')](_0x6cb30c,_0x22dba7,_0x3634ea)['then'](function(){const _0x5103fa=_0x31e7ea;logger[_0x5103fa('0x1e')](_0x5103fa('0x1a'),_0x22dba7,_0x6cb30c);})[_0x31e7ea('0xe')](function(_0x112c71){logger['info'](JSON['stringify'](_0x112c71));});});},Migration[_0x502c0a('0x8')][_0x502c0a('0x1c')]=function(_0x169bfc){const _0x387dae=_0x502c0a,_0x4ed14b=this;this[_0x387dae('0xc')][_0x387dae('0x18')](function(){const _0x1eca79=_0x387dae;return _0x4ed14b[_0x1eca79('0x10')][_0x1eca79('0x1c')](_0x169bfc,{'force':!![]})[_0x1eca79('0x1f')](function(){const _0x477d98=_0x1eca79;logger['info'](_0x477d98('0x1d'),_0x169bfc);})['catch'](function(_0x325735){const _0x56f68b=_0x1eca79;logger[_0x56f68b('0x1e')](JSON[_0x56f68b('0x1')](_0x325735));});});},Migration[_0x502c0a('0x8')][_0x502c0a('0x0')]=function(_0x34a9d9,_0x601c8a,_0x51bbe2){const _0x15eeda=_0x502c0a,_0x4431bf=this;this['sequence'][_0x15eeda('0x18')](function(){const _0x168278=_0x15eeda;return _0x4431bf[_0x168278('0x10')][_0x168278('0x0')](_0x34a9d9,_0x601c8a,{'indexName':_0x51bbe2['indexName'],'indicesType':_0x51bbe2[_0x168278('0x7')]})[_0x168278('0x1f')](function(){const _0x23ec13=_0x168278;logger[_0x23ec13('0x1e')](_0x23ec13('0x3'),_0x34a9d9,_0x601c8a[_0x23ec13('0x13')](','),_0x51bbe2[_0x23ec13('0x20')],_0x51bbe2[_0x23ec13('0x7')]);})['catch'](function(_0x53febb){const _0x16bd8c=_0x168278;logger[_0x16bd8c('0x1e')](JSON[_0x16bd8c('0x1')](_0x53febb));});});},Migration[_0x502c0a('0x8')]['removeIndex']=function(_0x1b6c07,_0x1cfd98){const _0xb2f545=_0x502c0a,_0x4fc9bc=this;this[_0xb2f545('0xc')][_0xb2f545('0x18')](function(){const _0x3aa479=_0xb2f545;return _0x4fc9bc[_0x3aa479('0x10')][_0x3aa479('0x6')](_0x1b6c07,_0x1cfd98)['then'](function(){const _0x5a8dd5=_0x3aa479;logger['info'](_0x5a8dd5('0x12'),_0x1b6c07,_0x1cfd98);})['catch'](function(_0x39be1a){const _0x4ecc42=_0x3aa479;logger[_0x4ecc42('0x1e')](JSON[_0x4ecc42('0x1')](_0x39be1a));});});},Migration['prototype'][_0x502c0a('0xa')]=function(_0x2ab3aa){const _0xf06d13=_0x502c0a,_0x19998a=this;this[_0xf06d13('0xc')]['enqueue'](function(){const _0x534d9a=_0xf06d13;return _0x19998a[_0x534d9a('0x10')][_0x534d9a('0x9')]['query'](_0x2ab3aa)[_0x534d9a('0x1f')](function(){const _0x53333b=_0x534d9a;logger[_0x53333b('0x1e')](_0x53333b('0x15'),_0x2ab3aa);})[_0x534d9a('0xe')](function(_0x326c12){const _0xff7873=_0x534d9a;logger['info'](JSON[_0xff7873('0x1')](_0x326c12));});});},Migration[_0x502c0a('0x8')]['removeColumn']=function(_0x2ed8cf,_0x4fd128){const _0x29e6e0=_0x502c0a,_0x194601=this;this['sequence'][_0x29e6e0('0x18')](function(){const _0x4b459e=_0x29e6e0;return _0x194601[_0x4b459e('0x10')]['removeColumn'](_0x2ed8cf,_0x4fd128)['then'](function(){const _0x4629c6=_0x4b459e;logger[_0x4629c6('0x1e')](_0x4629c6('0x11'),_0x4fd128,_0x2ed8cf);})['catch'](function(_0x52db19){const _0x5e78e4=_0x4b459e;logger[_0x5e78e4('0x1e')](util[_0x5e78e4('0xf')](_0x52db19,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x502c0a('0x5')]=function(_0xb4d3a6,_0x124f39,_0x44a75d){const _0x514eae=_0x502c0a,_0x3a8c23=this;this[_0x514eae('0xc')]['enqueue'](function(){const _0x1fd3e6=_0x514eae;return _0x3a8c23['queryInterface']['renameColumn'](_0xb4d3a6,_0x124f39,_0x44a75d)[_0x1fd3e6('0x1f')](function(){const _0x3135b3=_0x1fd3e6;logger[_0x3135b3('0x1e')](_0x3135b3('0x1b'),_0x124f39,_0x44a75d,_0xb4d3a6);})['catch'](function(_0x47a36f){const _0x47822c=_0x1fd3e6;logger['info'](util[_0x47822c('0xf')](_0x47a36f,{'showHidden':![],'depth':null}));});});},Migration[_0x502c0a('0x8')]['final']=function(_0x1a21a6){const _0x2e1c2d=_0x502c0a;this[_0x2e1c2d('0xc')][_0x2e1c2d('0x18')](function(){return _0x1a21a6();});},module[_0x502c0a('0x19')]={'up':function(_0x405dca){return new Promise(function(_0x20de97){const _0x33969c=a1000_0x5ceb,_0x30c2ae=new Migration(_0x405dca);_0x30c2ae[_0x33969c('0x17')](_0x20de97);});},'down':function(){}};
\ No newline at end of file
+const a1000_0x1639=['indexName','enqueue','changeColumn','migration','prototype','finally','then','query\x20%s','catch','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','exports','sequelize','indicesType','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','removeIndex','addColumn','queryInterface','sequence','renameColumn','Removed\x20column\x20%s\x20from\x20%s','info','dropTable','table\x20dropped\x20%s','stringify','addIndex','final','util','tail','query'];(function(_0x4bae5,_0x163980){const _0x4af7e6=function(_0x52fb68){while(--_0x52fb68){_0x4bae5['push'](_0x4bae5['shift']());}};_0x4af7e6(++_0x163980);}(a1000_0x1639,0x100));const a1000_0x4af7=function(_0x4bae5,_0x163980){_0x4bae5=_0x4bae5-0x0;let _0x4af7e6=a1000_0x1639[_0x4bae5];return _0x4af7e6;};const _0x4344c6=a1000_0x4af7;'use strict';const util=require(_0x4344c6('0x1d')),logger=require('../config/logger')(_0x4344c6('0x3')),Sequence=function(){};Sequence[_0x4344c6('0x4')]['enqueue']=function(_0x52fb68){const _0x461016=_0x4344c6;this[_0x461016('0x1e')]=this[_0x461016('0x1e')]?this['tail'][_0x461016('0x5')](_0x52fb68):_0x52fb68();};const Migration=function(_0x15d4fc){const _0x223f06=_0x4344c6;this[_0x223f06('0x13')]=_0x15d4fc,this[_0x223f06('0x14')]=new Sequence();};Migration['prototype'][_0x4344c6('0x2')]=function(_0x1cc10b,_0x265d29,_0x390753){const _0x2c67cb=_0x4344c6,_0x288c3b=this;this[_0x2c67cb('0x14')]['enqueue'](function(){const _0x4d4a93=_0x2c67cb;return _0x288c3b[_0x4d4a93('0x13')][_0x4d4a93('0x2')](_0x1cc10b,_0x265d29,_0x390753)[_0x4d4a93('0x6')](function(){const _0x179159=_0x4d4a93;logger[_0x179159('0x17')](_0x179159('0xf'),_0x265d29,_0x1cc10b);})[_0x4d4a93('0x8')](function(_0x1a6873){const _0x5d4636=_0x4d4a93;logger[_0x5d4636('0x17')](JSON['stringify'](_0x1a6873));});});},Migration[_0x4344c6('0x4')][_0x4344c6('0x12')]=function(_0x522ef2,_0x409eba,_0x309116){const _0x1d6cf6=this;this['sequence']['enqueue'](function(){const _0x246b29=a1000_0x4af7;return _0x1d6cf6['queryInterface'][_0x246b29('0x12')](_0x522ef2,_0x409eba,_0x309116)[_0x246b29('0x6')](function(){const _0x4dd285=_0x246b29;logger[_0x4dd285('0x17')]('Added\x20column\x20%s\x20to\x20%s',_0x409eba,_0x522ef2);})['catch'](function(_0x1871b2){const _0x4e5d87=_0x246b29;logger[_0x4e5d87('0x17')](JSON[_0x4e5d87('0x1a')](_0x1871b2));});});},Migration[_0x4344c6('0x4')][_0x4344c6('0x18')]=function(_0x4a7a4e){const _0x277320=_0x4344c6,_0x54782d=this;this[_0x277320('0x14')][_0x277320('0x1')](function(){const _0x7f0bb2=_0x277320;return _0x54782d[_0x7f0bb2('0x13')][_0x7f0bb2('0x18')](_0x4a7a4e,{'force':!![]})[_0x7f0bb2('0x6')](function(){const _0xe44bc1=_0x7f0bb2;logger[_0xe44bc1('0x17')](_0xe44bc1('0x19'),_0x4a7a4e);})['catch'](function(_0x2c167a){const _0x2bbd4c=_0x7f0bb2;logger[_0x2bbd4c('0x17')](JSON['stringify'](_0x2c167a));});});},Migration[_0x4344c6('0x4')][_0x4344c6('0x1b')]=function(_0x233cb5,_0x3ae19d,_0x51428c){const _0x38ea0b=_0x4344c6,_0x28422a=this;this[_0x38ea0b('0x14')]['enqueue'](function(){const _0x50ca1b=_0x38ea0b;return _0x28422a[_0x50ca1b('0x13')][_0x50ca1b('0x1b')](_0x233cb5,_0x3ae19d,{'indexName':_0x51428c[_0x50ca1b('0x0')],'indicesType':_0x51428c['indicesType']})[_0x50ca1b('0x6')](function(){const _0x52e933=_0x50ca1b;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x233cb5,_0x3ae19d[_0x52e933('0xa')](','),_0x51428c[_0x52e933('0x0')],_0x51428c[_0x52e933('0xd')]);})[_0x50ca1b('0x8')](function(_0x4f1298){const _0x2e7d2e=_0x50ca1b;logger[_0x2e7d2e('0x17')](JSON['stringify'](_0x4f1298));});});},Migration['prototype'][_0x4344c6('0x11')]=function(_0x3330db,_0x5eda10){const _0x5985a7=_0x4344c6,_0x34f1b4=this;this[_0x5985a7('0x14')][_0x5985a7('0x1')](function(){const _0x598476=_0x5985a7;return _0x34f1b4[_0x598476('0x13')][_0x598476('0x11')](_0x3330db,_0x5eda10)[_0x598476('0x6')](function(){const _0x143834=_0x598476;logger[_0x143834('0x17')]('removeIndex\x20%s\x20%s',_0x3330db,_0x5eda10);})[_0x598476('0x8')](function(_0x225697){const _0x5ef23f=_0x598476;logger['info'](JSON[_0x5ef23f('0x1a')](_0x225697));});});},Migration['prototype']['query']=function(_0xdec360){const _0x1254a6=_0x4344c6,_0x238d4e=this;this[_0x1254a6('0x14')][_0x1254a6('0x1')](function(){const _0x1c6c67=_0x1254a6;return _0x238d4e[_0x1c6c67('0x13')][_0x1c6c67('0xc')][_0x1c6c67('0x1f')](_0xdec360)[_0x1c6c67('0x6')](function(){const _0x5156f6=_0x1c6c67;logger[_0x5156f6('0x17')](_0x5156f6('0x7'),_0xdec360);})[_0x1c6c67('0x8')](function(_0x459443){const _0x279e1e=_0x1c6c67;logger['info'](JSON[_0x279e1e('0x1a')](_0x459443));});});},Migration['prototype'][_0x4344c6('0x10')]=function(_0x204c8e,_0x409602){const _0x3648cb=_0x4344c6,_0x4d5c31=this;this[_0x3648cb('0x14')]['enqueue'](function(){const _0x44d5d8=_0x3648cb;return _0x4d5c31[_0x44d5d8('0x13')]['removeColumn'](_0x204c8e,_0x409602)[_0x44d5d8('0x6')](function(){const _0x51dd15=_0x44d5d8;logger[_0x51dd15('0x17')](_0x51dd15('0x16'),_0x409602,_0x204c8e);})[_0x44d5d8('0x8')](function(_0x1cbb4a){const _0x1b63e8=_0x44d5d8;logger[_0x1b63e8('0x17')](util[_0x1b63e8('0xe')](_0x1cbb4a,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4344c6('0x15')]=function(_0x5d54b6,_0x292124,_0x2e03ec){const _0x5202d1=_0x4344c6,_0x317aa9=this;this[_0x5202d1('0x14')][_0x5202d1('0x1')](function(){const _0x28f785=_0x5202d1;return _0x317aa9['queryInterface'][_0x28f785('0x15')](_0x5d54b6,_0x292124,_0x2e03ec)[_0x28f785('0x6')](function(){const _0xa2475d=_0x28f785;logger[_0xa2475d('0x17')](_0xa2475d('0x9'),_0x292124,_0x2e03ec,_0x5d54b6);})[_0x28f785('0x8')](function(_0x34053a){const _0x240eee=_0x28f785;logger[_0x240eee('0x17')](util['inspect'](_0x34053a,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4344c6('0x1c')]=function(_0x2aa7ef){const _0x50baea=_0x4344c6;this['sequence'][_0x50baea('0x1')](function(){return _0x2aa7ef();});},module[_0x4344c6('0xb')]={'up':function(_0xc3f577){return new Promise(function(_0x342128){const _0x489ddb=a1000_0x4af7,_0x28eaaa=new Migration(_0xc3f577);_0x28eaaa[_0x489ddb('0x1c')](_0x342128);});},'down':function(){}};
\ No newline at end of file