Built motion from commit e493b9a4954b50a8ee6d0034ba3601cd210d989d. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.84.js
1 'use strict';const a1132_0x27b9=['query','then','removeIndex','1sAJNRS','Changed\x20column\x20%s\x20in\x20table\x20%s','3400VpezRd','39175JRmcSI','inspect','prototype','catch','Removed\x20column\x20%s\x20from\x20%s','migration','changeColumn','addColumn','733VRjXVI','sequelize','table\x20dropped\x20%s','final','query\x20%s','8zrwsnE','removeColumn','25CrCvfK','stringify','5TzVtmf','queryInterface','resolve','renameColumn','util','removeIndex\x20%s\x20%s','finally','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','101809dBfJrs','339701FGyNoN','1801gBALiT','addIndex','addIndex\x20%s\x20%s\x20%s','1nLUmZI','106786sFaOjl','dropTable','tail','sequence','382829AAUYNj','info','enqueue'];const a1132_0x163d=function(_0x425795,_0x1c9382){_0x425795=_0x425795-0xc2;let _0x27b9f2=a1132_0x27b9[_0x425795];return _0x27b9f2;};const a1132_0x16a831=a1132_0x163d;(function(_0x13c1c4,_0x3fde68){const _0x191894=a1132_0x163d;while(!![]){try{const _0x1c8f04=parseInt(_0x191894(0xe8))+parseInt(_0x191894(0xc4))*-parseInt(_0x191894(0xd4))+-parseInt(_0x191894(0xc2))*-parseInt(_0x191894(0xe4))+-parseInt(_0x191894(0xc5))*-parseInt(_0x191894(0xd6))+-parseInt(_0x191894(0xdf))*-parseInt(_0x191894(0xe3))+-parseInt(_0x191894(0xd2))*-parseInt(_0x191894(0xde))+-parseInt(_0x191894(0xe0))*parseInt(_0x191894(0xcd));if(_0x1c8f04===_0x3fde68)break;else _0x13c1c4['push'](_0x13c1c4['shift']());}catch(_0x5cf12f){_0x13c1c4['push'](_0x13c1c4['shift']());}}}(a1132_0x27b9,0x6a162));const util=require(a1132_0x16a831(0xda)),logger=require('@config/logger')(a1132_0x16a831(0xca)),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x28b553){const _0x4f33fc=a1132_0x16a831;this[_0x4f33fc(0xe6)]=this['tail']?this[_0x4f33fc(0xe6)][_0x4f33fc(0xdc)](_0x28b553):_0x28b553();};const Migration=function(_0x3e709c){const _0x40c4f2=a1132_0x16a831;this['queryInterface']=_0x3e709c,this[_0x40c4f2(0xe7)]=new Sequence();};Migration['prototype'][a1132_0x16a831(0xcb)]=function(_0x1de8e0,_0x207b70,_0x30be6f){const _0xb1102c=a1132_0x16a831,_0x183ed9=this;this['sequence'][_0xb1102c(0xea)](function(){const _0x160f17=_0xb1102c;return _0x183ed9['queryInterface'][_0x160f17(0xcb)](_0x1de8e0,_0x207b70,_0x30be6f)[_0x160f17(0xec)](function(){const _0x147154=_0x160f17;logger[_0x147154(0xe9)](_0x147154(0xc3),_0x207b70,_0x1de8e0);})[_0x160f17(0xc8)](function(_0x59c995){const _0x539581=_0x160f17;logger['info'](JSON[_0x539581(0xd5)](_0x59c995));});});},Migration[a1132_0x16a831(0xc7)][a1132_0x16a831(0xcc)]=function(_0x1e7e1a,_0x251d6e,_0x278d1d){const _0x5b05ba=a1132_0x16a831,_0x4b04d5=this;this[_0x5b05ba(0xe7)][_0x5b05ba(0xea)](function(){const _0x425975=_0x5b05ba;return _0x4b04d5[_0x425975(0xd7)][_0x425975(0xcc)](_0x1e7e1a,_0x251d6e,_0x278d1d)['then'](function(){const _0x110561=_0x425975;logger[_0x110561(0xe9)]('Added\x20column\x20%s\x20to\x20%s',_0x251d6e,_0x1e7e1a);})[_0x425975(0xc8)](function(_0x4777da){const _0x56c477=_0x425975;logger[_0x56c477(0xe9)](JSON['stringify'](_0x4777da));});});},Migration['prototype']['dropTable']=function(_0x339a24){const _0x4460f8=a1132_0x16a831,_0x29e833=this;this[_0x4460f8(0xe7)][_0x4460f8(0xea)](function(){const _0x105900=_0x4460f8;return _0x29e833[_0x105900(0xd7)][_0x105900(0xe5)](_0x339a24,{'force':!![]})[_0x105900(0xec)](function(){const _0x267d94=_0x105900;logger[_0x267d94(0xe9)](_0x267d94(0xcf),_0x339a24);})[_0x105900(0xc8)](function(_0x82a840){const _0x4b8ac1=_0x105900;logger['info'](JSON[_0x4b8ac1(0xd5)](_0x82a840));});});},Migration[a1132_0x16a831(0xc7)][a1132_0x16a831(0xe1)]=function(_0x368a9f,_0x496cc9,_0x2ccc6b){const _0xfbc093=a1132_0x16a831,_0x28d9db=this;this[_0xfbc093(0xe7)][_0xfbc093(0xea)](function(){const _0x50d986=_0xfbc093;return _0x28d9db[_0x50d986(0xd7)]['addIndex'](_0x368a9f,_0x496cc9,{'indexName':_0x2ccc6b})[_0x50d986(0xec)](function(){const _0x7a25a3=_0x50d986;logger[_0x7a25a3(0xe9)](_0x7a25a3(0xe2),_0x368a9f,_0x496cc9['join'](','),_0x2ccc6b);})[_0x50d986(0xc8)](function(_0x299c9b){const _0x2221f7=_0x50d986;logger[_0x2221f7(0xe9)](JSON[_0x2221f7(0xd5)](_0x299c9b));});});},Migration[a1132_0x16a831(0xc7)][a1132_0x16a831(0xed)]=function(_0x4062a1,_0x4deae7){const _0x37b090=a1132_0x16a831,_0x1d8f58=this;this[_0x37b090(0xe7)][_0x37b090(0xea)](function(){const _0x35246c=_0x37b090;return _0x1d8f58[_0x35246c(0xd7)]['removeIndex'](_0x4062a1,_0x4deae7)['then'](function(){const _0x2681ce=_0x35246c;logger[_0x2681ce(0xe9)](_0x2681ce(0xdb),_0x4062a1,_0x4deae7);})[_0x35246c(0xc8)](function(_0x39477b){const _0x3864ef=_0x35246c;logger[_0x3864ef(0xe9)](JSON[_0x3864ef(0xd5)](_0x39477b));});});},Migration[a1132_0x16a831(0xc7)][a1132_0x16a831(0xeb)]=function(_0x2d27cd){const _0xcd349=a1132_0x16a831,_0x4f4fd5=this;this[_0xcd349(0xe7)][_0xcd349(0xea)](function(){const _0xd0e474=_0xcd349;return _0x4f4fd5[_0xd0e474(0xd7)][_0xd0e474(0xce)][_0xd0e474(0xeb)](_0x2d27cd)[_0xd0e474(0xec)](function(){const _0x249c4b=_0xd0e474;logger[_0x249c4b(0xe9)](_0x249c4b(0xd1),_0x2d27cd);})[_0xd0e474(0xc8)](function(_0x533dee){const _0x141709=_0xd0e474;logger[_0x141709(0xe9)](JSON[_0x141709(0xd5)](_0x533dee));});});},Migration['prototype'][a1132_0x16a831(0xd3)]=function(_0x8f02db,_0x223c75){const _0x4394f4=a1132_0x16a831,_0x1dad85=this;this[_0x4394f4(0xe7)][_0x4394f4(0xea)](function(){const _0x591f84=_0x4394f4;return _0x1dad85[_0x591f84(0xd7)][_0x591f84(0xd3)](_0x8f02db,_0x223c75)[_0x591f84(0xec)](function(){const _0x19750d=_0x591f84;logger['info'](_0x19750d(0xc9),_0x223c75,_0x8f02db);})['catch'](function(_0x5e3eda){const _0x3715f4=_0x591f84;logger[_0x3715f4(0xe9)](util['inspect'](_0x5e3eda,{'showHidden':![],'depth':null}));});});},Migration[a1132_0x16a831(0xc7)][a1132_0x16a831(0xd9)]=function(_0x3ec60c,_0x52028e,_0x57799c){const _0xe58cad=a1132_0x16a831,_0x1a1bd8=this;this[_0xe58cad(0xe7)][_0xe58cad(0xea)](function(){const _0x48e8d9=_0xe58cad;return _0x1a1bd8[_0x48e8d9(0xd7)][_0x48e8d9(0xd9)](_0x3ec60c,_0x52028e,_0x57799c)[_0x48e8d9(0xec)](function(){const _0x5b03bf=_0x48e8d9;logger['info'](_0x5b03bf(0xdd),_0x52028e,_0x57799c,_0x3ec60c);})[_0x48e8d9(0xc8)](function(_0x1e6cb2){const _0x9517b5=_0x48e8d9;logger[_0x9517b5(0xe9)](util[_0x9517b5(0xc6)](_0x1e6cb2,{'showHidden':![],'depth':null}));});});},Migration[a1132_0x16a831(0xc7)]['final']=function(_0x5b2934){const _0x271d95=a1132_0x16a831;this[_0x271d95(0xe7)][_0x271d95(0xea)](function(){return _0x5b2934();});},module['exports']={'up':function(_0x5242e3){return new Promise(function(_0x5a2db0){const _0x555182=a1132_0x163d,_0x1d2544=new Migration(_0x5242e3);_0x1d2544[_0x555182(0xd0)](_0x5a2db0);});},'down':function(){const _0x1eb38e=a1132_0x16a831;return Promise[_0x1eb38e(0xd8)]();}};