Built motion from commit f861bcb808219e66da88ba48b61bddb35224a65e. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.5.js
index 9dfe89c..a41ccd0 100644 (file)
@@ -1 +1 @@
-'use strict';const a1177_0x5785=['finally','inspect','removeIndex\x20%s\x20%s','catch','sequelize','table\x20dropped\x20%s','enqueue','@config/logger','removeIndex','126729pUJAti','43557LPDYNB','exports','297998iOhcKD','queryInterface','addColumn','renameColumn','stringify','Removed\x20column\x20%s\x20from\x20%s','3ajwtxg','137653jrFgfm','then','tail','resolve','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','removeColumn','migration','24284Ijvmjb','util','indicesType','74000uidKgy','addIndex','changeColumn','dropTable','Added\x20column\x20%s\x20to\x20%s','final','164580CMdXuw','query','prototype','indexName','sequence'];const a1177_0x3c47=function(_0x4e749e,_0x592dbf){_0x4e749e=_0x4e749e-0x164;let _0x57855b=a1177_0x5785[_0x4e749e];return _0x57855b;};const a1177_0x3edb45=a1177_0x3c47;(function(_0x3104ce,_0x2df6cd){const _0x1ebfcc=a1177_0x3c47;while(!![]){try{const _0x119f81=-parseInt(_0x1ebfcc(0x17c))+parseInt(_0x1ebfcc(0x165))+parseInt(_0x1ebfcc(0x16e))+parseInt(_0x1ebfcc(0x17d))*parseInt(_0x1ebfcc(0x185))+parseInt(_0x1ebfcc(0x186))+parseInt(_0x1ebfcc(0x168))+-parseInt(_0x1ebfcc(0x17f));if(_0x119f81===_0x2df6cd)break;else _0x3104ce['push'](_0x3104ce['shift']());}catch(_0x45e7c0){_0x3104ce['push'](_0x3104ce['shift']());}}}(a1177_0x5785,0x19fdd));const util=require(a1177_0x3edb45(0x166)),logger=require(a1177_0x3edb45(0x17a))(a1177_0x3edb45(0x164)),Sequence=function(){};Sequence[a1177_0x3edb45(0x170)]['enqueue']=function(_0x32bb39){const _0x1f00d2=a1177_0x3edb45;this['tail']=this['tail']?this[_0x1f00d2(0x188)][_0x1f00d2(0x173)](_0x32bb39):_0x32bb39();};const Migration=function(_0x4907d3){this['queryInterface']=_0x4907d3,this['sequence']=new Sequence();};Migration[a1177_0x3edb45(0x170)][a1177_0x3edb45(0x16a)]=function(_0x6edbb2,_0x39955b,_0x806a88){const _0x200f12=this;this['sequence']['enqueue'](function(){const _0x248a62=a1177_0x3c47;return _0x200f12[_0x248a62(0x180)][_0x248a62(0x16a)](_0x6edbb2,_0x39955b,_0x806a88)[_0x248a62(0x187)](function(){const _0x4da520=_0x248a62;logger[_0x4da520(0x18b)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x39955b,_0x6edbb2);})[_0x248a62(0x176)](function(_0x4b9535){const _0x4d0de1=_0x248a62;logger[_0x4d0de1(0x18b)](JSON['stringify'](_0x4b9535));});});},Migration[a1177_0x3edb45(0x170)][a1177_0x3edb45(0x181)]=function(_0x81b8c8,_0x464632,_0x1d5d4f){const _0x1c6741=a1177_0x3edb45,_0x1c3e53=this;this[_0x1c6741(0x172)][_0x1c6741(0x179)](function(){const _0x5ce40e=_0x1c6741;return _0x1c3e53['queryInterface'][_0x5ce40e(0x181)](_0x81b8c8,_0x464632,_0x1d5d4f)[_0x5ce40e(0x187)](function(){const _0x2eba58=_0x5ce40e;logger[_0x2eba58(0x18b)](_0x2eba58(0x16c),_0x464632,_0x81b8c8);})[_0x5ce40e(0x176)](function(_0x2a6b3c){const _0x2a4e9a=_0x5ce40e;logger['info'](JSON[_0x2a4e9a(0x183)](_0x2a6b3c));});});},Migration[a1177_0x3edb45(0x170)][a1177_0x3edb45(0x16b)]=function(_0x5cb963){const _0xc7337a=a1177_0x3edb45,_0x5bcbec=this;this[_0xc7337a(0x172)][_0xc7337a(0x179)](function(){const _0x3893e6=_0xc7337a;return _0x5bcbec['queryInterface'][_0x3893e6(0x16b)](_0x5cb963,{'force':!![]})[_0x3893e6(0x187)](function(){const _0x5415a5=_0x3893e6;logger[_0x5415a5(0x18b)](_0x5415a5(0x178),_0x5cb963);})[_0x3893e6(0x176)](function(_0x1007d0){const _0xbfa6ec=_0x3893e6;logger[_0xbfa6ec(0x18b)](JSON[_0xbfa6ec(0x183)](_0x1007d0));});});},Migration['prototype'][a1177_0x3edb45(0x169)]=function(_0x28aeb6,_0x29bdd3,_0x5db069){const _0xdfde75=a1177_0x3edb45,_0x45b9da=this;this[_0xdfde75(0x172)][_0xdfde75(0x179)](function(){const _0x37231f=_0xdfde75;return _0x45b9da[_0x37231f(0x180)][_0x37231f(0x169)](_0x28aeb6,_0x29bdd3,{'indexName':_0x5db069[_0x37231f(0x171)],'indicesType':_0x5db069['indicesType']})[_0x37231f(0x187)](function(){const _0x9739cd=_0x37231f;logger[_0x9739cd(0x18b)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x28aeb6,_0x29bdd3['join'](','),_0x5db069['indexName'],_0x5db069[_0x9739cd(0x167)]);})[_0x37231f(0x176)](function(_0x1e7d32){const _0x354f5f=_0x37231f;logger['info'](JSON[_0x354f5f(0x183)](_0x1e7d32));});});},Migration[a1177_0x3edb45(0x170)][a1177_0x3edb45(0x17b)]=function(_0x2ad82e,_0x42b01a){const _0x488e03=a1177_0x3edb45,_0x298238=this;this[_0x488e03(0x172)][_0x488e03(0x179)](function(){const _0x4a7988=_0x488e03;return _0x298238['queryInterface']['removeIndex'](_0x2ad82e,_0x42b01a)[_0x4a7988(0x187)](function(){const _0x3574a5=_0x4a7988;logger[_0x3574a5(0x18b)](_0x3574a5(0x175),_0x2ad82e,_0x42b01a);})[_0x4a7988(0x176)](function(_0x5eedef){const _0x4f1342=_0x4a7988;logger[_0x4f1342(0x18b)](JSON['stringify'](_0x5eedef));});});},Migration[a1177_0x3edb45(0x170)][a1177_0x3edb45(0x16f)]=function(_0x3447f3){const _0x9ec1f8=a1177_0x3edb45,_0x55cdde=this;this[_0x9ec1f8(0x172)][_0x9ec1f8(0x179)](function(){const _0x2d06e0=_0x9ec1f8;return _0x55cdde[_0x2d06e0(0x180)][_0x2d06e0(0x177)][_0x2d06e0(0x16f)](_0x3447f3)['then'](function(){logger['info']('query\x20%s',_0x3447f3);})[_0x2d06e0(0x176)](function(_0x581b97){logger['info'](JSON['stringify'](_0x581b97));});});},Migration[a1177_0x3edb45(0x170)][a1177_0x3edb45(0x18c)]=function(_0x50d179,_0x115ba8){const _0x4ab425=a1177_0x3edb45,_0x235928=this;this[_0x4ab425(0x172)]['enqueue'](function(){const _0xc9bbce=_0x4ab425;return _0x235928[_0xc9bbce(0x180)]['removeColumn'](_0x50d179,_0x115ba8)['then'](function(){const _0x5e068c=_0xc9bbce;logger[_0x5e068c(0x18b)](_0x5e068c(0x184),_0x115ba8,_0x50d179);})[_0xc9bbce(0x176)](function(_0x5a4a0e){const _0x4def03=_0xc9bbce;logger[_0x4def03(0x18b)](util[_0x4def03(0x174)](_0x5a4a0e,{'showHidden':![],'depth':null}));});});},Migration[a1177_0x3edb45(0x170)][a1177_0x3edb45(0x182)]=function(_0x1f698e,_0x1ac274,_0x1ac3b8){const _0x46909a=a1177_0x3edb45,_0x11b787=this;this[_0x46909a(0x172)][_0x46909a(0x179)](function(){const _0x2ce78f=_0x46909a;return _0x11b787[_0x2ce78f(0x180)]['renameColumn'](_0x1f698e,_0x1ac274,_0x1ac3b8)[_0x2ce78f(0x187)](function(){const _0x2bc14a=_0x2ce78f;logger['info'](_0x2bc14a(0x18a),_0x1ac274,_0x1ac3b8,_0x1f698e);})[_0x2ce78f(0x176)](function(_0x5c94e8){const _0x348241=_0x2ce78f;logger[_0x348241(0x18b)](util[_0x348241(0x174)](_0x5c94e8,{'showHidden':![],'depth':null}));});});},Migration[a1177_0x3edb45(0x170)][a1177_0x3edb45(0x16d)]=function(_0x224968){this['sequence']['enqueue'](function(){return _0x224968();});},module[a1177_0x3edb45(0x17e)]={'up':function(_0x5937be){return new Promise(function(_0x2bb0ea){const _0x2234a2=new Migration(_0x5937be);_0x2234a2['final'](_0x2bb0ea);});},'down':function(){const _0x1ef34b=a1177_0x3edb45;return Promise[_0x1ef34b(0x189)]();}};
\ No newline at end of file
+'use strict';const a1180_0xcffd=['239637VjXVPy','1dokmhx','194067DpGzqS','table\x20dropped\x20%s','193990AqWohL','finally','changeColumn','206290LxiDna','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','indexName','9209jjqRnw','sequelize','addColumn','renameColumn','queryInterface','117991KlicIi','removeIndex\x20%s\x20%s','migration','then','info','tail','catch','query','query\x20%s','exports','inspect','indicesType','6VVEGsY','join','@config/logger','prototype','dropTable','163535Ijfiho','enqueue','sequence','removeIndex','addIndex','addIndex\x20%s\x20%s\x20%s\x20[%s]','resolve','final','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s'];const a1180_0x4c35=function(_0x535bd8,_0x4db95e){_0x535bd8=_0x535bd8-0x114;let _0xcffd53=a1180_0xcffd[_0x535bd8];return _0xcffd53;};const a1180_0x4468c1=a1180_0x4c35;(function(_0x35b7ce,_0xbdb00e){const _0x423ef1=a1180_0x4c35;while(!![]){try{const _0x4a2445=-parseInt(_0x423ef1(0x13e))+-parseInt(_0x423ef1(0x11c))+-parseInt(_0x423ef1(0x123))*-parseInt(_0x423ef1(0x11d))+-parseInt(_0x423ef1(0x128))*-parseInt(_0x423ef1(0x139))+-parseInt(_0x423ef1(0x12d))+parseInt(_0x423ef1(0x11e))+parseInt(_0x423ef1(0x120));if(_0x4a2445===_0xbdb00e)break;else _0x35b7ce['push'](_0x35b7ce['shift']());}catch(_0x1d2c06){_0x35b7ce['push'](_0x35b7ce['shift']());}}}(a1180_0xcffd,0x1f5b6));const util=require('util'),logger=require(a1180_0x4468c1(0x13b))(a1180_0x4468c1(0x12f)),Sequence=function(){};Sequence[a1180_0x4468c1(0x13c)][a1180_0x4468c1(0x13f)]=function(_0x20cb7f){const _0x3c3dc2=a1180_0x4468c1;this[_0x3c3dc2(0x132)]=this[_0x3c3dc2(0x132)]?this[_0x3c3dc2(0x132)][_0x3c3dc2(0x121)](_0x20cb7f):_0x20cb7f();};const Migration=function(_0x5123a5){const _0x568fdd=a1180_0x4468c1;this[_0x568fdd(0x12c)]=_0x5123a5,this[_0x568fdd(0x114)]=new Sequence();};Migration[a1180_0x4468c1(0x13c)][a1180_0x4468c1(0x122)]=function(_0x526c98,_0x212f29,_0x2ae268){const _0x207995=a1180_0x4468c1,_0x2b32b5=this;this[_0x207995(0x114)][_0x207995(0x13f)](function(){const _0x5acb36=_0x207995;return _0x2b32b5[_0x5acb36(0x12c)][_0x5acb36(0x122)](_0x526c98,_0x212f29,_0x2ae268)[_0x5acb36(0x130)](function(){const _0x8849b8=_0x5acb36;logger['info'](_0x8849b8(0x11a),_0x212f29,_0x526c98);})['catch'](function(_0x5e1721){const _0x341763=_0x5acb36;logger[_0x341763(0x131)](JSON[_0x341763(0x124)](_0x5e1721));});});},Migration[a1180_0x4468c1(0x13c)][a1180_0x4468c1(0x12a)]=function(_0x3cf14a,_0x19029e,_0x530004){const _0x57b4db=a1180_0x4468c1,_0x189bd0=this;this[_0x57b4db(0x114)][_0x57b4db(0x13f)](function(){const _0x127f95=_0x57b4db;return _0x189bd0[_0x127f95(0x12c)][_0x127f95(0x12a)](_0x3cf14a,_0x19029e,_0x530004)[_0x127f95(0x130)](function(){const _0x8d1c7f=_0x127f95;logger[_0x8d1c7f(0x131)]('Added\x20column\x20%s\x20to\x20%s',_0x19029e,_0x3cf14a);})['catch'](function(_0x2e7e4f){const _0x50ff0c=_0x127f95;logger['info'](JSON[_0x50ff0c(0x124)](_0x2e7e4f));});});},Migration[a1180_0x4468c1(0x13c)][a1180_0x4468c1(0x13d)]=function(_0x3f3964){const _0x49cd47=a1180_0x4468c1,_0x2b0118=this;this[_0x49cd47(0x114)]['enqueue'](function(){const _0x2c46bb=_0x49cd47;return _0x2b0118['queryInterface'][_0x2c46bb(0x13d)](_0x3f3964,{'force':!![]})['then'](function(){const _0x37ec70=_0x2c46bb;logger[_0x37ec70(0x131)](_0x37ec70(0x11f),_0x3f3964);})[_0x2c46bb(0x133)](function(_0x4addfd){const _0x37af9e=_0x2c46bb;logger[_0x37af9e(0x131)](JSON[_0x37af9e(0x124)](_0x4addfd));});});},Migration[a1180_0x4468c1(0x13c)]['addIndex']=function(_0x2a336e,_0x5b081d,_0x33b00b){const _0xe18c2a=a1180_0x4468c1,_0x21f7ef=this;this[_0xe18c2a(0x114)]['enqueue'](function(){const _0x2f7ca8=_0xe18c2a;return _0x21f7ef[_0x2f7ca8(0x12c)][_0x2f7ca8(0x116)](_0x2a336e,_0x5b081d,{'indexName':_0x33b00b['indexName'],'indicesType':_0x33b00b[_0x2f7ca8(0x138)]})[_0x2f7ca8(0x130)](function(){const _0x45e8f9=_0x2f7ca8;logger[_0x45e8f9(0x131)](_0x45e8f9(0x117),_0x2a336e,_0x5b081d[_0x45e8f9(0x13a)](','),_0x33b00b[_0x45e8f9(0x127)],_0x33b00b['indicesType']);})[_0x2f7ca8(0x133)](function(_0x8104ab){const _0x2cd733=_0x2f7ca8;logger[_0x2cd733(0x131)](JSON[_0x2cd733(0x124)](_0x8104ab));});});},Migration[a1180_0x4468c1(0x13c)]['removeIndex']=function(_0x4a13f9,_0x5c4ee3){const _0x493443=a1180_0x4468c1,_0x347664=this;this[_0x493443(0x114)]['enqueue'](function(){const _0x3e9938=_0x493443;return _0x347664[_0x3e9938(0x12c)][_0x3e9938(0x115)](_0x4a13f9,_0x5c4ee3)[_0x3e9938(0x130)](function(){const _0x5c03fa=_0x3e9938;logger[_0x5c03fa(0x131)](_0x5c03fa(0x12e),_0x4a13f9,_0x5c4ee3);})[_0x3e9938(0x133)](function(_0x587b4f){const _0x421c15=_0x3e9938;logger[_0x421c15(0x131)](JSON['stringify'](_0x587b4f));});});},Migration['prototype'][a1180_0x4468c1(0x134)]=function(_0x509d83){const _0x5441f2=a1180_0x4468c1,_0x1f2e11=this;this[_0x5441f2(0x114)][_0x5441f2(0x13f)](function(){const _0x336484=_0x5441f2;return _0x1f2e11['queryInterface'][_0x336484(0x129)]['query'](_0x509d83)['then'](function(){const _0x22f5b2=_0x336484;logger[_0x22f5b2(0x131)](_0x22f5b2(0x135),_0x509d83);})[_0x336484(0x133)](function(_0x4e61b2){logger['info'](JSON['stringify'](_0x4e61b2));});});},Migration['prototype'][a1180_0x4468c1(0x126)]=function(_0x43553d,_0x1b0db1){const _0x30afdc=a1180_0x4468c1,_0x5a1eaa=this;this[_0x30afdc(0x114)]['enqueue'](function(){const _0x4c4018=_0x30afdc;return _0x5a1eaa[_0x4c4018(0x12c)]['removeColumn'](_0x43553d,_0x1b0db1)['then'](function(){const _0x1463af=_0x4c4018;logger[_0x1463af(0x131)](_0x1463af(0x11b),_0x1b0db1,_0x43553d);})[_0x4c4018(0x133)](function(_0x3bfb05){const _0x375b56=_0x4c4018;logger[_0x375b56(0x131)](util[_0x375b56(0x137)](_0x3bfb05,{'showHidden':![],'depth':null}));});});},Migration[a1180_0x4468c1(0x13c)][a1180_0x4468c1(0x12b)]=function(_0x33928d,_0x2db759,_0x4f8ac6){const _0x6dd7e0=a1180_0x4468c1,_0x12f58c=this;this[_0x6dd7e0(0x114)][_0x6dd7e0(0x13f)](function(){const _0x4982b5=_0x6dd7e0;return _0x12f58c[_0x4982b5(0x12c)]['renameColumn'](_0x33928d,_0x2db759,_0x4f8ac6)[_0x4982b5(0x130)](function(){const _0x350464=_0x4982b5;logger['info'](_0x350464(0x125),_0x2db759,_0x4f8ac6,_0x33928d);})[_0x4982b5(0x133)](function(_0x1b298d){const _0x1d2aba=_0x4982b5;logger['info'](util[_0x1d2aba(0x137)](_0x1b298d,{'showHidden':![],'depth':null}));});});},Migration[a1180_0x4468c1(0x13c)][a1180_0x4468c1(0x119)]=function(_0x2d6a72){const _0x18882a=a1180_0x4468c1;this[_0x18882a(0x114)][_0x18882a(0x13f)](function(){return _0x2d6a72();});},module[a1180_0x4468c1(0x136)]={'up':function(_0x40ca24){return new Promise(function(_0x226deb){const _0x265869=a1180_0x4c35,_0x1de6b2=new Migration(_0x40ca24);_0x1de6b2[_0x265869(0x119)](_0x226deb);});},'down':function(){const _0x1927e1=a1180_0x4468c1;return Promise[_0x1927e1(0x118)]();}};
\ No newline at end of file