Built motion from commit 5fcd269f5146f10cf3129722d518881dfac64576. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.95.js
1 const a986_0x2e23=['dropTable','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','then','util','addIndex','Removed\x20column\x20%s\x20from\x20%s','query','addIndex\x20%s\x20%s\x20%s','tail','exports','queryInterface','stringify','sequence','catch','changeColumn','prototype','join','sequelize','addColumn','final','Added\x20column\x20%s\x20to\x20%s','query\x20%s','renameColumn','finally','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','migration'];(function(_0x395341,_0x2e23d4){const _0x1c3dc6=function(_0x2b58ca){while(--_0x2b58ca){_0x395341['push'](_0x395341['shift']());}};_0x1c3dc6(++_0x2e23d4);}(a986_0x2e23,0x10f));const a986_0x1c3d=function(_0x395341,_0x2e23d4){_0x395341=_0x395341-0x0;let _0x1c3dc6=a986_0x2e23[_0x395341];return _0x1c3dc6;};const _0x3a1c28=a986_0x1c3d;'use strict';const util=require(_0x3a1c28('0x18')),logger=require('../config/logger')(_0x3a1c28('0x12')),Sequence=function(){};Sequence[_0x3a1c28('0x7')][_0x3a1c28('0x14')]=function(_0x2b58ca){const _0x1baab4=_0x3a1c28;this[_0x1baab4('0x0')]=this[_0x1baab4('0x0')]?this[_0x1baab4('0x0')][_0x1baab4('0xf')](_0x2b58ca):_0x2b58ca();};const Migration=function(_0x3bca37){const _0x3a3510=_0x3a1c28;this[_0x3a3510('0x2')]=_0x3bca37,this[_0x3a3510('0x4')]=new Sequence();};Migration[_0x3a1c28('0x7')]['changeColumn']=function(_0x43a6bd,_0x185297,_0x1c33f6){const _0x1477ea=_0x3a1c28,_0xb2bccc=this;this[_0x1477ea('0x4')][_0x1477ea('0x14')](function(){const _0x16a149=_0x1477ea;return _0xb2bccc[_0x16a149('0x2')][_0x16a149('0x6')](_0x43a6bd,_0x185297,_0x1c33f6)[_0x16a149('0x17')](function(){const _0x4fb8c9=_0x16a149;logger['info'](_0x4fb8c9('0x15'),_0x185297,_0x43a6bd);})[_0x16a149('0x5')](function(_0x570287){const _0x5adb62=_0x16a149;logger[_0x5adb62('0x11')](JSON[_0x5adb62('0x3')](_0x570287));});});},Migration[_0x3a1c28('0x7')][_0x3a1c28('0xa')]=function(_0x25f886,_0x5600b1,_0x4b6966){const _0x43102d=_0x3a1c28,_0x142b03=this;this[_0x43102d('0x4')][_0x43102d('0x14')](function(){const _0x5804c2=_0x43102d;return _0x142b03[_0x5804c2('0x2')][_0x5804c2('0xa')](_0x25f886,_0x5600b1,_0x4b6966)[_0x5804c2('0x17')](function(){const _0x2f63fa=_0x5804c2;logger[_0x2f63fa('0x11')](_0x2f63fa('0xc'),_0x5600b1,_0x25f886);})['catch'](function(_0x18a341){const _0x4ae425=_0x5804c2;logger[_0x4ae425('0x11')](JSON[_0x4ae425('0x3')](_0x18a341));});});},Migration[_0x3a1c28('0x7')][_0x3a1c28('0x13')]=function(_0x172617){const _0x51e123=_0x3a1c28,_0x367dfe=this;this['sequence'][_0x51e123('0x14')](function(){const _0x27ce2f=_0x51e123;return _0x367dfe[_0x27ce2f('0x2')]['dropTable'](_0x172617,{'force':!![]})[_0x27ce2f('0x17')](function(){const _0x380a3a=_0x27ce2f;logger[_0x380a3a('0x11')]('table\x20dropped\x20%s',_0x172617);})[_0x27ce2f('0x5')](function(_0x4d8584){const _0x5ac735=_0x27ce2f;logger[_0x5ac735('0x11')](JSON[_0x5ac735('0x3')](_0x4d8584));});});},Migration['prototype'][_0x3a1c28('0x19')]=function(_0x393ac3,_0x58ed5d,_0x5ed844){const _0x36bf18=_0x3a1c28,_0x32bb79=this;this[_0x36bf18('0x4')][_0x36bf18('0x14')](function(){const _0x3b7812=_0x36bf18;return _0x32bb79['queryInterface'][_0x3b7812('0x19')](_0x393ac3,_0x58ed5d,{'indexName':_0x5ed844})['then'](function(){const _0x96a003=_0x3b7812;logger[_0x96a003('0x11')](_0x96a003('0x1c'),_0x393ac3,_0x58ed5d[_0x96a003('0x8')](','),_0x5ed844);})['catch'](function(_0x4c3436){const _0x11863e=_0x3b7812;logger[_0x11863e('0x11')](JSON[_0x11863e('0x3')](_0x4c3436));});});},Migration[_0x3a1c28('0x7')]['removeIndex']=function(_0x3e56f2,_0x498768){const _0x1c3b12=_0x3a1c28,_0x7a816e=this;this[_0x1c3b12('0x4')]['enqueue'](function(){const _0x5e0676=_0x1c3b12;return _0x7a816e[_0x5e0676('0x2')]['removeIndex'](_0x3e56f2,_0x498768)[_0x5e0676('0x17')](function(){const _0x33f9e8=_0x5e0676;logger[_0x33f9e8('0x11')]('removeIndex\x20%s\x20%s',_0x3e56f2,_0x498768);})[_0x5e0676('0x5')](function(_0x286e08){const _0x348b35=_0x5e0676;logger[_0x348b35('0x11')](JSON[_0x348b35('0x3')](_0x286e08));});});},Migration[_0x3a1c28('0x7')][_0x3a1c28('0x1b')]=function(_0x4b0cdd){const _0x59164c=_0x3a1c28,_0x357af2=this;this[_0x59164c('0x4')]['enqueue'](function(){const _0x5738e5=_0x59164c;return _0x357af2[_0x5738e5('0x2')][_0x5738e5('0x9')]['query'](_0x4b0cdd)[_0x5738e5('0x17')](function(){const _0xa770c9=_0x5738e5;logger[_0xa770c9('0x11')](_0xa770c9('0xd'),_0x4b0cdd);})['catch'](function(_0x4a5864){const _0x697d26=_0x5738e5;logger['info'](JSON[_0x697d26('0x3')](_0x4a5864));});});},Migration[_0x3a1c28('0x7')]['removeColumn']=function(_0x1341f2,_0x19a7c8){const _0x1cda21=_0x3a1c28,_0x3eb4ad=this;this[_0x1cda21('0x4')][_0x1cda21('0x14')](function(){const _0x275526=_0x1cda21;return _0x3eb4ad[_0x275526('0x2')]['removeColumn'](_0x1341f2,_0x19a7c8)[_0x275526('0x17')](function(){const _0x523239=_0x275526;logger[_0x523239('0x11')](_0x523239('0x1a'),_0x19a7c8,_0x1341f2);})['catch'](function(_0x529e53){const _0xd5dcbb=_0x275526;logger[_0xd5dcbb('0x11')](util[_0xd5dcbb('0x16')](_0x529e53,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3a1c28('0xe')]=function(_0x19eb33,_0x3ddcaa,_0x2a88ad){const _0x1109e1=_0x3a1c28,_0x48b328=this;this[_0x1109e1('0x4')][_0x1109e1('0x14')](function(){const _0x10a44c=_0x1109e1;return _0x48b328[_0x10a44c('0x2')]['renameColumn'](_0x19eb33,_0x3ddcaa,_0x2a88ad)[_0x10a44c('0x17')](function(){const _0x3857a9=_0x10a44c;logger[_0x3857a9('0x11')](_0x3857a9('0x10'),_0x3ddcaa,_0x2a88ad,_0x19eb33);})[_0x10a44c('0x5')](function(_0x14aef8){const _0x57e98e=_0x10a44c;logger[_0x57e98e('0x11')](util[_0x57e98e('0x16')](_0x14aef8,{'showHidden':![],'depth':null}));});});},Migration[_0x3a1c28('0x7')][_0x3a1c28('0xb')]=function(_0x287e27){const _0xa94899=_0x3a1c28;this['sequence'][_0xa94899('0x14')](function(){return _0x287e27();});},module[_0x3a1c28('0x1')]={'up':function(_0x4c53ab){return new Promise(function(_0x18b49d){const _0x5193f1=a986_0x1c3d,_0x21315f=new Migration(_0x4c53ab);_0x21315f[_0x5193f1('0xb')](_0x18b49d);});},'down':function(){}};