Built motion from commit f861bcb808219e66da88ba48b61bddb35224a65e. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.1.js
1 'use strict';const a1164_0x2c95=['query\x20%s','catch','info','indexName','25721Mueswl','156351VKTIab','Added\x20column\x20%s\x20to\x20%s','resolve','renameColumn','prototype','removeIndex','join','changeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','427961ErJWoI','sequelize','addColumn','2isOiRv','264cnjTys','183689BdJyzb','addIndex','enqueue','exports','tail','util','queryInterface','indicesType','migration','dropTable','236fZMUfJ','table\x20dropped\x20%s','removeColumn','then','74749AiFZfW','1sAUBKg','stringify','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequence','removeIndex\x20%s\x20%s','query','inspect','Removed\x20column\x20%s\x20from\x20%s','89303GLtaoE','@config/logger'];const a1164_0x1bea=function(_0x2f0adf,_0x4f711b){_0x2f0adf=_0x2f0adf-0x103;let _0x2c9523=a1164_0x2c95[_0x2f0adf];return _0x2c9523;};const a1164_0x5d2c56=a1164_0x1bea;(function(_0x395865,_0x3f5aa3){const _0x132336=a1164_0x1bea;while(!![]){try{const _0x5a5b7f=parseInt(_0x132336(0x128))+-parseInt(_0x132336(0x103))+-parseInt(_0x132336(0x11f))+-parseInt(_0x132336(0x110))*-parseInt(_0x132336(0x11b))+-parseInt(_0x132336(0x111))+parseInt(_0x132336(0x10f))*-parseInt(_0x132336(0x12e))+-parseInt(_0x132336(0x120))*-parseInt(_0x132336(0x10c));if(_0x5a5b7f===_0x3f5aa3)break;else _0x395865['push'](_0x395865['shift']());}catch(_0x1f2b4d){_0x395865['push'](_0x395865['shift']());}}}(a1164_0x2c95,0x1bab9));const util=require(a1164_0x5d2c56(0x116)),logger=require(a1164_0x5d2c56(0x129))(a1164_0x5d2c56(0x119)),Sequence=function(){};Sequence[a1164_0x5d2c56(0x107)][a1164_0x5d2c56(0x113)]=function(_0x46972c){const _0x54f997=a1164_0x5d2c56;this[_0x54f997(0x115)]=this['tail']?this['tail']['finally'](_0x46972c):_0x46972c();};const Migration=function(_0x4da06f){const _0x35e511=a1164_0x5d2c56;this['queryInterface']=_0x4da06f,this[_0x35e511(0x123)]=new Sequence();};Migration[a1164_0x5d2c56(0x107)][a1164_0x5d2c56(0x10a)]=function(_0x5a7cb2,_0xb2c963,_0x49972c){const _0x44f424=a1164_0x5d2c56,_0x48a7fb=this;this[_0x44f424(0x123)][_0x44f424(0x113)](function(){const _0x21e36e=_0x44f424;return _0x48a7fb[_0x21e36e(0x117)][_0x21e36e(0x10a)](_0x5a7cb2,_0xb2c963,_0x49972c)[_0x21e36e(0x11e)](function(){const _0x1031df=_0x21e36e;logger['info'](_0x1031df(0x10b),_0xb2c963,_0x5a7cb2);})['catch'](function(_0x142e22){const _0x31adc2=_0x21e36e;logger[_0x31adc2(0x12c)](JSON['stringify'](_0x142e22));});});},Migration['prototype'][a1164_0x5d2c56(0x10e)]=function(_0x50f77e,_0x492e3b,_0x4defb9){const _0xff97a9=a1164_0x5d2c56,_0x1af817=this;this['sequence'][_0xff97a9(0x113)](function(){const _0x4aeb95=_0xff97a9;return _0x1af817['queryInterface']['addColumn'](_0x50f77e,_0x492e3b,_0x4defb9)[_0x4aeb95(0x11e)](function(){const _0x3f4dfe=_0x4aeb95;logger['info'](_0x3f4dfe(0x104),_0x492e3b,_0x50f77e);})['catch'](function(_0x2c7f8b){const _0x220e87=_0x4aeb95;logger[_0x220e87(0x12c)](JSON[_0x220e87(0x121)](_0x2c7f8b));});});},Migration[a1164_0x5d2c56(0x107)][a1164_0x5d2c56(0x11a)]=function(_0x370eae){const _0x430c85=a1164_0x5d2c56,_0x3220ba=this;this[_0x430c85(0x123)]['enqueue'](function(){const _0x2e8106=_0x430c85;return _0x3220ba[_0x2e8106(0x117)][_0x2e8106(0x11a)](_0x370eae,{'force':!![]})[_0x2e8106(0x11e)](function(){const _0x58e2f8=_0x2e8106;logger[_0x58e2f8(0x12c)](_0x58e2f8(0x11c),_0x370eae);})[_0x2e8106(0x12b)](function(_0x3cc7d5){const _0x4616f6=_0x2e8106;logger[_0x4616f6(0x12c)](JSON[_0x4616f6(0x121)](_0x3cc7d5));});});},Migration[a1164_0x5d2c56(0x107)][a1164_0x5d2c56(0x112)]=function(_0x3abf36,_0x1b1685,_0x59e148){const _0x599111=a1164_0x5d2c56,_0x4ff923=this;this[_0x599111(0x123)][_0x599111(0x113)](function(){const _0x481cf2=_0x599111;return _0x4ff923[_0x481cf2(0x117)]['addIndex'](_0x3abf36,_0x1b1685,{'indexName':_0x59e148[_0x481cf2(0x12d)],'indicesType':_0x59e148['indicesType']})['then'](function(){const _0x234cd7=_0x481cf2;logger[_0x234cd7(0x12c)](_0x234cd7(0x122),_0x3abf36,_0x1b1685[_0x234cd7(0x109)](','),_0x59e148[_0x234cd7(0x12d)],_0x59e148[_0x234cd7(0x118)]);})['catch'](function(_0x1dd485){const _0x5662b0=_0x481cf2;logger[_0x5662b0(0x12c)](JSON[_0x5662b0(0x121)](_0x1dd485));});});},Migration[a1164_0x5d2c56(0x107)][a1164_0x5d2c56(0x108)]=function(_0xbb5204,_0x34cdbd){const _0x3d5e09=a1164_0x5d2c56,_0x1d9a7a=this;this['sequence'][_0x3d5e09(0x113)](function(){const _0x5b3aad=_0x3d5e09;return _0x1d9a7a['queryInterface'][_0x5b3aad(0x108)](_0xbb5204,_0x34cdbd)[_0x5b3aad(0x11e)](function(){const _0x516bb3=_0x5b3aad;logger['info'](_0x516bb3(0x124),_0xbb5204,_0x34cdbd);})[_0x5b3aad(0x12b)](function(_0x509e39){const _0x1687fe=_0x5b3aad;logger['info'](JSON[_0x1687fe(0x121)](_0x509e39));});});},Migration[a1164_0x5d2c56(0x107)][a1164_0x5d2c56(0x125)]=function(_0x340899){const _0x4cb36e=a1164_0x5d2c56,_0x494edf=this;this[_0x4cb36e(0x123)][_0x4cb36e(0x113)](function(){const _0x4bef78=_0x4cb36e;return _0x494edf[_0x4bef78(0x117)][_0x4bef78(0x10d)][_0x4bef78(0x125)](_0x340899)[_0x4bef78(0x11e)](function(){const _0x407035=_0x4bef78;logger[_0x407035(0x12c)](_0x407035(0x12a),_0x340899);})[_0x4bef78(0x12b)](function(_0x364875){const _0x17a70c=_0x4bef78;logger[_0x17a70c(0x12c)](JSON[_0x17a70c(0x121)](_0x364875));});});},Migration['prototype'][a1164_0x5d2c56(0x11d)]=function(_0x44af70,_0x5093ae){const _0x22ef4a=a1164_0x5d2c56,_0x2b75a8=this;this[_0x22ef4a(0x123)][_0x22ef4a(0x113)](function(){const _0x3c4711=_0x22ef4a;return _0x2b75a8['queryInterface'][_0x3c4711(0x11d)](_0x44af70,_0x5093ae)[_0x3c4711(0x11e)](function(){const _0x32704c=_0x3c4711;logger[_0x32704c(0x12c)](_0x32704c(0x127),_0x5093ae,_0x44af70);})[_0x3c4711(0x12b)](function(_0x2829cf){const _0x435699=_0x3c4711;logger['info'](util[_0x435699(0x126)](_0x2829cf,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x5373bd,_0x5df62c,_0x57bfb3){const _0x71dba3=a1164_0x5d2c56,_0x4ee741=this;this['sequence'][_0x71dba3(0x113)](function(){const _0x4843cc=_0x71dba3;return _0x4ee741[_0x4843cc(0x117)][_0x4843cc(0x106)](_0x5373bd,_0x5df62c,_0x57bfb3)[_0x4843cc(0x11e)](function(){const _0x30bcb6=_0x4843cc;logger[_0x30bcb6(0x12c)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5df62c,_0x57bfb3,_0x5373bd);})[_0x4843cc(0x12b)](function(_0x1b6d1e){const _0x1e16a8=_0x4843cc;logger['info'](util[_0x1e16a8(0x126)](_0x1b6d1e,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x5ec50d){this['sequence']['enqueue'](function(){return _0x5ec50d();});},module[a1164_0x5d2c56(0x114)]={'up':function(_0x4c0f73){return new Promise(function(_0x19f621){const _0x412942=new Migration(_0x4c0f73);_0x412942['final'](_0x19f621);});},'down':function(){const _0x3e0f1b=a1164_0x5d2c56;return Promise[_0x3e0f1b(0x105)]();}};