Built motion from commit bfc7a72f7045b27461c9a5d1f71c1a658cfd0b8b. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.78.js
index 57cb245..3112420 100644 (file)
@@ -1 +1 @@
-const a957_0x5c98=['join','Added\x20column\x20%s\x20to\x20%s','ALTER\x20TABLE\x20square_messages\x20ENCRYPTION=\x27Y\x27;','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','../config/logger','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','tail','query\x20%s','addIndex','exports','queryInterface','finally','enqueue','table\x20dropped\x20%s','then','changeColumn','renameColumn','catch','addIndex\x20%s\x20%s\x20%s','info','removeColumn','util','removeIndex','migration','final','inspect','stringify','dropTable','sequence','prototype','Removed\x20column\x20%s\x20from\x20%s'];(function(_0xd4a9d6,_0x5c9887){const _0x76a484=function(_0x2fa143){while(--_0x2fa143){_0xd4a9d6['push'](_0xd4a9d6['shift']());}};_0x76a484(++_0x5c9887);}(a957_0x5c98,0x77));const a957_0x76a4=function(_0xd4a9d6,_0x5c9887){_0xd4a9d6=_0xd4a9d6-0x0;let _0x76a484=a957_0x5c98[_0xd4a9d6];return _0x76a484;};const _0x28313b=a957_0x76a4;'use strict';const util=require(_0x28313b('0x1f')),logger=require(_0x28313b('0xd'))(_0x28313b('0x1')),Sequence=function(){};Sequence[_0x28313b('0x7')][_0x28313b('0x16')]=function(_0x2fa143){const _0x46ca86=_0x28313b;this[_0x46ca86('0x10')]=this[_0x46ca86('0x10')]?this[_0x46ca86('0x10')][_0x46ca86('0x15')](_0x2fa143):_0x2fa143();};const Migration=function(_0x55e364){const _0x23989e=_0x28313b;this['queryInterface']=_0x55e364,this[_0x23989e('0x6')]=new Sequence();};Migration['prototype'][_0x28313b('0x19')]=function(_0x20a61e,_0x5e90c0,_0xa20415){const _0x5aba=_0x28313b,_0x502701=this;this[_0x5aba('0x6')][_0x5aba('0x16')](function(){const _0x5531f7=_0x5aba;return _0x502701[_0x5531f7('0x14')]['changeColumn'](_0x20a61e,_0x5e90c0,_0xa20415)[_0x5531f7('0x18')](function(){const _0x1e352e=_0x5531f7;logger[_0x1e352e('0x1d')](_0x1e352e('0xe'),_0x5e90c0,_0x20a61e);})[_0x5531f7('0x1b')](function(_0x2d6add){logger['info'](JSON['stringify'](_0x2d6add));});});},Migration['prototype'][_0x28313b('0xf')]=function(_0x108555,_0x46a42b,_0x4f74c3){const _0x1426c2=_0x28313b,_0x21b1a3=this;this[_0x1426c2('0x6')][_0x1426c2('0x16')](function(){const _0x5861b3=_0x1426c2;return _0x21b1a3[_0x5861b3('0x14')][_0x5861b3('0xf')](_0x108555,_0x46a42b,_0x4f74c3)[_0x5861b3('0x18')](function(){const _0x25e5fb=_0x5861b3;logger[_0x25e5fb('0x1d')](_0x25e5fb('0xa'),_0x46a42b,_0x108555);})['catch'](function(_0x4a1b3c){const _0x239b99=_0x5861b3;logger[_0x239b99('0x1d')](JSON[_0x239b99('0x4')](_0x4a1b3c));});});},Migration['prototype'][_0x28313b('0x5')]=function(_0x59c794){const _0x59dd80=_0x28313b,_0x4c02d4=this;this[_0x59dd80('0x6')][_0x59dd80('0x16')](function(){const _0x23643a=_0x59dd80;return _0x4c02d4['queryInterface']['dropTable'](_0x59c794,{'force':!![]})[_0x23643a('0x18')](function(){const _0x330ba1=_0x23643a;logger[_0x330ba1('0x1d')](_0x330ba1('0x17'),_0x59c794);})['catch'](function(_0x33b4d9){const _0x43b4b7=_0x23643a;logger[_0x43b4b7('0x1d')](JSON[_0x43b4b7('0x4')](_0x33b4d9));});});},Migration['prototype']['addIndex']=function(_0x8f261b,_0x2b9db7,_0x5c0290){const _0xb06196=this;this['sequence']['enqueue'](function(){const _0x1f54df=a957_0x76a4;return _0xb06196[_0x1f54df('0x14')][_0x1f54df('0x12')](_0x8f261b,_0x2b9db7,{'indexName':_0x5c0290})[_0x1f54df('0x18')](function(){const _0x59e4d8=_0x1f54df;logger[_0x59e4d8('0x1d')](_0x59e4d8('0x1c'),_0x8f261b,_0x2b9db7[_0x59e4d8('0x9')](','),_0x5c0290);})[_0x1f54df('0x1b')](function(_0x1143b8){const _0x4253b8=_0x1f54df;logger[_0x4253b8('0x1d')](JSON[_0x4253b8('0x4')](_0x1143b8));});});},Migration['prototype']['removeIndex']=function(_0x18a7fb,_0x665f71){const _0x9b2421=_0x28313b,_0x43a5ce=this;this[_0x9b2421('0x6')][_0x9b2421('0x16')](function(){const _0x394ba0=_0x9b2421;return _0x43a5ce[_0x394ba0('0x14')][_0x394ba0('0x0')](_0x18a7fb,_0x665f71)[_0x394ba0('0x18')](function(){const _0x359f32=_0x394ba0;logger[_0x359f32('0x1d')]('removeIndex\x20%s\x20%s',_0x18a7fb,_0x665f71);})['catch'](function(_0x58b660){const _0x48b2b1=_0x394ba0;logger[_0x48b2b1('0x1d')](JSON[_0x48b2b1('0x4')](_0x58b660));});});},Migration[_0x28313b('0x7')]['query']=function(_0x28e694){const _0x52cc86=_0x28313b,_0x3c9d98=this;this['sequence'][_0x52cc86('0x16')](function(){const _0x2a5538=_0x52cc86;return _0x3c9d98['queryInterface']['sequelize']['query'](_0x28e694)[_0x2a5538('0x18')](function(){const _0x3f9b4a=_0x2a5538;logger[_0x3f9b4a('0x1d')](_0x3f9b4a('0x11'),_0x28e694);})[_0x2a5538('0x1b')](function(_0xa61d63){logger['info'](JSON['stringify'](_0xa61d63));});});},Migration[_0x28313b('0x7')]['removeColumn']=function(_0x253c40,_0x4984b1){const _0x18e5fa=_0x28313b,_0x425f7d=this;this[_0x18e5fa('0x6')][_0x18e5fa('0x16')](function(){const _0x121a46=_0x18e5fa;return _0x425f7d[_0x121a46('0x14')][_0x121a46('0x1e')](_0x253c40,_0x4984b1)[_0x121a46('0x18')](function(){const _0x17f46f=_0x121a46;logger[_0x17f46f('0x1d')](_0x17f46f('0x8'),_0x4984b1,_0x253c40);})[_0x121a46('0x1b')](function(_0x4f666b){const _0x5f5a71=_0x121a46;logger['info'](util[_0x5f5a71('0x3')](_0x4f666b,{'showHidden':![],'depth':null}));});});},Migration[_0x28313b('0x7')][_0x28313b('0x1a')]=function(_0x29de68,_0x4734bd,_0x28c163){const _0x47e505=this;this['sequence']['enqueue'](function(){const _0x432844=a957_0x76a4;return _0x47e505[_0x432844('0x14')][_0x432844('0x1a')](_0x29de68,_0x4734bd,_0x28c163)[_0x432844('0x18')](function(){const _0x461e41=_0x432844;logger['info'](_0x461e41('0xc'),_0x4734bd,_0x28c163,_0x29de68);})[_0x432844('0x1b')](function(_0x305549){const _0x338887=_0x432844;logger[_0x338887('0x1d')](util[_0x338887('0x3')](_0x305549,{'showHidden':![],'depth':null}));});});},Migration[_0x28313b('0x7')][_0x28313b('0x2')]=function(_0x228bfa){const _0x5de215=_0x28313b;this[_0x5de215('0x6')][_0x5de215('0x16')](function(){return _0x228bfa();});},module[_0x28313b('0x13')]={'up':function(_0x294f78){return new Promise(function(_0x3a0767){const _0x2ce695=a957_0x76a4,_0x38f78c=new Migration(_0x294f78);_0x38f78c['query'](_0x2ce695('0xb')),_0x38f78c[_0x2ce695('0x2')](_0x3a0767);});},'down':function(){}};
\ No newline at end of file
+const a957_0x4d6c=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','catch','dropTable','enqueue','Removed\x20column\x20%s\x20from\x20%s','query\x20%s','sequence','ALTER\x20TABLE\x20square_messages\x20ENCRYPTION=\x27Y\x27;','tail','removeColumn','inspect','migration','stringify','removeIndex','then','addIndex','removeIndex\x20%s\x20%s','join','info','query','final','finally','exports','renameColumn','../config/logger','changeColumn','addColumn','util','queryInterface','prototype'];(function(_0x2cf02a,_0x4d6c79){const _0x5319d=function(_0x4d75ff){while(--_0x4d75ff){_0x2cf02a['push'](_0x2cf02a['shift']());}};_0x5319d(++_0x4d6c79);}(a957_0x4d6c,0xb2));const a957_0x5319=function(_0x2cf02a,_0x4d6c79){_0x2cf02a=_0x2cf02a-0x0;let _0x5319d=a957_0x4d6c[_0x2cf02a];return _0x5319d;};const _0x2afadc=a957_0x5319;'use strict';const util=require(_0x2afadc('0x1d')),logger=require(_0x2afadc('0x1a'))(_0x2afadc('0xd')),Sequence=function(){};Sequence[_0x2afadc('0x1')][_0x2afadc('0x5')]=function(_0x4d75ff){const _0x10bde6=_0x2afadc;this['tail']=this['tail']?this[_0x10bde6('0xa')][_0x10bde6('0x17')](_0x4d75ff):_0x4d75ff();};const Migration=function(_0x4313cc){const _0x35ac3d=_0x2afadc;this['queryInterface']=_0x4313cc,this[_0x35ac3d('0x8')]=new Sequence();};Migration[_0x2afadc('0x1')][_0x2afadc('0x1b')]=function(_0x3da191,_0x18ab5d,_0x4959ce){const _0x41d07f=_0x2afadc,_0x235bab=this;this[_0x41d07f('0x8')][_0x41d07f('0x5')](function(){const _0xe25a5f=_0x41d07f;return _0x235bab[_0xe25a5f('0x0')][_0xe25a5f('0x1b')](_0x3da191,_0x18ab5d,_0x4959ce)[_0xe25a5f('0x10')](function(){const _0x3b633f=_0xe25a5f;logger[_0x3b633f('0x14')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x18ab5d,_0x3da191);})[_0xe25a5f('0x3')](function(_0x2eb6fe){const _0x160d90=_0xe25a5f;logger[_0x160d90('0x14')](JSON[_0x160d90('0xe')](_0x2eb6fe));});});},Migration[_0x2afadc('0x1')][_0x2afadc('0x1c')]=function(_0x3d2bdb,_0x344c0d,_0x2b6830){const _0x4d8c53=_0x2afadc,_0x44eab1=this;this['sequence'][_0x4d8c53('0x5')](function(){const _0x472e6d=_0x4d8c53;return _0x44eab1[_0x472e6d('0x0')]['addColumn'](_0x3d2bdb,_0x344c0d,_0x2b6830)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x344c0d,_0x3d2bdb);})[_0x472e6d('0x3')](function(_0xf07fc9){const _0xc5a33d=_0x472e6d;logger[_0xc5a33d('0x14')](JSON[_0xc5a33d('0xe')](_0xf07fc9));});});},Migration[_0x2afadc('0x1')][_0x2afadc('0x4')]=function(_0xb45e87){const _0xcdf508=this;this['sequence']['enqueue'](function(){const _0x4ce912=a957_0x5319;return _0xcdf508[_0x4ce912('0x0')][_0x4ce912('0x4')](_0xb45e87,{'force':!![]})[_0x4ce912('0x10')](function(){const _0x36b797=_0x4ce912;logger[_0x36b797('0x14')]('table\x20dropped\x20%s',_0xb45e87);})[_0x4ce912('0x3')](function(_0x4ece3c){const _0x527be0=_0x4ce912;logger[_0x527be0('0x14')](JSON[_0x527be0('0xe')](_0x4ece3c));});});},Migration[_0x2afadc('0x1')]['addIndex']=function(_0x5adb35,_0x11fca8,_0x2fe013){const _0x46da20=_0x2afadc,_0x31fb88=this;this[_0x46da20('0x8')][_0x46da20('0x5')](function(){const _0x1c4a32=_0x46da20;return _0x31fb88[_0x1c4a32('0x0')][_0x1c4a32('0x11')](_0x5adb35,_0x11fca8,{'indexName':_0x2fe013})['then'](function(){const _0x34f57e=_0x1c4a32;logger[_0x34f57e('0x14')]('addIndex\x20%s\x20%s\x20%s',_0x5adb35,_0x11fca8[_0x34f57e('0x13')](','),_0x2fe013);})['catch'](function(_0x40c192){const _0x494160=_0x1c4a32;logger['info'](JSON[_0x494160('0xe')](_0x40c192));});});},Migration['prototype'][_0x2afadc('0xf')]=function(_0x371cb9,_0x491449){const _0x160e37=_0x2afadc,_0x47ea5f=this;this[_0x160e37('0x8')][_0x160e37('0x5')](function(){const _0x571129=_0x160e37;return _0x47ea5f[_0x571129('0x0')]['removeIndex'](_0x371cb9,_0x491449)[_0x571129('0x10')](function(){const _0x724039=_0x571129;logger[_0x724039('0x14')](_0x724039('0x12'),_0x371cb9,_0x491449);})['catch'](function(_0x7dfcc7){const _0x97f510=_0x571129;logger['info'](JSON[_0x97f510('0xe')](_0x7dfcc7));});});},Migration['prototype'][_0x2afadc('0x15')]=function(_0x2db38e){const _0x34747d=_0x2afadc,_0x2c5417=this;this[_0x34747d('0x8')][_0x34747d('0x5')](function(){const _0x5008e2=_0x34747d;return _0x2c5417[_0x5008e2('0x0')]['sequelize'][_0x5008e2('0x15')](_0x2db38e)[_0x5008e2('0x10')](function(){const _0x18c8c0=_0x5008e2;logger[_0x18c8c0('0x14')](_0x18c8c0('0x7'),_0x2db38e);})['catch'](function(_0x2198c0){const _0x41b452=_0x5008e2;logger[_0x41b452('0x14')](JSON[_0x41b452('0xe')](_0x2198c0));});});},Migration['prototype'][_0x2afadc('0xb')]=function(_0x53533e,_0x56c431){const _0x4e752c=_0x2afadc,_0x1c4268=this;this['sequence'][_0x4e752c('0x5')](function(){const _0x4c25d9=_0x4e752c;return _0x1c4268[_0x4c25d9('0x0')][_0x4c25d9('0xb')](_0x53533e,_0x56c431)[_0x4c25d9('0x10')](function(){const _0x32f6c1=_0x4c25d9;logger[_0x32f6c1('0x14')](_0x32f6c1('0x6'),_0x56c431,_0x53533e);})[_0x4c25d9('0x3')](function(_0x2fe4bb){const _0x5c45b3=_0x4c25d9;logger['info'](util[_0x5c45b3('0xc')](_0x2fe4bb,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x2afadc('0x19')]=function(_0x2c5a86,_0x16bfcd,_0x57c0bc){const _0x45f158=_0x2afadc,_0x20d41b=this;this[_0x45f158('0x8')][_0x45f158('0x5')](function(){const _0x542419=_0x45f158;return _0x20d41b[_0x542419('0x0')][_0x542419('0x19')](_0x2c5a86,_0x16bfcd,_0x57c0bc)[_0x542419('0x10')](function(){const _0x1ab5ed=_0x542419;logger['info'](_0x1ab5ed('0x2'),_0x16bfcd,_0x57c0bc,_0x2c5a86);})[_0x542419('0x3')](function(_0x391bef){const _0x15d048=_0x542419;logger[_0x15d048('0x14')](util[_0x15d048('0xc')](_0x391bef,{'showHidden':![],'depth':null}));});});},Migration[_0x2afadc('0x1')]['final']=function(_0x3f3772){const _0x2379c8=_0x2afadc;this[_0x2379c8('0x8')][_0x2379c8('0x5')](function(){return _0x3f3772();});},module[_0x2afadc('0x18')]={'up':function(_0x344e43){return new Promise(function(_0x161da8){const _0x29b9d1=a957_0x5319,_0x3fc815=new Migration(_0x344e43);_0x3fc815['query'](_0x29b9d1('0x9')),_0x3fc815[_0x29b9d1('0x16')](_0x161da8);});},'down':function(){}};
\ No newline at end of file