Built motion from commit f861bcb808219e66da88ba48b61bddb35224a65e. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.14.js
index d44bf2a..e780594 100644 (file)
@@ -1 +1 @@
-'use strict';const a1166_0x2fbd=['util','@config/logger','removeIndex','2759165XilEoo','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','1321597zTTBrv','resolve','indicesType','renameColumn','catch','3SfPqgL','501151FWBXuN','1228122WZVxNI','addColumn','queryInterface','sequence','2ZtvRJA','stringify','join','query','exports','40mDjTaw','addIndex','changeColumn','tail','table\x20dropped\x20%s','inspect','indexName','sequelize','finally','enqueue','prototype','Added\x20column\x20%s\x20to\x20%s','835025FjVHuJ','info','dropTable','removeColumn','final','migration','668wxgcMq','Changed\x20column\x20%s\x20in\x20table\x20%s','625720slKlNP','then'];const a1166_0x4611=function(_0xf29519,_0x159c8a){_0xf29519=_0xf29519-0x9d;let _0x2fbddb=a1166_0x2fbd[_0xf29519];return _0x2fbddb;};const a1166_0x29ddbc=a1166_0x4611;(function(_0x293204,_0x102991){const _0x424e82=a1166_0x4611;while(!![]){try{const _0x1bed2a=-parseInt(_0x424e82(0xac))+-parseInt(_0x424e82(0xa5))+-parseInt(_0x424e82(0xb0))*-parseInt(_0x424e82(0x9e))+parseInt(_0x424e82(0xc1))+-parseInt(_0x424e82(0xab))*parseInt(_0x424e82(0xaa))+parseInt(_0x424e82(0xc7))*-parseInt(_0x424e82(0xb5))+parseInt(_0x424e82(0xa3));if(_0x1bed2a===_0x102991)break;else _0x293204['push'](_0x293204['shift']());}catch(_0x3baca1){_0x293204['push'](_0x293204['shift']());}}}(a1166_0x2fbd,0xbaf2a));const util=require(a1166_0x29ddbc(0xa0)),logger=require(a1166_0x29ddbc(0xa1))(a1166_0x29ddbc(0xc6)),Sequence=function(){};Sequence[a1166_0x29ddbc(0xbf)][a1166_0x29ddbc(0xbe)]=function(_0x274982){const _0x44dfa8=a1166_0x29ddbc;this[_0x44dfa8(0xb8)]=this[_0x44dfa8(0xb8)]?this[_0x44dfa8(0xb8)][_0x44dfa8(0xbd)](_0x274982):_0x274982();};const Migration=function(_0x2cff1a){const _0xde9662=a1166_0x29ddbc;this[_0xde9662(0xae)]=_0x2cff1a,this[_0xde9662(0xaf)]=new Sequence();};Migration['prototype'][a1166_0x29ddbc(0xb7)]=function(_0x3d538d,_0x6a6a9c,_0x171e67){const _0x3e4f8c=a1166_0x29ddbc,_0x3b46fb=this;this[_0x3e4f8c(0xaf)][_0x3e4f8c(0xbe)](function(){const _0x3a59e9=_0x3e4f8c;return _0x3b46fb[_0x3a59e9(0xae)][_0x3a59e9(0xb7)](_0x3d538d,_0x6a6a9c,_0x171e67)[_0x3a59e9(0x9f)](function(){const _0xe40910=_0x3a59e9;logger[_0xe40910(0xc2)](_0xe40910(0x9d),_0x6a6a9c,_0x3d538d);})[_0x3a59e9(0xa9)](function(_0x34f20f){const _0x35d386=_0x3a59e9;logger[_0x35d386(0xc2)](JSON[_0x35d386(0xb1)](_0x34f20f));});});},Migration[a1166_0x29ddbc(0xbf)][a1166_0x29ddbc(0xad)]=function(_0x5e6d23,_0x3373a0,_0xcadd78){const _0x7aabf1=a1166_0x29ddbc,_0x53da63=this;this[_0x7aabf1(0xaf)][_0x7aabf1(0xbe)](function(){const _0x5b26fa=_0x7aabf1;return _0x53da63[_0x5b26fa(0xae)][_0x5b26fa(0xad)](_0x5e6d23,_0x3373a0,_0xcadd78)[_0x5b26fa(0x9f)](function(){const _0x2ec2d9=_0x5b26fa;logger['info'](_0x2ec2d9(0xc0),_0x3373a0,_0x5e6d23);})[_0x5b26fa(0xa9)](function(_0x9ca8a2){const _0x2fe7e1=_0x5b26fa;logger[_0x2fe7e1(0xc2)](JSON[_0x2fe7e1(0xb1)](_0x9ca8a2));});});},Migration[a1166_0x29ddbc(0xbf)][a1166_0x29ddbc(0xc3)]=function(_0x190aad){const _0x2bf5d4=a1166_0x29ddbc,_0x440341=this;this[_0x2bf5d4(0xaf)][_0x2bf5d4(0xbe)](function(){const _0x2f77fc=_0x2bf5d4;return _0x440341[_0x2f77fc(0xae)][_0x2f77fc(0xc3)](_0x190aad,{'force':!![]})['then'](function(){const _0x5c4f83=_0x2f77fc;logger[_0x5c4f83(0xc2)](_0x5c4f83(0xb9),_0x190aad);})[_0x2f77fc(0xa9)](function(_0x21c3e7){const _0x578ba2=_0x2f77fc;logger[_0x578ba2(0xc2)](JSON['stringify'](_0x21c3e7));});});},Migration[a1166_0x29ddbc(0xbf)][a1166_0x29ddbc(0xb6)]=function(_0x3ae74e,_0x34330b,_0x1364a2){const _0x5ce06d=a1166_0x29ddbc,_0x3f5a1d=this;this[_0x5ce06d(0xaf)]['enqueue'](function(){const _0x29e4c9=_0x5ce06d;return _0x3f5a1d[_0x29e4c9(0xae)][_0x29e4c9(0xb6)](_0x3ae74e,_0x34330b,{'indexName':_0x1364a2[_0x29e4c9(0xbb)],'indicesType':_0x1364a2[_0x29e4c9(0xa7)]})['then'](function(){const _0x2cd659=_0x29e4c9;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x3ae74e,_0x34330b[_0x2cd659(0xb2)](','),_0x1364a2[_0x2cd659(0xbb)],_0x1364a2['indicesType']);})[_0x29e4c9(0xa9)](function(_0x4dcf15){const _0x376463=_0x29e4c9;logger[_0x376463(0xc2)](JSON[_0x376463(0xb1)](_0x4dcf15));});});},Migration['prototype'][a1166_0x29ddbc(0xa2)]=function(_0x1f54ac,_0x357c76){const _0xd4429=a1166_0x29ddbc,_0x5d4513=this;this[_0xd4429(0xaf)][_0xd4429(0xbe)](function(){const _0x34ca68=_0xd4429;return _0x5d4513[_0x34ca68(0xae)][_0x34ca68(0xa2)](_0x1f54ac,_0x357c76)[_0x34ca68(0x9f)](function(){logger['info']('removeIndex\x20%s\x20%s',_0x1f54ac,_0x357c76);})[_0x34ca68(0xa9)](function(_0x236a8c){const _0x3a0a1a=_0x34ca68;logger[_0x3a0a1a(0xc2)](JSON[_0x3a0a1a(0xb1)](_0x236a8c));});});},Migration['prototype']['query']=function(_0x37c326){const _0x4cf52f=a1166_0x29ddbc,_0x38f8ab=this;this[_0x4cf52f(0xaf)][_0x4cf52f(0xbe)](function(){const _0x56d162=_0x4cf52f;return _0x38f8ab['queryInterface'][_0x56d162(0xbc)][_0x56d162(0xb3)](_0x37c326)['then'](function(){const _0x55286a=_0x56d162;logger[_0x55286a(0xc2)]('query\x20%s',_0x37c326);})[_0x56d162(0xa9)](function(_0x322ed3){const _0x4b14de=_0x56d162;logger[_0x4b14de(0xc2)](JSON[_0x4b14de(0xb1)](_0x322ed3));});});},Migration[a1166_0x29ddbc(0xbf)]['removeColumn']=function(_0xad49b3,_0x489875){const _0x516296=a1166_0x29ddbc,_0x1abb2b=this;this[_0x516296(0xaf)][_0x516296(0xbe)](function(){const _0x80ebce=_0x516296;return _0x1abb2b[_0x80ebce(0xae)][_0x80ebce(0xc4)](_0xad49b3,_0x489875)['then'](function(){const _0x4cf333=_0x80ebce;logger[_0x4cf333(0xc2)]('Removed\x20column\x20%s\x20from\x20%s',_0x489875,_0xad49b3);})[_0x80ebce(0xa9)](function(_0x41bdbf){const _0x3a1b8a=_0x80ebce;logger[_0x3a1b8a(0xc2)](util['inspect'](_0x41bdbf,{'showHidden':![],'depth':null}));});});},Migration[a1166_0x29ddbc(0xbf)]['renameColumn']=function(_0x41f2f7,_0x421df3,_0x306abe){const _0x532120=a1166_0x29ddbc,_0x1d9ccd=this;this[_0x532120(0xaf)]['enqueue'](function(){const _0x54a987=_0x532120;return _0x1d9ccd[_0x54a987(0xae)][_0x54a987(0xa8)](_0x41f2f7,_0x421df3,_0x306abe)['then'](function(){const _0x335787=_0x54a987;logger['info'](_0x335787(0xa4),_0x421df3,_0x306abe,_0x41f2f7);})[_0x54a987(0xa9)](function(_0x27b254){const _0x1d85e9=_0x54a987;logger[_0x1d85e9(0xc2)](util[_0x1d85e9(0xba)](_0x27b254,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x3f920e){this['sequence']['enqueue'](function(){return _0x3f920e();});},module[a1166_0x29ddbc(0xb4)]={'up':function(_0x22574b){return new Promise(function(_0x5d5783){const _0x56b205=a1166_0x4611,_0x45a646=new Migration(_0x22574b);_0x45a646[_0x56b205(0xc5)](_0x5d5783);});},'down':function(){const _0x37bbd5=a1166_0x29ddbc;return Promise[_0x37bbd5(0xa6)]();}};
\ No newline at end of file
+'use strict';const a1169_0x45b3=['table\x20dropped\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','dropTable','resolve','stringify','121522QlfcUH','addColumn','indicesType','301529HColHd','29oNNiyN','2ahQiBi','changeColumn','info','indexName','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','exports','Removed\x20column\x20%s\x20from\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','queryInterface','1285073SrSlwI','1tCgxLF','sequence','prototype','493599Ccbjdx','util','then','query','385632KrprBB','removeIndex','removeColumn','enqueue','catch','inspect','Added\x20column\x20%s\x20to\x20%s','954449ocSmTu','renameColumn','sequelize','finally','50539ivsoIR','1DDKNkt','removeIndex\x20%s\x20%s','19wphgim','addIndex','join'];const a1169_0x5553=function(_0x35b885,_0x4bc5d7){_0x35b885=_0x35b885-0xab;let _0x45b3da=a1169_0x45b3[_0x35b885];return _0x45b3da;};const a1169_0x119043=a1169_0x5553;(function(_0x6af604,_0x4bb100){const _0x14ce73=a1169_0x5553;while(!![]){try{const _0x2c18ef=-parseInt(_0x14ce73(0xb8))+parseInt(_0x14ce73(0xac))*-parseInt(_0x14ce73(0xae))+-parseInt(_0x14ce73(0xcb))*parseInt(_0x14ce73(0xce))+-parseInt(_0x14ce73(0xc0))+-parseInt(_0x14ce73(0xb9))*-parseInt(_0x14ce73(0xc7))+parseInt(_0x14ce73(0xcc))*-parseInt(_0x14ce73(0xbc))+-parseInt(_0x14ce73(0xd6))*-parseInt(_0x14ce73(0xad));if(_0x2c18ef===_0x4bb100)break;else _0x6af604['push'](_0x6af604['shift']());}catch(_0x3b0d8e){_0x6af604['push'](_0x6af604['shift']());}}}(a1169_0x45b3,0xb7588));const util=require(a1169_0x119043(0xbd)),logger=require('@config/logger')('migration'),Sequence=function(){};Sequence['prototype'][a1169_0x119043(0xc3)]=function(_0x3ec949){const _0x1f6b24=a1169_0x119043;this[_0x1f6b24(0xb2)]=this[_0x1f6b24(0xb2)]?this[_0x1f6b24(0xb2)][_0x1f6b24(0xca)](_0x3ec949):_0x3ec949();};const Migration=function(_0x6de0a2){const _0x5aaef8=a1169_0x119043;this[_0x5aaef8(0xb7)]=_0x6de0a2,this[_0x5aaef8(0xba)]=new Sequence();};Migration[a1169_0x119043(0xbb)]['changeColumn']=function(_0x4323bd,_0x475742,_0x127a82){const _0x172088=a1169_0x119043,_0x3b52fc=this;this[_0x172088(0xba)][_0x172088(0xc3)](function(){const _0x18ad5b=_0x172088;return _0x3b52fc[_0x18ad5b(0xb7)][_0x18ad5b(0xaf)](_0x4323bd,_0x475742,_0x127a82)[_0x18ad5b(0xbe)](function(){const _0x2185f5=_0x18ad5b;logger[_0x2185f5(0xb0)](_0x2185f5(0xd2),_0x475742,_0x4323bd);})[_0x18ad5b(0xc4)](function(_0x1c3a41){const _0x5453f8=_0x18ad5b;logger[_0x5453f8(0xb0)](JSON[_0x5453f8(0xd5)](_0x1c3a41));});});},Migration[a1169_0x119043(0xbb)][a1169_0x119043(0xd7)]=function(_0x29fd66,_0x46e3d6,_0x406268){const _0x91335d=a1169_0x119043,_0x214670=this;this[_0x91335d(0xba)][_0x91335d(0xc3)](function(){const _0x53f92d=_0x91335d;return _0x214670['queryInterface'][_0x53f92d(0xd7)](_0x29fd66,_0x46e3d6,_0x406268)[_0x53f92d(0xbe)](function(){const _0x36aa22=_0x53f92d;logger[_0x36aa22(0xb0)](_0x36aa22(0xc6),_0x46e3d6,_0x29fd66);})[_0x53f92d(0xc4)](function(_0x50110a){const _0x4b7a22=_0x53f92d;logger[_0x4b7a22(0xb0)](JSON[_0x4b7a22(0xd5)](_0x50110a));});});},Migration[a1169_0x119043(0xbb)]['dropTable']=function(_0xf85f8c){const _0x5429c5=a1169_0x119043,_0xa2ebb3=this;this[_0x5429c5(0xba)][_0x5429c5(0xc3)](function(){const _0x2294ed=_0x5429c5;return _0xa2ebb3[_0x2294ed(0xb7)][_0x2294ed(0xd3)](_0xf85f8c,{'force':!![]})[_0x2294ed(0xbe)](function(){const _0x1de582=_0x2294ed;logger[_0x1de582(0xb0)](_0x1de582(0xd1),_0xf85f8c);})[_0x2294ed(0xc4)](function(_0x4b8fb6){const _0x3611cd=_0x2294ed;logger[_0x3611cd(0xb0)](JSON['stringify'](_0x4b8fb6));});});},Migration[a1169_0x119043(0xbb)][a1169_0x119043(0xcf)]=function(_0x84386e,_0x130dd2,_0x31a835){const _0x474a2a=this;this['sequence']['enqueue'](function(){const _0x2d2f75=a1169_0x5553;return _0x474a2a[_0x2d2f75(0xb7)][_0x2d2f75(0xcf)](_0x84386e,_0x130dd2,{'indexName':_0x31a835[_0x2d2f75(0xb1)],'indicesType':_0x31a835[_0x2d2f75(0xab)]})[_0x2d2f75(0xbe)](function(){const _0x26620c=_0x2d2f75;logger[_0x26620c(0xb0)](_0x26620c(0xb6),_0x84386e,_0x130dd2[_0x26620c(0xd0)](','),_0x31a835['indexName'],_0x31a835[_0x26620c(0xab)]);})[_0x2d2f75(0xc4)](function(_0x56e87d){const _0xc191e1=_0x2d2f75;logger[_0xc191e1(0xb0)](JSON[_0xc191e1(0xd5)](_0x56e87d));});});},Migration[a1169_0x119043(0xbb)]['removeIndex']=function(_0x36ab8e,_0x573b88){const _0x3df593=a1169_0x119043,_0x3a2418=this;this['sequence'][_0x3df593(0xc3)](function(){const _0x55bd77=_0x3df593;return _0x3a2418[_0x55bd77(0xb7)][_0x55bd77(0xc1)](_0x36ab8e,_0x573b88)[_0x55bd77(0xbe)](function(){const _0x556905=_0x55bd77;logger[_0x556905(0xb0)](_0x556905(0xcd),_0x36ab8e,_0x573b88);})['catch'](function(_0x26a204){const _0x1215d0=_0x55bd77;logger[_0x1215d0(0xb0)](JSON[_0x1215d0(0xd5)](_0x26a204));});});},Migration[a1169_0x119043(0xbb)][a1169_0x119043(0xbf)]=function(_0x1d6385){const _0x3f5979=a1169_0x119043,_0x54faa0=this;this[_0x3f5979(0xba)][_0x3f5979(0xc3)](function(){const _0x3f1b8f=_0x3f5979;return _0x54faa0[_0x3f1b8f(0xb7)][_0x3f1b8f(0xc9)][_0x3f1b8f(0xbf)](_0x1d6385)[_0x3f1b8f(0xbe)](function(){const _0x131dd4=_0x3f1b8f;logger[_0x131dd4(0xb0)]('query\x20%s',_0x1d6385);})[_0x3f1b8f(0xc4)](function(_0x33086e){const _0x3a5b37=_0x3f1b8f;logger[_0x3a5b37(0xb0)](JSON[_0x3a5b37(0xd5)](_0x33086e));});});},Migration[a1169_0x119043(0xbb)][a1169_0x119043(0xc2)]=function(_0x4fc77c,_0x5d1902){const _0x258150=a1169_0x119043,_0x34e96f=this;this['sequence'][_0x258150(0xc3)](function(){const _0x4f1fee=_0x258150;return _0x34e96f[_0x4f1fee(0xb7)][_0x4f1fee(0xc2)](_0x4fc77c,_0x5d1902)[_0x4f1fee(0xbe)](function(){const _0x2adc05=_0x4f1fee;logger[_0x2adc05(0xb0)](_0x2adc05(0xb5),_0x5d1902,_0x4fc77c);})[_0x4f1fee(0xc4)](function(_0x4ab8a4){const _0x2f38b1=_0x4f1fee;logger['info'](util[_0x2f38b1(0xc5)](_0x4ab8a4,{'showHidden':![],'depth':null}));});});},Migration[a1169_0x119043(0xbb)][a1169_0x119043(0xc8)]=function(_0x139ce0,_0x4ccefe,_0x5d4bf0){const _0x357cb3=a1169_0x119043,_0x28ffa7=this;this[_0x357cb3(0xba)]['enqueue'](function(){const _0x4f8d2f=_0x357cb3;return _0x28ffa7['queryInterface'][_0x4f8d2f(0xc8)](_0x139ce0,_0x4ccefe,_0x5d4bf0)[_0x4f8d2f(0xbe)](function(){const _0x3127f1=_0x4f8d2f;logger['info'](_0x3127f1(0xb3),_0x4ccefe,_0x5d4bf0,_0x139ce0);})[_0x4f8d2f(0xc4)](function(_0x22deab){const _0x5092b3=_0x4f8d2f;logger['info'](util[_0x5092b3(0xc5)](_0x22deab,{'showHidden':![],'depth':null}));});});},Migration[a1169_0x119043(0xbb)]['final']=function(_0xc9bf66){const _0x23f858=a1169_0x119043;this[_0x23f858(0xba)][_0x23f858(0xc3)](function(){return _0xc9bf66();});},module[a1169_0x119043(0xb4)]={'up':function(_0x5be290){return new Promise(function(_0xff99b){const _0x183c0b=new Migration(_0x5be290);_0x183c0b['final'](_0xff99b);});},'down':function(){const _0x5ab5e1=a1169_0x119043;return Promise[_0x5ab5e1(0xd4)]();}};
\ No newline at end of file