Built motion from commit f861bcb808219e66da88ba48b61bddb35224a65e. Version 3.0.0...
[motion-next.git] / server / migrations / 2.2.5.js
1 'use strict';const a1142_0x3621=['Removed\x20column\x20%s\x20from\x20%s','info','removeColumn','tail','1692149qqjlkk','removeIndex\x20%s\x20%s','1ozSxsY','exports','496233pEkLex','query','434551zlVvLI','util','1063637bvpyiG','renameColumn','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','queryInterface','table\x20dropped\x20%s','606547UPyWui','prototype','2veTaCq','addIndex\x20%s\x20%s\x20%s','resolve','enqueue','join','migration','addIndex','dropTable','1937021vNQESk','query\x20%s','stringify','1210333yRiQCH','addColumn','sequence','then','inspect','catch'];const a1142_0x25ad=function(_0x53c765,_0x1ea655){_0x53c765=_0x53c765-0x70;let _0x36210f=a1142_0x3621[_0x53c765];return _0x36210f;};const a1142_0x275f74=a1142_0x25ad;(function(_0x2d530f,_0x209024){const _0x3e5a58=a1142_0x25ad;while(!![]){try{const _0x32ff37=-parseInt(_0x3e5a58(0x8f))+-parseInt(_0x3e5a58(0x95))*-parseInt(_0x3e5a58(0x7a))+-parseInt(_0x3e5a58(0x85))+parseInt(_0x3e5a58(0x91))*parseInt(_0x3e5a58(0x93))+parseInt(_0x3e5a58(0x71))+-parseInt(_0x3e5a58(0x78))+parseInt(_0x3e5a58(0x82));if(_0x32ff37===_0x209024)break;else _0x2d530f['push'](_0x2d530f['shift']());}catch(_0x54e726){_0x2d530f['push'](_0x2d530f['shift']());}}}(a1142_0x3621,0xd1384));const util=require(a1142_0x275f74(0x70)),logger=require('@config/logger')(a1142_0x275f74(0x7f)),Sequence=function(){};Sequence[a1142_0x275f74(0x79)][a1142_0x275f74(0x7d)]=function(_0x3e2556){const _0x1ecbb2=a1142_0x275f74;this[_0x1ecbb2(0x8e)]=this[_0x1ecbb2(0x8e)]?this[_0x1ecbb2(0x8e)]['finally'](_0x3e2556):_0x3e2556();};const Migration=function(_0xbf3d9d){const _0x4e87f9=a1142_0x275f74;this[_0x4e87f9(0x76)]=_0xbf3d9d,this[_0x4e87f9(0x87)]=new Sequence();};Migration[a1142_0x275f74(0x79)][a1142_0x275f74(0x75)]=function(_0x440a2e,_0x56d93b,_0x6b9f21){const _0x3db144=a1142_0x275f74,_0x46e37c=this;this[_0x3db144(0x87)][_0x3db144(0x7d)](function(){const _0x132949=_0x3db144;return _0x46e37c[_0x132949(0x76)][_0x132949(0x75)](_0x440a2e,_0x56d93b,_0x6b9f21)[_0x132949(0x88)](function(){const _0x407d28=_0x132949;logger[_0x407d28(0x8c)](_0x407d28(0x74),_0x56d93b,_0x440a2e);})[_0x132949(0x8a)](function(_0x3b8407){const _0x34c50c=_0x132949;logger['info'](JSON[_0x34c50c(0x84)](_0x3b8407));});});},Migration[a1142_0x275f74(0x79)][a1142_0x275f74(0x86)]=function(_0x38258e,_0x2ee733,_0x3af723){const _0x14a896=this;this['sequence']['enqueue'](function(){const _0x5966f5=a1142_0x25ad;return _0x14a896[_0x5966f5(0x76)][_0x5966f5(0x86)](_0x38258e,_0x2ee733,_0x3af723)['then'](function(){const _0xf1314f=_0x5966f5;logger[_0xf1314f(0x8c)](_0xf1314f(0x73),_0x2ee733,_0x38258e);})[_0x5966f5(0x8a)](function(_0x4a06f5){const _0xf7a683=_0x5966f5;logger[_0xf7a683(0x8c)](JSON[_0xf7a683(0x84)](_0x4a06f5));});});},Migration[a1142_0x275f74(0x79)][a1142_0x275f74(0x81)]=function(_0x1525dc){const _0x5a8f1e=a1142_0x275f74,_0x15621f=this;this[_0x5a8f1e(0x87)][_0x5a8f1e(0x7d)](function(){const _0x2ec576=_0x5a8f1e;return _0x15621f['queryInterface'][_0x2ec576(0x81)](_0x1525dc,{'force':!![]})[_0x2ec576(0x88)](function(){const _0x3d5b6d=_0x2ec576;logger[_0x3d5b6d(0x8c)](_0x3d5b6d(0x77),_0x1525dc);})[_0x2ec576(0x8a)](function(_0x201d45){const _0x5c56a2=_0x2ec576;logger[_0x5c56a2(0x8c)](JSON[_0x5c56a2(0x84)](_0x201d45));});});},Migration[a1142_0x275f74(0x79)]['addIndex']=function(_0x4a2d64,_0x234e3d,_0x48e51f){const _0x224dd8=a1142_0x275f74,_0x11eb81=this;this[_0x224dd8(0x87)][_0x224dd8(0x7d)](function(){const _0x21ed80=_0x224dd8;return _0x11eb81[_0x21ed80(0x76)][_0x21ed80(0x80)](_0x4a2d64,_0x234e3d,{'indexName':_0x48e51f})[_0x21ed80(0x88)](function(){const _0x4c279c=_0x21ed80;logger['info'](_0x4c279c(0x7b),_0x4a2d64,_0x234e3d[_0x4c279c(0x7e)](','),_0x48e51f);})['catch'](function(_0x2583dc){const _0x16c4a9=_0x21ed80;logger[_0x16c4a9(0x8c)](JSON[_0x16c4a9(0x84)](_0x2583dc));});});},Migration[a1142_0x275f74(0x79)]['removeIndex']=function(_0x19dbe0,_0x5f59e9){const _0x25aafe=a1142_0x275f74,_0x2e6d1d=this;this[_0x25aafe(0x87)][_0x25aafe(0x7d)](function(){const _0x539404=_0x25aafe;return _0x2e6d1d[_0x539404(0x76)]['removeIndex'](_0x19dbe0,_0x5f59e9)[_0x539404(0x88)](function(){const _0x51a1af=_0x539404;logger[_0x51a1af(0x8c)](_0x51a1af(0x90),_0x19dbe0,_0x5f59e9);})['catch'](function(_0x62e48b){const _0x7e7531=_0x539404;logger[_0x7e7531(0x8c)](JSON['stringify'](_0x62e48b));});});},Migration['prototype']['query']=function(_0x31485a){const _0x38b432=a1142_0x275f74,_0x4ff82a=this;this[_0x38b432(0x87)]['enqueue'](function(){const _0x4b6aee=_0x38b432;return _0x4ff82a[_0x4b6aee(0x76)]['sequelize'][_0x4b6aee(0x94)](_0x31485a)[_0x4b6aee(0x88)](function(){const _0x382449=_0x4b6aee;logger['info'](_0x382449(0x83),_0x31485a);})[_0x4b6aee(0x8a)](function(_0x327989){const _0x44a6db=_0x4b6aee;logger[_0x44a6db(0x8c)](JSON[_0x44a6db(0x84)](_0x327989));});});},Migration[a1142_0x275f74(0x79)][a1142_0x275f74(0x8d)]=function(_0x33bfad,_0x4244a6){const _0x42dfaf=a1142_0x275f74,_0x49e7f2=this;this['sequence'][_0x42dfaf(0x7d)](function(){const _0x250c3f=_0x42dfaf;return _0x49e7f2[_0x250c3f(0x76)][_0x250c3f(0x8d)](_0x33bfad,_0x4244a6)[_0x250c3f(0x88)](function(){const _0x536c73=_0x250c3f;logger[_0x536c73(0x8c)](_0x536c73(0x8b),_0x4244a6,_0x33bfad);})[_0x250c3f(0x8a)](function(_0x4ab75c){const _0xbb48bd=_0x250c3f;logger[_0xbb48bd(0x8c)](util[_0xbb48bd(0x89)](_0x4ab75c,{'showHidden':![],'depth':null}));});});},Migration[a1142_0x275f74(0x79)][a1142_0x275f74(0x72)]=function(_0x39956b,_0x9aa056,_0x2d1bc0){const _0x533530=a1142_0x275f74,_0x37812d=this;this[_0x533530(0x87)][_0x533530(0x7d)](function(){const _0x4e15ca=_0x533530;return _0x37812d[_0x4e15ca(0x76)]['renameColumn'](_0x39956b,_0x9aa056,_0x2d1bc0)[_0x4e15ca(0x88)](function(){const _0x152768=_0x4e15ca;logger[_0x152768(0x8c)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x9aa056,_0x2d1bc0,_0x39956b);})[_0x4e15ca(0x8a)](function(_0x2d316a){const _0xfe4ccd=_0x4e15ca;logger[_0xfe4ccd(0x8c)](util['inspect'](_0x2d316a,{'showHidden':![],'depth':null}));});});},Migration[a1142_0x275f74(0x79)]['final']=function(_0x1e8064){const _0x437981=a1142_0x275f74;this[_0x437981(0x87)][_0x437981(0x7d)](function(){return _0x1e8064();});},module[a1142_0x275f74(0x92)]={'up':function(_0x4d34f6){return new Promise(function(_0x6e62b9){const _0x1cf7e3=new Migration(_0x4d34f6);_0x1cf7e3['final'](_0x6e62b9);});},'down':function(){const _0x9923ab=a1142_0x275f74;return Promise[_0x9923ab(0x7c)]();}};