Built motion from commit e493b9a4954b50a8ee6d0034ba3601cd210d989d. Version 3.0.0...
[motion-next.git] / server / migrations / 2.2.2.js
index 35deda2..fe4fa5d 100644 (file)
@@ -1 +1 @@
-const a1131_0x1acf=['dropTable','query\x20%s','../config/logger','stringify','prototype','util','enqueue','addColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s','finally','Added\x20column\x20%s\x20to\x20%s','catch','renameColumn','query','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','addIndex','then','queryInterface','tail','sequence','exports','addIndex\x20%s\x20%s\x20%s','info','migration','changeColumn','inspect','final'];(function(_0x33e60e,_0x4c12cb){const _0x1acf8c=function(_0x13f784){while(--_0x13f784){_0x33e60e['push'](_0x33e60e['shift']());}};_0x1acf8c(++_0x4c12cb);}(a1131_0x1acf,0x1e8));const a1131_0x13f7=function(_0x33e60e,_0x4c12cb){_0x33e60e=_0x33e60e-0x7a;let _0x1acf8c=a1131_0x1acf[_0x33e60e];return _0x1acf8c;};const a1131_0x5cfb34=a1131_0x13f7;'use strict';const util=require(a1131_0x5cfb34(0x84)),logger=require(a1131_0x5cfb34(0x81))(a1131_0x5cfb34(0x7b)),Sequence=function(){};Sequence[a1131_0x5cfb34(0x83)][a1131_0x5cfb34(0x85)]=function(_0x517671){const _0x172f73=a1131_0x5cfb34;this['tail']=this[_0x172f73(0x93)]?this[_0x172f73(0x93)][_0x172f73(0x89)](_0x517671):_0x517671();};const Migration=function(_0xa7bf76){const _0x4e4ef7=a1131_0x5cfb34;this[_0x4e4ef7(0x92)]=_0xa7bf76,this['sequence']=new Sequence();};Migration[a1131_0x5cfb34(0x83)][a1131_0x5cfb34(0x7c)]=function(_0x52de4d,_0x2ba159,_0x436440){const _0x2b34dd=a1131_0x5cfb34,_0xbd61ee=this;this[_0x2b34dd(0x94)][_0x2b34dd(0x85)](function(){const _0x4a8f4b=_0x2b34dd;return _0xbd61ee['queryInterface'][_0x4a8f4b(0x7c)](_0x52de4d,_0x2ba159,_0x436440)[_0x4a8f4b(0x91)](function(){const _0x2a9deb=_0x4a8f4b;logger['info'](_0x2a9deb(0x87),_0x2ba159,_0x52de4d);})['catch'](function(_0x346386){const _0x50559f=_0x4a8f4b;logger['info'](JSON[_0x50559f(0x82)](_0x346386));});});},Migration[a1131_0x5cfb34(0x83)][a1131_0x5cfb34(0x86)]=function(_0x403ddc,_0x227504,_0x25ea8d){const _0x3b97f4=this;this['sequence']['enqueue'](function(){const _0x1912fb=a1131_0x13f7;return _0x3b97f4[_0x1912fb(0x92)][_0x1912fb(0x86)](_0x403ddc,_0x227504,_0x25ea8d)[_0x1912fb(0x91)](function(){const _0x2acea2=_0x1912fb;logger[_0x2acea2(0x7a)](_0x2acea2(0x8a),_0x227504,_0x403ddc);})['catch'](function(_0x1ebd5e){const _0x38e051=_0x1912fb;logger[_0x38e051(0x7a)](JSON['stringify'](_0x1ebd5e));});});},Migration['prototype']['dropTable']=function(_0x5c4700){const _0x1cc052=a1131_0x5cfb34,_0x39a4dd=this;this[_0x1cc052(0x94)]['enqueue'](function(){const _0x3f00c4=_0x1cc052;return _0x39a4dd['queryInterface'][_0x3f00c4(0x7f)](_0x5c4700,{'force':!![]})[_0x3f00c4(0x91)](function(){const _0x58d28f=_0x3f00c4;logger[_0x58d28f(0x7a)](_0x58d28f(0x8e),_0x5c4700);})[_0x3f00c4(0x8b)](function(_0x1a7aba){const _0x32ef95=_0x3f00c4;logger[_0x32ef95(0x7a)](JSON[_0x32ef95(0x82)](_0x1a7aba));});});},Migration[a1131_0x5cfb34(0x83)][a1131_0x5cfb34(0x90)]=function(_0xdc3b35,_0x26c7d0,_0x151425){const _0x55320a=a1131_0x5cfb34,_0x2de5a9=this;this[_0x55320a(0x94)][_0x55320a(0x85)](function(){const _0x463803=_0x55320a;return _0x2de5a9['queryInterface'][_0x463803(0x90)](_0xdc3b35,_0x26c7d0,{'indexName':_0x151425})[_0x463803(0x91)](function(){const _0x191226=_0x463803;logger[_0x191226(0x7a)](_0x191226(0x96),_0xdc3b35,_0x26c7d0['join'](','),_0x151425);})[_0x463803(0x8b)](function(_0x1cad67){const _0x2741da=_0x463803;logger['info'](JSON[_0x2741da(0x82)](_0x1cad67));});});},Migration[a1131_0x5cfb34(0x83)]['removeIndex']=function(_0x143dfc,_0x3b1ebb){const _0x25cf86=a1131_0x5cfb34,_0x4de4c8=this;this['sequence'][_0x25cf86(0x85)](function(){const _0x3a636f=_0x25cf86;return _0x4de4c8[_0x3a636f(0x92)]['removeIndex'](_0x143dfc,_0x3b1ebb)[_0x3a636f(0x91)](function(){const _0x335158=_0x3a636f;logger[_0x335158(0x7a)](_0x335158(0x8f),_0x143dfc,_0x3b1ebb);})[_0x3a636f(0x8b)](function(_0x17e236){const _0x21b22b=_0x3a636f;logger[_0x21b22b(0x7a)](JSON[_0x21b22b(0x82)](_0x17e236));});});},Migration['prototype'][a1131_0x5cfb34(0x8d)]=function(_0x1a8ecc){const _0x2ab99a=a1131_0x5cfb34,_0x604a11=this;this['sequence'][_0x2ab99a(0x85)](function(){const _0x2c8dea=_0x2ab99a;return _0x604a11[_0x2c8dea(0x92)]['sequelize'][_0x2c8dea(0x8d)](_0x1a8ecc)[_0x2c8dea(0x91)](function(){const _0x2d1169=_0x2c8dea;logger[_0x2d1169(0x7a)](_0x2d1169(0x80),_0x1a8ecc);})[_0x2c8dea(0x8b)](function(_0x5490e1){const _0x2470d4=_0x2c8dea;logger[_0x2470d4(0x7a)](JSON[_0x2470d4(0x82)](_0x5490e1));});});},Migration[a1131_0x5cfb34(0x83)]['removeColumn']=function(_0x14ab72,_0xeddf5){const _0x14ed96=a1131_0x5cfb34,_0x4ad8e0=this;this['sequence'][_0x14ed96(0x85)](function(){const _0x16b00d=_0x14ed96;return _0x4ad8e0[_0x16b00d(0x92)]['removeColumn'](_0x14ab72,_0xeddf5)[_0x16b00d(0x91)](function(){const _0x5835f9=_0x16b00d;logger[_0x5835f9(0x7a)](_0x5835f9(0x88),_0xeddf5,_0x14ab72);})[_0x16b00d(0x8b)](function(_0x360b14){const _0x2f29ff=_0x16b00d;logger[_0x2f29ff(0x7a)](util[_0x2f29ff(0x7d)](_0x360b14,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1131_0x5cfb34(0x8c)]=function(_0x2637e7,_0x13cb08,_0x4f458e){const _0x34f650=a1131_0x5cfb34,_0xbede94=this;this['sequence'][_0x34f650(0x85)](function(){const _0x5702d3=_0x34f650;return _0xbede94['queryInterface'][_0x5702d3(0x8c)](_0x2637e7,_0x13cb08,_0x4f458e)[_0x5702d3(0x91)](function(){const _0x37d7b3=_0x5702d3;logger[_0x37d7b3(0x7a)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x13cb08,_0x4f458e,_0x2637e7);})['catch'](function(_0xaba7b6){const _0x5d8ed1=_0x5702d3;logger[_0x5d8ed1(0x7a)](util['inspect'](_0xaba7b6,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1131_0x5cfb34(0x7e)]=function(_0x48e0b5){const _0xddf7f=a1131_0x5cfb34;this[_0xddf7f(0x94)][_0xddf7f(0x85)](function(){return _0x48e0b5();});},module[a1131_0x5cfb34(0x95)]={'up':function(_0x27b142){return new Promise(function(_0x1e9cc6){const _0x45e4c8=a1131_0x13f7,_0x51db2c=new Migration(_0x27b142);_0x51db2c[_0x45e4c8(0x7e)](_0x1e9cc6);});},'down':function(){}};
\ No newline at end of file
+'use strict';const a1136_0x407b=['sequence','util','32313oQLYUv','query\x20%s','Removed\x20column\x20%s\x20from\x20%s','addIndex\x20%s\x20%s\x20%s','147391PpgNKp','exports','219707euHGFu','stringify','1sTnEGr','enqueue','inspect','then','tail','table\x20dropped\x20%s','addColumn','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','19918hmTSKu','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','sequelize','@config/logger','catch','6zrceQM','queryInterface','renameColumn','1053721rfFaKi','Added\x20column\x20%s\x20to\x20%s','703nIuSvC','181DRbyHZ','changeColumn','removeIndex','207126xTMZqA'];const a1136_0x45f1=function(_0x1ebc38,_0x1bc275){_0x1ebc38=_0x1ebc38-0x7e;let _0x407bdb=a1136_0x407b[_0x1ebc38];return _0x407bdb;};const a1136_0x3787d6=a1136_0x45f1;(function(_0x3cfa7a,_0x1bb7c2){const _0x1d28ae=a1136_0x45f1;while(!![]){try{const _0x27b0df=-parseInt(_0x1d28ae(0x9a))*parseInt(_0x1d28ae(0x9e))+-parseInt(_0x1d28ae(0x93))+-parseInt(_0x1d28ae(0x83))+parseInt(_0x1d28ae(0x8a))*-parseInt(_0x1d28ae(0x96))+-parseInt(_0x1d28ae(0x9c))+parseInt(_0x1d28ae(0x90))*-parseInt(_0x1d28ae(0x8f))+parseInt(_0x1d28ae(0x8d));if(_0x27b0df===_0x1bb7c2)break;else _0x3cfa7a['push'](_0x3cfa7a['shift']());}catch(_0x3fd92b){_0x3cfa7a['push'](_0x3cfa7a['shift']());}}}(a1136_0x407b,0x21cda));const util=require(a1136_0x3787d6(0x95)),logger=require(a1136_0x3787d6(0x88))('migration'),Sequence=function(){};Sequence['prototype'][a1136_0x3787d6(0x9f)]=function(_0x4a0244){const _0x17d267=a1136_0x3787d6;this['tail']=this[_0x17d267(0xa2)]?this[_0x17d267(0xa2)]['finally'](_0x4a0244):_0x4a0244();};const Migration=function(_0x5832fe){const _0x1fd85d=a1136_0x3787d6;this[_0x1fd85d(0x8b)]=_0x5832fe,this[_0x1fd85d(0x94)]=new Sequence();};Migration[a1136_0x3787d6(0x86)]['changeColumn']=function(_0x4d10e1,_0x21efc2,_0xd97735){const _0x34be01=a1136_0x3787d6,_0x4e0a67=this;this[_0x34be01(0x94)][_0x34be01(0x9f)](function(){const _0x35595e=_0x34be01;return _0x4e0a67['queryInterface'][_0x35595e(0x91)](_0x4d10e1,_0x21efc2,_0xd97735)[_0x35595e(0xa1)](function(){const _0xd173ae=_0x35595e;logger[_0xd173ae(0x82)](_0xd173ae(0x85),_0x21efc2,_0x4d10e1);})['catch'](function(_0x2278a7){const _0x1b7eec=_0x35595e;logger[_0x1b7eec(0x82)](JSON[_0x1b7eec(0x9d)](_0x2278a7));});});},Migration['prototype'][a1136_0x3787d6(0x7f)]=function(_0x149da4,_0x3dfa73,_0x362690){const _0x34a9b1=a1136_0x3787d6,_0x3b0ff8=this;this[_0x34a9b1(0x94)][_0x34a9b1(0x9f)](function(){const _0xb48126=_0x34a9b1;return _0x3b0ff8['queryInterface'][_0xb48126(0x7f)](_0x149da4,_0x3dfa73,_0x362690)['then'](function(){const _0x390f9b=_0xb48126;logger[_0x390f9b(0x82)](_0x390f9b(0x8e),_0x3dfa73,_0x149da4);})['catch'](function(_0x365bcf){const _0x557c77=_0xb48126;logger[_0x557c77(0x82)](JSON[_0x557c77(0x9d)](_0x365bcf));});});},Migration[a1136_0x3787d6(0x86)]['dropTable']=function(_0x2cf30b){const _0x2c4664=a1136_0x3787d6,_0x16e98a=this;this[_0x2c4664(0x94)]['enqueue'](function(){const _0x390883=_0x2c4664;return _0x16e98a[_0x390883(0x8b)]['dropTable'](_0x2cf30b,{'force':!![]})['then'](function(){const _0x244dac=_0x390883;logger['info'](_0x244dac(0x7e),_0x2cf30b);})[_0x390883(0x89)](function(_0x410582){const _0x1af4a4=_0x390883;logger[_0x1af4a4(0x82)](JSON[_0x1af4a4(0x9d)](_0x410582));});});},Migration[a1136_0x3787d6(0x86)]['addIndex']=function(_0x3cb1de,_0x4c404c,_0x446ae1){const _0x10c974=this;this['sequence']['enqueue'](function(){const _0x3f8d8e=a1136_0x45f1;return _0x10c974[_0x3f8d8e(0x8b)]['addIndex'](_0x3cb1de,_0x4c404c,{'indexName':_0x446ae1})['then'](function(){const _0x20004e=_0x3f8d8e;logger['info'](_0x20004e(0x99),_0x3cb1de,_0x4c404c['join'](','),_0x446ae1);})[_0x3f8d8e(0x89)](function(_0x5f05a1){const _0x1761a4=_0x3f8d8e;logger[_0x1761a4(0x82)](JSON[_0x1761a4(0x9d)](_0x5f05a1));});});},Migration[a1136_0x3787d6(0x86)]['removeIndex']=function(_0x51e236,_0x24976a){const _0x2c0ccf=a1136_0x3787d6,_0x26dbfe=this;this[_0x2c0ccf(0x94)][_0x2c0ccf(0x9f)](function(){const _0x1bfd86=_0x2c0ccf;return _0x26dbfe['queryInterface'][_0x1bfd86(0x92)](_0x51e236,_0x24976a)[_0x1bfd86(0xa1)](function(){const _0x449940=_0x1bfd86;logger[_0x449940(0x82)]('removeIndex\x20%s\x20%s',_0x51e236,_0x24976a);})[_0x1bfd86(0x89)](function(_0x34f77d){const _0x3f5f8a=_0x1bfd86;logger[_0x3f5f8a(0x82)](JSON[_0x3f5f8a(0x9d)](_0x34f77d));});});},Migration[a1136_0x3787d6(0x86)]['query']=function(_0x4a1994){const _0xc9ec17=a1136_0x3787d6,_0xac33ce=this;this[_0xc9ec17(0x94)][_0xc9ec17(0x9f)](function(){const _0x4b3192=_0xc9ec17;return _0xac33ce['queryInterface'][_0x4b3192(0x87)]['query'](_0x4a1994)[_0x4b3192(0xa1)](function(){const _0x583d9e=_0x4b3192;logger['info'](_0x583d9e(0x97),_0x4a1994);})[_0x4b3192(0x89)](function(_0x4de702){const _0x337ca4=_0x4b3192;logger[_0x337ca4(0x82)](JSON[_0x337ca4(0x9d)](_0x4de702));});});},Migration[a1136_0x3787d6(0x86)][a1136_0x3787d6(0x84)]=function(_0x59c65d,_0x31bf68){const _0x26e135=a1136_0x3787d6,_0x5496e3=this;this['sequence'][_0x26e135(0x9f)](function(){const _0x23e9b5=_0x26e135;return _0x5496e3['queryInterface']['removeColumn'](_0x59c65d,_0x31bf68)[_0x23e9b5(0xa1)](function(){const _0x442528=_0x23e9b5;logger['info'](_0x442528(0x98),_0x31bf68,_0x59c65d);})[_0x23e9b5(0x89)](function(_0x36db06){const _0x2f7360=_0x23e9b5;logger[_0x2f7360(0x82)](util[_0x2f7360(0xa0)](_0x36db06,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1136_0x3787d6(0x8c)]=function(_0x4ec17a,_0x1e220d,_0x1ddb95){const _0x23e431=a1136_0x3787d6,_0xd796a5=this;this[_0x23e431(0x94)][_0x23e431(0x9f)](function(){const _0x5e4276=_0x23e431;return _0xd796a5[_0x5e4276(0x8b)][_0x5e4276(0x8c)](_0x4ec17a,_0x1e220d,_0x1ddb95)['then'](function(){const _0x5a6f37=_0x5e4276;logger[_0x5a6f37(0x82)](_0x5a6f37(0x81),_0x1e220d,_0x1ddb95,_0x4ec17a);})['catch'](function(_0x5abcfa){const _0x123ddf=_0x5e4276;logger[_0x123ddf(0x82)](util[_0x123ddf(0xa0)](_0x5abcfa,{'showHidden':![],'depth':null}));});});},Migration[a1136_0x3787d6(0x86)]['final']=function(_0x3b66d9){this['sequence']['enqueue'](function(){return _0x3b66d9();});},module[a1136_0x3787d6(0x9b)]={'up':function(_0x436e91){return new Promise(function(_0x4333d7){const _0x22d08b=a1136_0x45f1,_0x23e978=new Migration(_0x436e91);_0x23e978[_0x22d08b(0x80)](_0x4333d7);});},'down':function(){return Promise['resolve']();}};
\ No newline at end of file