Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.70.js
index 50ef1ff..af869d7 100644 (file)
@@ -1 +1 @@
-const a1110_0xb23c=['Removed\x20column\x20%s\x20from\x20%s','mohtime','Added\x20column\x20%s\x20to\x20%s','exports','removeIndex','queryInterface','removeColumn','prototype','dropTable','renameColumn','sequence','addIndex','../config/logger','removeIndex\x20%s\x20%s','enqueue','tail','report_queue','query\x20%s','inspect','then','query','info','INTEGER','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','join','table\x20dropped\x20%s','sequelize','stringify','ALTER\x20TABLE\x20int_vtiger_accounts\x20ENCRYPTION=\x27Y\x27;','final','catch','migration'];(function(_0x4d5c2f,_0x3dff8f){const _0xb23c66=function(_0x2cec46){while(--_0x2cec46){_0x4d5c2f['push'](_0x4d5c2f['shift']());}};_0xb23c66(++_0x3dff8f);}(a1110_0xb23c,0x106));const a1110_0x2cec=function(_0x4d5c2f,_0x3dff8f){_0x4d5c2f=_0x4d5c2f-0xaa;let _0xb23c66=a1110_0xb23c[_0x4d5c2f];return _0xb23c66;};const a1110_0x4881c1=a1110_0x2cec;'use strict';const util=require('util'),logger=require(a1110_0x4881c1(0xb8))(a1110_0x4881c1(0xab)),Sequence=function(){};Sequence[a1110_0x4881c1(0xb3)]['enqueue']=function(_0x15d9bc){const _0xb92fb9=a1110_0x4881c1;this[_0xb92fb9(0xbb)]=this[_0xb92fb9(0xbb)]?this['tail']['finally'](_0x15d9bc):_0x15d9bc();};const Migration=function(_0x30eaa0){const _0x1bcb67=a1110_0x4881c1;this[_0x1bcb67(0xb1)]=_0x30eaa0,this['sequence']=new Sequence();};Migration['prototype']['changeColumn']=function(_0x4d9d42,_0x55e324,_0x5d5e94){const _0x534af1=a1110_0x4881c1,_0x426d30=this;this['sequence'][_0x534af1(0xba)](function(){const _0xbdba38=_0x534af1;return _0x426d30[_0xbdba38(0xb1)]['changeColumn'](_0x4d9d42,_0x55e324,_0x5d5e94)[_0xbdba38(0xbf)](function(){const _0x16535d=_0xbdba38;logger[_0x16535d(0xc1)](_0x16535d(0xc3),_0x55e324,_0x4d9d42);})['catch'](function(_0x18509f){const _0x1c3424=_0xbdba38;logger['info'](JSON[_0x1c3424(0xc8)](_0x18509f));});});},Migration['prototype']['addColumn']=function(_0x5f56ab,_0x296e71,_0x270b67){const _0x3ef0d6=a1110_0x4881c1,_0x51ceee=this;this[_0x3ef0d6(0xb6)][_0x3ef0d6(0xba)](function(){const _0x2605a5=_0x3ef0d6;return _0x51ceee[_0x2605a5(0xb1)][_0x2605a5(0xc4)](_0x5f56ab,_0x296e71,_0x270b67)[_0x2605a5(0xbf)](function(){const _0x33ac92=_0x2605a5;logger['info'](_0x33ac92(0xae),_0x296e71,_0x5f56ab);})[_0x2605a5(0xaa)](function(_0xa3576a){const _0x463d19=_0x2605a5;logger['info'](JSON[_0x463d19(0xc8)](_0xa3576a));});});},Migration[a1110_0x4881c1(0xb3)][a1110_0x4881c1(0xb4)]=function(_0x501f61){const _0x1418b2=a1110_0x4881c1,_0x493c3b=this;this[_0x1418b2(0xb6)][_0x1418b2(0xba)](function(){const _0x3033c5=_0x1418b2;return _0x493c3b[_0x3033c5(0xb1)][_0x3033c5(0xb4)](_0x501f61,{'force':!![]})[_0x3033c5(0xbf)](function(){const _0x4185f9=_0x3033c5;logger[_0x4185f9(0xc1)](_0x4185f9(0xc6),_0x501f61);})['catch'](function(_0x141fc2){const _0x3ed60c=_0x3033c5;logger[_0x3ed60c(0xc1)](JSON[_0x3ed60c(0xc8)](_0x141fc2));});});},Migration[a1110_0x4881c1(0xb3)]['addIndex']=function(_0x3e6d89,_0x230c51,_0x251a87){const _0x276149=a1110_0x4881c1,_0x4bd00b=this;this['sequence'][_0x276149(0xba)](function(){const _0x40b232=_0x276149;return _0x4bd00b[_0x40b232(0xb1)][_0x40b232(0xb7)](_0x3e6d89,_0x230c51,{'indexName':_0x251a87})['then'](function(){const _0xc6d53e=_0x40b232;logger[_0xc6d53e(0xc1)]('addIndex\x20%s\x20%s\x20%s',_0x3e6d89,_0x230c51[_0xc6d53e(0xc5)](','),_0x251a87);})[_0x40b232(0xaa)](function(_0x36ae3f){const _0x462455=_0x40b232;logger[_0x462455(0xc1)](JSON[_0x462455(0xc8)](_0x36ae3f));});});},Migration[a1110_0x4881c1(0xb3)][a1110_0x4881c1(0xb0)]=function(_0x3bf881,_0x5380b3){const _0x17b8a5=a1110_0x4881c1,_0x1eb1ab=this;this[_0x17b8a5(0xb6)][_0x17b8a5(0xba)](function(){const _0x14d84b=_0x17b8a5;return _0x1eb1ab[_0x14d84b(0xb1)][_0x14d84b(0xb0)](_0x3bf881,_0x5380b3)['then'](function(){const _0x232156=_0x14d84b;logger[_0x232156(0xc1)](_0x232156(0xb9),_0x3bf881,_0x5380b3);})[_0x14d84b(0xaa)](function(_0x38b969){const _0xe996b=_0x14d84b;logger[_0xe996b(0xc1)](JSON[_0xe996b(0xc8)](_0x38b969));});});},Migration[a1110_0x4881c1(0xb3)][a1110_0x4881c1(0xc0)]=function(_0x50116b){const _0x2e694b=a1110_0x4881c1,_0x2ecf13=this;this[_0x2e694b(0xb6)][_0x2e694b(0xba)](function(){const _0x1f9c1f=_0x2e694b;return _0x2ecf13[_0x1f9c1f(0xb1)][_0x1f9c1f(0xc7)]['query'](_0x50116b)['then'](function(){const _0x52e650=_0x1f9c1f;logger['info'](_0x52e650(0xbd),_0x50116b);})[_0x1f9c1f(0xaa)](function(_0x405676){const _0x22a21c=_0x1f9c1f;logger[_0x22a21c(0xc1)](JSON[_0x22a21c(0xc8)](_0x405676));});});},Migration[a1110_0x4881c1(0xb3)][a1110_0x4881c1(0xb2)]=function(_0x43b4d3,_0x43d02a){const _0x4e3ea0=a1110_0x4881c1,_0x4239fe=this;this[_0x4e3ea0(0xb6)][_0x4e3ea0(0xba)](function(){const _0x3fa553=_0x4e3ea0;return _0x4239fe['queryInterface'][_0x3fa553(0xb2)](_0x43b4d3,_0x43d02a)['then'](function(){const _0x37533c=_0x3fa553;logger[_0x37533c(0xc1)](_0x37533c(0xac),_0x43d02a,_0x43b4d3);})[_0x3fa553(0xaa)](function(_0x4d3a36){const _0x38e76b=_0x3fa553;logger[_0x38e76b(0xc1)](util[_0x38e76b(0xbe)](_0x4d3a36,{'showHidden':![],'depth':null}));});});},Migration[a1110_0x4881c1(0xb3)][a1110_0x4881c1(0xb5)]=function(_0x326d86,_0x3a9319,_0x3e26a8){const _0x3bf77f=a1110_0x4881c1,_0x4de97d=this;this[_0x3bf77f(0xb6)][_0x3bf77f(0xba)](function(){const _0x1f0913=_0x3bf77f;return _0x4de97d['queryInterface'][_0x1f0913(0xb5)](_0x326d86,_0x3a9319,_0x3e26a8)['then'](function(){const _0x31c32e=_0x1f0913;logger[_0x31c32e(0xc1)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3a9319,_0x3e26a8,_0x326d86);})['catch'](function(_0x3c6a19){const _0x4cb920=_0x1f0913;logger[_0x4cb920(0xc1)](util[_0x4cb920(0xbe)](_0x3c6a19,{'showHidden':![],'depth':null}));});});},Migration[a1110_0x4881c1(0xb3)][a1110_0x4881c1(0xca)]=function(_0x22aa60){const _0x3b5af7=a1110_0x4881c1;this[_0x3b5af7(0xb6)][_0x3b5af7(0xba)](function(){return _0x22aa60();});},module[a1110_0x4881c1(0xaf)]={'up':function(_0x419687,_0x3207d7){return new Promise(function(_0x5756cf){const _0x4749b5=a1110_0x2cec,_0x483405=new Migration(_0x419687);_0x483405[_0x4749b5(0xc4)](_0x4749b5(0xbc),_0x4749b5(0xad),{'type':_0x3207d7[_0x4749b5(0xc2)],'defaultValue':0x0}),_0x483405[_0x4749b5(0xc4)]('report_call',_0x4749b5(0xad),{'type':_0x3207d7['INTEGER'],'defaultValue':0x0}),_0x483405[_0x4749b5(0xc0)](_0x4749b5(0xc9)),_0x483405[_0x4749b5(0xca)](_0x5756cf);});},'down':function(){}};
\ No newline at end of file
+const a1113_0x38dd=['Removed\x20column\x20%s\x20from\x20%s','migration','enqueue','table\x20dropped\x20%s','then','finally','prototype','sequelize','addIndex','final','info','queryInterface','catch','report_queue','ALTER\x20TABLE\x20int_vtiger_accounts\x20ENCRYPTION=\x27Y\x27;','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','stringify','dropTable','query\x20%s','util','renameColumn','../config/logger','addIndex\x20%s\x20%s\x20%s','sequence','changeColumn','removeIndex\x20%s\x20%s','inspect','removeColumn','INTEGER','query','mohtime','addColumn'];(function(_0x3664c6,_0x451cbb){const _0x38dd24=function(_0x4f5f07){while(--_0x4f5f07){_0x3664c6['push'](_0x3664c6['shift']());}};_0x38dd24(++_0x451cbb);}(a1113_0x38dd,0x105));const a1113_0x4f5f=function(_0x3664c6,_0x451cbb){_0x3664c6=_0x3664c6-0xeb;let _0x38dd24=a1113_0x38dd[_0x3664c6];return _0x38dd24;};const a1113_0x73a34d=a1113_0x4f5f;'use strict';const util=require(a1113_0x73a34d(0xf9)),logger=require(a1113_0x73a34d(0xfb))(a1113_0x73a34d(0x107)),Sequence=function(){};Sequence[a1113_0x73a34d(0xec)]['enqueue']=function(_0x4a5fc3){const _0x29f90d=a1113_0x73a34d;this['tail']=this['tail']?this['tail'][_0x29f90d(0xeb)](_0x4a5fc3):_0x4a5fc3();};const Migration=function(_0x1cd282){const _0x5de17d=a1113_0x73a34d;this['queryInterface']=_0x1cd282,this[_0x5de17d(0xfd)]=new Sequence();};Migration[a1113_0x73a34d(0xec)][a1113_0x73a34d(0xfe)]=function(_0x5aba4e,_0x2f0732,_0x31968){const _0x3bd334=a1113_0x73a34d,_0x132271=this;this[_0x3bd334(0xfd)]['enqueue'](function(){const _0x331ec1=_0x3bd334;return _0x132271[_0x331ec1(0xf1)][_0x331ec1(0xfe)](_0x5aba4e,_0x2f0732,_0x31968)[_0x331ec1(0x10a)](function(){const _0x9c18c=_0x331ec1;logger[_0x9c18c(0xf0)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x2f0732,_0x5aba4e);})['catch'](function(_0x3635a0){const _0x42e6d2=_0x331ec1;logger[_0x42e6d2(0xf0)](JSON[_0x42e6d2(0xf6)](_0x3635a0));});});},Migration[a1113_0x73a34d(0xec)][a1113_0x73a34d(0x105)]=function(_0x5715ed,_0x15a89a,_0xa95728){const _0x209c37=a1113_0x73a34d,_0xcd4b10=this;this[_0x209c37(0xfd)][_0x209c37(0x108)](function(){const _0x4bbed3=_0x209c37;return _0xcd4b10[_0x4bbed3(0xf1)]['addColumn'](_0x5715ed,_0x15a89a,_0xa95728)[_0x4bbed3(0x10a)](function(){const _0x166883=_0x4bbed3;logger[_0x166883(0xf0)]('Added\x20column\x20%s\x20to\x20%s',_0x15a89a,_0x5715ed);})[_0x4bbed3(0xf2)](function(_0x3da61a){const _0xb29be1=_0x4bbed3;logger['info'](JSON[_0xb29be1(0xf6)](_0x3da61a));});});},Migration[a1113_0x73a34d(0xec)][a1113_0x73a34d(0xf7)]=function(_0x1cfd0f){const _0x3689ea=a1113_0x73a34d,_0x2c40ec=this;this[_0x3689ea(0xfd)][_0x3689ea(0x108)](function(){const _0x54c16c=_0x3689ea;return _0x2c40ec[_0x54c16c(0xf1)][_0x54c16c(0xf7)](_0x1cfd0f,{'force':!![]})[_0x54c16c(0x10a)](function(){const _0x382bf9=_0x54c16c;logger[_0x382bf9(0xf0)](_0x382bf9(0x109),_0x1cfd0f);})[_0x54c16c(0xf2)](function(_0xee0a58){const _0x57e7ef=_0x54c16c;logger[_0x57e7ef(0xf0)](JSON[_0x57e7ef(0xf6)](_0xee0a58));});});},Migration[a1113_0x73a34d(0xec)][a1113_0x73a34d(0xee)]=function(_0x3dafd6,_0x264a25,_0xc7e32c){const _0x99d5d2=a1113_0x73a34d,_0x34a509=this;this['sequence'][_0x99d5d2(0x108)](function(){const _0x3d813a=_0x99d5d2;return _0x34a509[_0x3d813a(0xf1)][_0x3d813a(0xee)](_0x3dafd6,_0x264a25,{'indexName':_0xc7e32c})[_0x3d813a(0x10a)](function(){const _0x48771c=_0x3d813a;logger[_0x48771c(0xf0)](_0x48771c(0xfc),_0x3dafd6,_0x264a25['join'](','),_0xc7e32c);})[_0x3d813a(0xf2)](function(_0x4ca81b){const _0x5e4893=_0x3d813a;logger['info'](JSON[_0x5e4893(0xf6)](_0x4ca81b));});});},Migration['prototype']['removeIndex']=function(_0x4f7b3a,_0x56d5f0){const _0x2f2f6b=a1113_0x73a34d,_0x3397f9=this;this[_0x2f2f6b(0xfd)][_0x2f2f6b(0x108)](function(){const _0xdd4c75=_0x2f2f6b;return _0x3397f9[_0xdd4c75(0xf1)]['removeIndex'](_0x4f7b3a,_0x56d5f0)[_0xdd4c75(0x10a)](function(){const _0x4c7038=_0xdd4c75;logger[_0x4c7038(0xf0)](_0x4c7038(0xff),_0x4f7b3a,_0x56d5f0);})[_0xdd4c75(0xf2)](function(_0x23002e){const _0x51efb5=_0xdd4c75;logger[_0x51efb5(0xf0)](JSON[_0x51efb5(0xf6)](_0x23002e));});});},Migration[a1113_0x73a34d(0xec)][a1113_0x73a34d(0x103)]=function(_0x23b14b){const _0x2e16f9=a1113_0x73a34d,_0x59f9bd=this;this[_0x2e16f9(0xfd)][_0x2e16f9(0x108)](function(){const _0x3612bf=_0x2e16f9;return _0x59f9bd['queryInterface'][_0x3612bf(0xed)][_0x3612bf(0x103)](_0x23b14b)[_0x3612bf(0x10a)](function(){const _0x344e2e=_0x3612bf;logger[_0x344e2e(0xf0)](_0x344e2e(0xf8),_0x23b14b);})[_0x3612bf(0xf2)](function(_0x47c40e){const _0x17507a=_0x3612bf;logger[_0x17507a(0xf0)](JSON[_0x17507a(0xf6)](_0x47c40e));});});},Migration[a1113_0x73a34d(0xec)][a1113_0x73a34d(0x101)]=function(_0x4ca806,_0xca2196){const _0x540fce=a1113_0x73a34d,_0x22ae6b=this;this['sequence'][_0x540fce(0x108)](function(){const _0x2ef0b1=_0x540fce;return _0x22ae6b[_0x2ef0b1(0xf1)]['removeColumn'](_0x4ca806,_0xca2196)['then'](function(){const _0x3abfd6=_0x2ef0b1;logger[_0x3abfd6(0xf0)](_0x3abfd6(0x106),_0xca2196,_0x4ca806);})[_0x2ef0b1(0xf2)](function(_0x1b91bd){const _0x59fc99=_0x2ef0b1;logger[_0x59fc99(0xf0)](util[_0x59fc99(0x100)](_0x1b91bd,{'showHidden':![],'depth':null}));});});},Migration[a1113_0x73a34d(0xec)][a1113_0x73a34d(0xfa)]=function(_0x217ccf,_0x1da3dc,_0x161a63){const _0x47a9c2=a1113_0x73a34d,_0x9fe116=this;this[_0x47a9c2(0xfd)][_0x47a9c2(0x108)](function(){const _0xca1871=_0x47a9c2;return _0x9fe116[_0xca1871(0xf1)][_0xca1871(0xfa)](_0x217ccf,_0x1da3dc,_0x161a63)[_0xca1871(0x10a)](function(){const _0x5443a1=_0xca1871;logger['info'](_0x5443a1(0xf5),_0x1da3dc,_0x161a63,_0x217ccf);})[_0xca1871(0xf2)](function(_0x33b5a1){const _0x18b27b=_0xca1871;logger[_0x18b27b(0xf0)](util['inspect'](_0x33b5a1,{'showHidden':![],'depth':null}));});});},Migration[a1113_0x73a34d(0xec)][a1113_0x73a34d(0xef)]=function(_0x2300fe){const _0xe40204=a1113_0x73a34d;this['sequence'][_0xe40204(0x108)](function(){return _0x2300fe();});},module['exports']={'up':function(_0x7ec3b9,_0x2bd88e){return new Promise(function(_0x31198b){const _0x58cb5c=a1113_0x4f5f,_0x467f37=new Migration(_0x7ec3b9);_0x467f37[_0x58cb5c(0x105)](_0x58cb5c(0xf3),_0x58cb5c(0x104),{'type':_0x2bd88e[_0x58cb5c(0x102)],'defaultValue':0x0}),_0x467f37[_0x58cb5c(0x105)]('report_call',_0x58cb5c(0x104),{'type':_0x2bd88e[_0x58cb5c(0x102)],'defaultValue':0x0}),_0x467f37[_0x58cb5c(0x103)](_0x58cb5c(0xf4)),_0x467f37[_0x58cb5c(0xef)](_0x31198b);});},'down':function(){}};
\ No newline at end of file