Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.95.js
index e40ba18..b11a06f 100644 (file)
@@ -1 +1 @@
-const a987_0x2874=['removeIndex','inspect','Added\x20column\x20%s\x20to\x20%s','join','sequence','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','addColumn','removeColumn','stringify','queryInterface','exports','../config/logger','info','query','Removed\x20column\x20%s\x20from\x20%s','addIndex','then','removeIndex\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','dropTable','final','addIndex\x20%s\x20%s\x20%s','migration','catch','finally','prototype','tail','renameColumn','table\x20dropped\x20%s','util','sequelize'];(function(_0xac77c7,_0x2874f9){const _0x45a95b=function(_0x44a009){while(--_0x44a009){_0xac77c7['push'](_0xac77c7['shift']());}};_0x45a95b(++_0x2874f9);}(a987_0x2874,0xa2));const a987_0x45a9=function(_0xac77c7,_0x2874f9){_0xac77c7=_0xac77c7-0x0;let _0x45a95b=a987_0x2874[_0xac77c7];return _0x45a95b;};const _0x3ca467=a987_0x45a9;'use strict';const util=require(_0x3ca467('0x1')),logger=require(_0x3ca467('0xf'))(_0x3ca467('0x1b')),Sequence=function(){};Sequence['prototype'][_0x3ca467('0x9')]=function(_0x44a009){const _0x59627e=_0x3ca467;this[_0x59627e('0x1f')]=this[_0x59627e('0x1f')]?this['tail'][_0x59627e('0x1d')](_0x44a009):_0x44a009();};const Migration=function(_0x1f016f){const _0x2c4cd0=_0x3ca467;this[_0x2c4cd0('0xd')]=_0x1f016f,this[_0x2c4cd0('0x7')]=new Sequence();};Migration[_0x3ca467('0x1e')]['changeColumn']=function(_0x2651a5,_0xa73f1e,_0x4d6610){const _0xf6398a=_0x3ca467,_0x272a0f=this;this[_0xf6398a('0x7')][_0xf6398a('0x9')](function(){const _0x48e351=_0xf6398a;return _0x272a0f[_0x48e351('0xd')][_0x48e351('0x17')](_0x2651a5,_0xa73f1e,_0x4d6610)['then'](function(){const _0x30fb5a=_0x48e351;logger[_0x30fb5a('0x10')](_0x30fb5a('0x16'),_0xa73f1e,_0x2651a5);})[_0x48e351('0x1c')](function(_0xe61482){const _0x342729=_0x48e351;logger[_0x342729('0x10')](JSON[_0x342729('0xc')](_0xe61482));});});},Migration['prototype'][_0x3ca467('0xa')]=function(_0x136138,_0x5dac4e,_0x5b28f9){const _0x424bc3=_0x3ca467,_0x3edca0=this;this[_0x424bc3('0x7')][_0x424bc3('0x9')](function(){const _0x21a890=_0x424bc3;return _0x3edca0['queryInterface'][_0x21a890('0xa')](_0x136138,_0x5dac4e,_0x5b28f9)[_0x21a890('0x14')](function(){const _0x2e00bb=_0x21a890;logger[_0x2e00bb('0x10')](_0x2e00bb('0x5'),_0x5dac4e,_0x136138);})[_0x21a890('0x1c')](function(_0x51188c){const _0xecd1ca=_0x21a890;logger[_0xecd1ca('0x10')](JSON[_0xecd1ca('0xc')](_0x51188c));});});},Migration['prototype'][_0x3ca467('0x18')]=function(_0x4e302d){const _0x1922ec=_0x3ca467,_0xec58eb=this;this[_0x1922ec('0x7')]['enqueue'](function(){const _0x5b7765=_0x1922ec;return _0xec58eb[_0x5b7765('0xd')][_0x5b7765('0x18')](_0x4e302d,{'force':!![]})[_0x5b7765('0x14')](function(){const _0x49fcd3=_0x5b7765;logger[_0x49fcd3('0x10')](_0x49fcd3('0x0'),_0x4e302d);})[_0x5b7765('0x1c')](function(_0x56331c){const _0x41908b=_0x5b7765;logger[_0x41908b('0x10')](JSON['stringify'](_0x56331c));});});},Migration[_0x3ca467('0x1e')][_0x3ca467('0x13')]=function(_0x1c3ab4,_0x16e9d8,_0x24da4e){const _0x43b970=_0x3ca467,_0x2059a4=this;this[_0x43b970('0x7')][_0x43b970('0x9')](function(){const _0x3009ee=_0x43b970;return _0x2059a4[_0x3009ee('0xd')][_0x3009ee('0x13')](_0x1c3ab4,_0x16e9d8,{'indexName':_0x24da4e})[_0x3009ee('0x14')](function(){const _0x64d0c0=_0x3009ee;logger['info'](_0x64d0c0('0x1a'),_0x1c3ab4,_0x16e9d8[_0x64d0c0('0x6')](','),_0x24da4e);})[_0x3009ee('0x1c')](function(_0x9471ff){const _0x4ebe22=_0x3009ee;logger['info'](JSON[_0x4ebe22('0xc')](_0x9471ff));});});},Migration['prototype'][_0x3ca467('0x3')]=function(_0x18f307,_0x56ad7a){const _0x3f6e8b=_0x3ca467,_0x19497d=this;this[_0x3f6e8b('0x7')][_0x3f6e8b('0x9')](function(){const _0x3984cd=_0x3f6e8b;return _0x19497d['queryInterface'][_0x3984cd('0x3')](_0x18f307,_0x56ad7a)[_0x3984cd('0x14')](function(){const _0x4bc761=_0x3984cd;logger[_0x4bc761('0x10')](_0x4bc761('0x15'),_0x18f307,_0x56ad7a);})['catch'](function(_0x56cbcd){const _0x1319ed=_0x3984cd;logger[_0x1319ed('0x10')](JSON[_0x1319ed('0xc')](_0x56cbcd));});});},Migration[_0x3ca467('0x1e')][_0x3ca467('0x11')]=function(_0x55a24c){const _0x2eca93=_0x3ca467,_0x9a2fff=this;this[_0x2eca93('0x7')][_0x2eca93('0x9')](function(){const _0x5c5bd4=_0x2eca93;return _0x9a2fff[_0x5c5bd4('0xd')][_0x5c5bd4('0x2')]['query'](_0x55a24c)[_0x5c5bd4('0x14')](function(){logger['info']('query\x20%s',_0x55a24c);})[_0x5c5bd4('0x1c')](function(_0x5c85dd){const _0x4ce4e2=_0x5c5bd4;logger[_0x4ce4e2('0x10')](JSON[_0x4ce4e2('0xc')](_0x5c85dd));});});},Migration[_0x3ca467('0x1e')]['removeColumn']=function(_0x36e957,_0x19b7c6){const _0x36edf3=this;this['sequence']['enqueue'](function(){const _0x1d21b1=a987_0x45a9;return _0x36edf3[_0x1d21b1('0xd')][_0x1d21b1('0xb')](_0x36e957,_0x19b7c6)[_0x1d21b1('0x14')](function(){const _0x20d26d=_0x1d21b1;logger[_0x20d26d('0x10')](_0x20d26d('0x12'),_0x19b7c6,_0x36e957);})[_0x1d21b1('0x1c')](function(_0x32cf53){const _0x31a2f4=_0x1d21b1;logger[_0x31a2f4('0x10')](util[_0x31a2f4('0x4')](_0x32cf53,{'showHidden':![],'depth':null}));});});},Migration[_0x3ca467('0x1e')][_0x3ca467('0x20')]=function(_0x5d7d60,_0xd6d915,_0x364583){const _0x26bc28=_0x3ca467,_0x40ba9b=this;this['sequence'][_0x26bc28('0x9')](function(){const _0x1a080b=_0x26bc28;return _0x40ba9b[_0x1a080b('0xd')][_0x1a080b('0x20')](_0x5d7d60,_0xd6d915,_0x364583)[_0x1a080b('0x14')](function(){const _0x4418ce=_0x1a080b;logger['info'](_0x4418ce('0x8'),_0xd6d915,_0x364583,_0x5d7d60);})[_0x1a080b('0x1c')](function(_0x19f334){const _0x1ce8d7=_0x1a080b;logger[_0x1ce8d7('0x10')](util['inspect'](_0x19f334,{'showHidden':![],'depth':null}));});});},Migration[_0x3ca467('0x1e')][_0x3ca467('0x19')]=function(_0x5145ae){const _0x4635d3=_0x3ca467;this[_0x4635d3('0x7')][_0x4635d3('0x9')](function(){return _0x5145ae();});},module[_0x3ca467('0xe')]={'up':function(_0x4ebb5a){return new Promise(function(_0x2f6d7d){const _0x12b03b=a987_0x45a9,_0x14f7ab=new Migration(_0x4ebb5a);_0x14f7ab[_0x12b03b('0x19')](_0x2f6d7d);});},'down':function(){}};
\ No newline at end of file
+const a987_0x2582=['sequence','removeColumn','migration','dropTable','Added\x20column\x20%s\x20to\x20%s','../config/logger','addIndex','tail','util','changeColumn','renameColumn','stringify','exports','removeIndex\x20%s\x20%s','inspect','join','prototype','queryInterface','Removed\x20column\x20%s\x20from\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','addColumn','query','then','removeIndex','final','sequelize','catch','info'];(function(_0xf065f7,_0x258224){const _0x1ad533=function(_0x5b5afd){while(--_0x5b5afd){_0xf065f7['push'](_0xf065f7['shift']());}};_0x1ad533(++_0x258224);}(a987_0x2582,0x163));const a987_0x1ad5=function(_0xf065f7,_0x258224){_0xf065f7=_0xf065f7-0x0;let _0x1ad533=a987_0x2582[_0xf065f7];return _0x1ad533;};const _0x587a62=a987_0x1ad5;'use strict';const util=require(_0x587a62('0x1')),logger=require(_0x587a62('0x1b'))(_0x587a62('0x18')),Sequence=function(){};Sequence[_0x587a62('0x9')][_0x587a62('0xd')]=function(_0x5b5afd){const _0x4d6d86=_0x587a62;this[_0x4d6d86('0x0')]=this[_0x4d6d86('0x0')]?this[_0x4d6d86('0x0')]['finally'](_0x5b5afd):_0x5b5afd();};const Migration=function(_0x37b5f0){const _0x206cd0=_0x587a62;this[_0x206cd0('0xa')]=_0x37b5f0,this[_0x206cd0('0x16')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x282d00,_0x181131,_0x1c3da2){const _0x3522c9=_0x587a62,_0x37cdbe=this;this[_0x3522c9('0x16')][_0x3522c9('0xd')](function(){const _0x18e687=_0x3522c9;return _0x37cdbe[_0x18e687('0xa')][_0x18e687('0x2')](_0x282d00,_0x181131,_0x1c3da2)['then'](function(){const _0x35a924=_0x18e687;logger[_0x35a924('0x15')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x181131,_0x282d00);})[_0x18e687('0x14')](function(_0x3d9df2){const _0x20f90b=_0x18e687;logger[_0x20f90b('0x15')](JSON[_0x20f90b('0x4')](_0x3d9df2));});});},Migration['prototype'][_0x587a62('0xe')]=function(_0x4a7714,_0x267874,_0x260ff2){const _0x792861=_0x587a62,_0x51f4cc=this;this[_0x792861('0x16')]['enqueue'](function(){const _0x24590b=_0x792861;return _0x51f4cc[_0x24590b('0xa')][_0x24590b('0xe')](_0x4a7714,_0x267874,_0x260ff2)[_0x24590b('0x10')](function(){const _0x5a2fef=_0x24590b;logger[_0x5a2fef('0x15')](_0x5a2fef('0x1a'),_0x267874,_0x4a7714);})['catch'](function(_0x2639d0){const _0x91e6db=_0x24590b;logger[_0x91e6db('0x15')](JSON[_0x91e6db('0x4')](_0x2639d0));});});},Migration[_0x587a62('0x9')][_0x587a62('0x19')]=function(_0x2989b5){const _0x3773e0=_0x587a62,_0x3be9ed=this;this[_0x3773e0('0x16')][_0x3773e0('0xd')](function(){const _0x4f2d20=_0x3773e0;return _0x3be9ed[_0x4f2d20('0xa')][_0x4f2d20('0x19')](_0x2989b5,{'force':!![]})[_0x4f2d20('0x10')](function(){const _0x5c229c=_0x4f2d20;logger[_0x5c229c('0x15')]('table\x20dropped\x20%s',_0x2989b5);})[_0x4f2d20('0x14')](function(_0x1426bd){const _0x4e3608=_0x4f2d20;logger[_0x4e3608('0x15')](JSON[_0x4e3608('0x4')](_0x1426bd));});});},Migration[_0x587a62('0x9')][_0x587a62('0x1c')]=function(_0x23a36b,_0x384d47,_0x56ac9c){const _0x10353b=_0x587a62,_0x3bd927=this;this['sequence'][_0x10353b('0xd')](function(){const _0xdee91f=_0x10353b;return _0x3bd927[_0xdee91f('0xa')][_0xdee91f('0x1c')](_0x23a36b,_0x384d47,{'indexName':_0x56ac9c})[_0xdee91f('0x10')](function(){const _0x2bfd75=_0xdee91f;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x23a36b,_0x384d47[_0x2bfd75('0x8')](','),_0x56ac9c);})[_0xdee91f('0x14')](function(_0x58dfe2){const _0x26fd0b=_0xdee91f;logger['info'](JSON[_0x26fd0b('0x4')](_0x58dfe2));});});},Migration[_0x587a62('0x9')][_0x587a62('0x11')]=function(_0x5aec6c,_0x47fc2f){const _0x4944f0=_0x587a62,_0x338810=this;this[_0x4944f0('0x16')][_0x4944f0('0xd')](function(){const _0x1d2cb6=_0x4944f0;return _0x338810[_0x1d2cb6('0xa')][_0x1d2cb6('0x11')](_0x5aec6c,_0x47fc2f)[_0x1d2cb6('0x10')](function(){const _0x474d76=_0x1d2cb6;logger[_0x474d76('0x15')](_0x474d76('0x6'),_0x5aec6c,_0x47fc2f);})[_0x1d2cb6('0x14')](function(_0xccaa77){const _0x2b9390=_0x1d2cb6;logger[_0x2b9390('0x15')](JSON[_0x2b9390('0x4')](_0xccaa77));});});},Migration[_0x587a62('0x9')]['query']=function(_0x1f2651){const _0x545c69=_0x587a62,_0x4718b3=this;this[_0x545c69('0x16')][_0x545c69('0xd')](function(){const _0x304d50=_0x545c69;return _0x4718b3[_0x304d50('0xa')][_0x304d50('0x13')][_0x304d50('0xf')](_0x1f2651)[_0x304d50('0x10')](function(){const _0x41aef7=_0x304d50;logger[_0x41aef7('0x15')]('query\x20%s',_0x1f2651);})['catch'](function(_0x36a7aa){const _0x3f35f3=_0x304d50;logger[_0x3f35f3('0x15')](JSON[_0x3f35f3('0x4')](_0x36a7aa));});});},Migration['prototype'][_0x587a62('0x17')]=function(_0x2759c8,_0x22f24c){const _0x5d280a=_0x587a62,_0x175538=this;this[_0x5d280a('0x16')]['enqueue'](function(){const _0x9e4dad=_0x5d280a;return _0x175538[_0x9e4dad('0xa')][_0x9e4dad('0x17')](_0x2759c8,_0x22f24c)[_0x9e4dad('0x10')](function(){const _0x256f2e=_0x9e4dad;logger[_0x256f2e('0x15')](_0x256f2e('0xb'),_0x22f24c,_0x2759c8);})['catch'](function(_0x4192ca){const _0x5b3ef1=_0x9e4dad;logger[_0x5b3ef1('0x15')](util[_0x5b3ef1('0x7')](_0x4192ca,{'showHidden':![],'depth':null}));});});},Migration[_0x587a62('0x9')][_0x587a62('0x3')]=function(_0x10af9a,_0x1bf658,_0x50b57b){const _0x28a8f8=_0x587a62,_0x5b0981=this;this[_0x28a8f8('0x16')][_0x28a8f8('0xd')](function(){const _0x22c902=_0x28a8f8;return _0x5b0981[_0x22c902('0xa')][_0x22c902('0x3')](_0x10af9a,_0x1bf658,_0x50b57b)[_0x22c902('0x10')](function(){const _0x2fd810=_0x22c902;logger['info'](_0x2fd810('0xc'),_0x1bf658,_0x50b57b,_0x10af9a);})['catch'](function(_0x263bdf){const _0x348087=_0x22c902;logger[_0x348087('0x15')](util[_0x348087('0x7')](_0x263bdf,{'showHidden':![],'depth':null}));});});},Migration[_0x587a62('0x9')][_0x587a62('0x12')]=function(_0xae8e93){const _0x58e30a=_0x587a62;this[_0x58e30a('0x16')][_0x58e30a('0xd')](function(){return _0xae8e93();});},module[_0x587a62('0x5')]={'up':function(_0x1098cf){return new Promise(function(_0x475969){const _0x42056f=a987_0x1ad5,_0x3ab52d=new Migration(_0x1098cf);_0x3ab52d[_0x42056f('0x12')](_0x475969);});},'down':function(){}};
\ No newline at end of file