Built motion from commit 129fb4d95212661e48f0db455e75d668addbaddf. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.98.js
index e96e1f2..108c23d 100644 (file)
@@ -1 +1 @@
-const a989_0x5f33=['sequelize','query','join','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','../config/logger','sequence','dropTable','final','enqueue','info','renameColumn','inspect','removeIndex\x20%s\x20%s','prototype','migration','exports','addIndex','stringify','then','addIndex\x20%s\x20%s\x20%s','catch','addColumn','removeIndex','Added\x20column\x20%s\x20to\x20%s','queryInterface','removeColumn','query\x20%s'];(function(_0x33fb7b,_0x5f33d6){const _0x9be2e4=function(_0x104aab){while(--_0x104aab){_0x33fb7b['push'](_0x33fb7b['shift']());}};_0x9be2e4(++_0x5f33d6);}(a989_0x5f33,0xae));const a989_0x9be2=function(_0x33fb7b,_0x5f33d6){_0x33fb7b=_0x33fb7b-0x0;let _0x9be2e4=a989_0x5f33[_0x33fb7b];return _0x9be2e4;};const _0x2585c6=a989_0x9be2;'use strict';const util=require('util'),logger=require(_0x2585c6('0x6'))(_0x2585c6('0x10')),Sequence=function(){};Sequence[_0x2585c6('0xf')][_0x2585c6('0xa')]=function(_0x104aab){const _0x204121=_0x2585c6;this['tail']=this[_0x204121('0x3')]?this[_0x204121('0x3')]['finally'](_0x104aab):_0x104aab();};const Migration=function(_0x300c63){const _0x471c15=_0x2585c6;this['queryInterface']=_0x300c63,this[_0x471c15('0x7')]=new Sequence();};Migration[_0x2585c6('0xf')][_0x2585c6('0x5')]=function(_0x2f4236,_0x4c9956,_0x5070fa){const _0x30beab=_0x2585c6,_0x1e9435=this;this[_0x30beab('0x7')][_0x30beab('0xa')](function(){const _0x139ed5=_0x30beab;return _0x1e9435['queryInterface'][_0x139ed5('0x5')](_0x2f4236,_0x4c9956,_0x5070fa)['then'](function(){const _0x332429=_0x139ed5;logger[_0x332429('0xb')](_0x332429('0x4'),_0x4c9956,_0x2f4236);})['catch'](function(_0x15b57c){const _0x54b964=_0x139ed5;logger[_0x54b964('0xb')](JSON['stringify'](_0x15b57c));});});},Migration[_0x2585c6('0xf')][_0x2585c6('0x17')]=function(_0xe49fd5,_0x1f24fa,_0x2cd6c5){const _0x2b8be4=_0x2585c6,_0x4499ff=this;this[_0x2b8be4('0x7')][_0x2b8be4('0xa')](function(){const _0x112643=_0x2b8be4;return _0x4499ff[_0x112643('0x1a')][_0x112643('0x17')](_0xe49fd5,_0x1f24fa,_0x2cd6c5)[_0x112643('0x14')](function(){const _0x456ec8=_0x112643;logger['info'](_0x456ec8('0x19'),_0x1f24fa,_0xe49fd5);})[_0x112643('0x16')](function(_0x26959d){const _0xe8acfd=_0x112643;logger[_0xe8acfd('0xb')](JSON[_0xe8acfd('0x13')](_0x26959d));});});},Migration['prototype'][_0x2585c6('0x8')]=function(_0x39a485){const _0x1a1c5b=this;this['sequence']['enqueue'](function(){const _0x2c084d=a989_0x9be2;return _0x1a1c5b[_0x2c084d('0x1a')][_0x2c084d('0x8')](_0x39a485,{'force':!![]})['then'](function(){const _0xfa88a=_0x2c084d;logger[_0xfa88a('0xb')]('table\x20dropped\x20%s',_0x39a485);})[_0x2c084d('0x16')](function(_0x39a26f){const _0xf7ca80=_0x2c084d;logger['info'](JSON[_0xf7ca80('0x13')](_0x39a26f));});});},Migration[_0x2585c6('0xf')][_0x2585c6('0x12')]=function(_0x456e5a,_0x4819b6,_0x2c3afe){const _0x459da7=_0x2585c6,_0x240789=this;this[_0x459da7('0x7')][_0x459da7('0xa')](function(){const _0x14e68d=_0x459da7;return _0x240789[_0x14e68d('0x1a')][_0x14e68d('0x12')](_0x456e5a,_0x4819b6,{'indexName':_0x2c3afe})[_0x14e68d('0x14')](function(){const _0x10f9f1=_0x14e68d;logger[_0x10f9f1('0xb')](_0x10f9f1('0x15'),_0x456e5a,_0x4819b6[_0x10f9f1('0x2')](','),_0x2c3afe);})[_0x14e68d('0x16')](function(_0x38f360){const _0x1b4625=_0x14e68d;logger['info'](JSON[_0x1b4625('0x13')](_0x38f360));});});},Migration[_0x2585c6('0xf')][_0x2585c6('0x18')]=function(_0x580804,_0x5d05e3){const _0x1e3c00=_0x2585c6,_0x222242=this;this['sequence'][_0x1e3c00('0xa')](function(){const _0x46a9d5=_0x1e3c00;return _0x222242['queryInterface'][_0x46a9d5('0x18')](_0x580804,_0x5d05e3)[_0x46a9d5('0x14')](function(){const _0x452069=_0x46a9d5;logger[_0x452069('0xb')](_0x452069('0xe'),_0x580804,_0x5d05e3);})[_0x46a9d5('0x16')](function(_0x7f4c6b){const _0x178f0a=_0x46a9d5;logger[_0x178f0a('0xb')](JSON[_0x178f0a('0x13')](_0x7f4c6b));});});},Migration[_0x2585c6('0xf')][_0x2585c6('0x1')]=function(_0xf69ee1){const _0xbf023e=_0x2585c6,_0x5a064b=this;this[_0xbf023e('0x7')]['enqueue'](function(){const _0x5cbbf5=_0xbf023e;return _0x5a064b['queryInterface'][_0x5cbbf5('0x0')][_0x5cbbf5('0x1')](_0xf69ee1)['then'](function(){const _0x38afa6=_0x5cbbf5;logger[_0x38afa6('0xb')](_0x38afa6('0x1c'),_0xf69ee1);})[_0x5cbbf5('0x16')](function(_0x310c30){logger['info'](JSON['stringify'](_0x310c30));});});},Migration[_0x2585c6('0xf')]['removeColumn']=function(_0x4c294a,_0x9dadbc){const _0x47a8db=_0x2585c6,_0x53019b=this;this[_0x47a8db('0x7')][_0x47a8db('0xa')](function(){const _0x400a81=_0x47a8db;return _0x53019b['queryInterface'][_0x400a81('0x1b')](_0x4c294a,_0x9dadbc)[_0x400a81('0x14')](function(){const _0x4ded1d=_0x400a81;logger[_0x4ded1d('0xb')]('Removed\x20column\x20%s\x20from\x20%s',_0x9dadbc,_0x4c294a);})[_0x400a81('0x16')](function(_0x505926){const _0x150420=_0x400a81;logger['info'](util[_0x150420('0xd')](_0x505926,{'showHidden':![],'depth':null}));});});},Migration[_0x2585c6('0xf')]['renameColumn']=function(_0x33b5bb,_0x439b75,_0x35d514){const _0x34b3f4=_0x2585c6,_0x3058c2=this;this['sequence'][_0x34b3f4('0xa')](function(){const _0x33a927=_0x34b3f4;return _0x3058c2[_0x33a927('0x1a')][_0x33a927('0xc')](_0x33b5bb,_0x439b75,_0x35d514)[_0x33a927('0x14')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x439b75,_0x35d514,_0x33b5bb);})['catch'](function(_0x19ba19){const _0x13a184=_0x33a927;logger['info'](util[_0x13a184('0xd')](_0x19ba19,{'showHidden':![],'depth':null}));});});},Migration[_0x2585c6('0xf')][_0x2585c6('0x9')]=function(_0x42a01a){const _0x5a6bc4=_0x2585c6;this[_0x5a6bc4('0x7')]['enqueue'](function(){return _0x42a01a();});},module[_0x2585c6('0x11')]={'up':function(_0x2ec8af){return new Promise(function(_0x2d0582){const _0x1ec07b=a989_0x9be2,_0x398d36=new Migration(_0x2ec8af);_0x398d36[_0x1ec07b('0x9')](_0x2d0582);});},'down':function(){}};
\ No newline at end of file
+const a1151_0x979a=['addColumn','queryInterface','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','table\x20dropped\x20%s','migration','then','dropTable','sequelize','tail','sequence','query','removeIndex','../config/logger','addIndex\x20%s\x20%s\x20%s','final','inspect','enqueue','changeColumn','renameColumn','Added\x20column\x20%s\x20to\x20%s','info','stringify','catch','prototype','finally','Removed\x20column\x20%s\x20from\x20%s','addIndex','join','exports','util'];(function(_0x4c8736,_0x34cccc){const _0x979adc=function(_0x3059b8){while(--_0x3059b8){_0x4c8736['push'](_0x4c8736['shift']());}};_0x979adc(++_0x34cccc);}(a1151_0x979a,0xd4));const a1151_0x3059=function(_0x4c8736,_0x34cccc){_0x4c8736=_0x4c8736-0x9f;let _0x979adc=a1151_0x979a[_0x4c8736];return _0x979adc;};const a1151_0x542b0b=a1151_0x3059;'use strict';const util=require(a1151_0x542b0b(0xa3)),logger=require(a1151_0x542b0b(0xb1))(a1151_0x542b0b(0xa9)),Sequence=function(){};Sequence[a1151_0x542b0b(0xbc)][a1151_0x542b0b(0xb5)]=function(_0x5806bc){const _0x151200=a1151_0x542b0b;this[_0x151200(0xad)]=this[_0x151200(0xad)]?this['tail'][_0x151200(0xbd)](_0x5806bc):_0x5806bc();};const Migration=function(_0xf27634){const _0x2db19e=a1151_0x542b0b;this[_0x2db19e(0xa5)]=_0xf27634,this[_0x2db19e(0xae)]=new Sequence();};Migration[a1151_0x542b0b(0xbc)][a1151_0x542b0b(0xb6)]=function(_0x26722b,_0x50731a,_0x2ffa75){const _0x3bde63=a1151_0x542b0b,_0x3398ea=this;this['sequence'][_0x3bde63(0xb5)](function(){const _0x5aaa29=_0x3bde63;return _0x3398ea[_0x5aaa29(0xa5)][_0x5aaa29(0xb6)](_0x26722b,_0x50731a,_0x2ffa75)[_0x5aaa29(0xaa)](function(){const _0x310fe8=_0x5aaa29;logger[_0x310fe8(0xb9)](_0x310fe8(0xa6),_0x50731a,_0x26722b);})[_0x5aaa29(0xbb)](function(_0x2daddc){const _0x4cf3ec=_0x5aaa29;logger[_0x4cf3ec(0xb9)](JSON[_0x4cf3ec(0xba)](_0x2daddc));});});},Migration[a1151_0x542b0b(0xbc)]['addColumn']=function(_0x408d2e,_0x2ce026,_0x1664c4){const _0x51ebb3=a1151_0x542b0b,_0x33fe43=this;this[_0x51ebb3(0xae)][_0x51ebb3(0xb5)](function(){const _0x358922=_0x51ebb3;return _0x33fe43[_0x358922(0xa5)][_0x358922(0xa4)](_0x408d2e,_0x2ce026,_0x1664c4)[_0x358922(0xaa)](function(){const _0x1a5c4b=_0x358922;logger[_0x1a5c4b(0xb9)](_0x1a5c4b(0xb8),_0x2ce026,_0x408d2e);})['catch'](function(_0x5c8e17){const _0x113da4=_0x358922;logger[_0x113da4(0xb9)](JSON[_0x113da4(0xba)](_0x5c8e17));});});},Migration[a1151_0x542b0b(0xbc)][a1151_0x542b0b(0xab)]=function(_0x11fe9c){const _0x59f041=this;this['sequence']['enqueue'](function(){const _0x15870d=a1151_0x3059;return _0x59f041[_0x15870d(0xa5)][_0x15870d(0xab)](_0x11fe9c,{'force':!![]})[_0x15870d(0xaa)](function(){const _0x431776=_0x15870d;logger[_0x431776(0xb9)](_0x431776(0xa8),_0x11fe9c);})[_0x15870d(0xbb)](function(_0x13519a){const _0x13e7c0=_0x15870d;logger[_0x13e7c0(0xb9)](JSON['stringify'](_0x13519a));});});},Migration['prototype'][a1151_0x542b0b(0xa0)]=function(_0x384930,_0x100b13,_0x59e71f){const _0x457d5e=a1151_0x542b0b,_0x1bfbd2=this;this[_0x457d5e(0xae)][_0x457d5e(0xb5)](function(){const _0x2f0010=_0x457d5e;return _0x1bfbd2[_0x2f0010(0xa5)]['addIndex'](_0x384930,_0x100b13,{'indexName':_0x59e71f})[_0x2f0010(0xaa)](function(){const _0x157240=_0x2f0010;logger['info'](_0x157240(0xb2),_0x384930,_0x100b13[_0x157240(0xa1)](','),_0x59e71f);})['catch'](function(_0x303f47){const _0x452360=_0x2f0010;logger[_0x452360(0xb9)](JSON['stringify'](_0x303f47));});});},Migration[a1151_0x542b0b(0xbc)]['removeIndex']=function(_0x508c8d,_0x37c3c5){const _0x513c92=a1151_0x542b0b,_0x3c315d=this;this[_0x513c92(0xae)]['enqueue'](function(){const _0x2f3488=_0x513c92;return _0x3c315d[_0x2f3488(0xa5)][_0x2f3488(0xb0)](_0x508c8d,_0x37c3c5)['then'](function(){logger['info']('removeIndex\x20%s\x20%s',_0x508c8d,_0x37c3c5);})[_0x2f3488(0xbb)](function(_0x31a538){const _0x59469b=_0x2f3488;logger[_0x59469b(0xb9)](JSON[_0x59469b(0xba)](_0x31a538));});});},Migration['prototype'][a1151_0x542b0b(0xaf)]=function(_0x314b3e){const _0x1f55e9=a1151_0x542b0b,_0x150475=this;this['sequence'][_0x1f55e9(0xb5)](function(){const _0x5c8723=_0x1f55e9;return _0x150475[_0x5c8723(0xa5)][_0x5c8723(0xac)]['query'](_0x314b3e)[_0x5c8723(0xaa)](function(){const _0x343744=_0x5c8723;logger[_0x343744(0xb9)]('query\x20%s',_0x314b3e);})[_0x5c8723(0xbb)](function(_0x2d4bd1){const _0x5d53e5=_0x5c8723;logger['info'](JSON[_0x5d53e5(0xba)](_0x2d4bd1));});});},Migration['prototype'][a1151_0x542b0b(0xa7)]=function(_0x36ec39,_0x345b8f){const _0x2d8ce5=a1151_0x542b0b,_0x560fe1=this;this[_0x2d8ce5(0xae)][_0x2d8ce5(0xb5)](function(){const _0x40596d=_0x2d8ce5;return _0x560fe1[_0x40596d(0xa5)][_0x40596d(0xa7)](_0x36ec39,_0x345b8f)['then'](function(){const _0x466f66=_0x40596d;logger[_0x466f66(0xb9)](_0x466f66(0x9f),_0x345b8f,_0x36ec39);})[_0x40596d(0xbb)](function(_0x5700a2){logger['info'](util['inspect'](_0x5700a2,{'showHidden':![],'depth':null}));});});},Migration[a1151_0x542b0b(0xbc)][a1151_0x542b0b(0xb7)]=function(_0x8715bf,_0x438178,_0x4f47b5){const _0x3977bf=a1151_0x542b0b,_0x4ea016=this;this[_0x3977bf(0xae)][_0x3977bf(0xb5)](function(){const _0x3fa4d5=_0x3977bf;return _0x4ea016[_0x3fa4d5(0xa5)][_0x3fa4d5(0xb7)](_0x8715bf,_0x438178,_0x4f47b5)[_0x3fa4d5(0xaa)](function(){const _0x1d18d9=_0x3fa4d5;logger[_0x1d18d9(0xb9)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x438178,_0x4f47b5,_0x8715bf);})[_0x3fa4d5(0xbb)](function(_0x57bfb3){const _0x2dc4d2=_0x3fa4d5;logger[_0x2dc4d2(0xb9)](util[_0x2dc4d2(0xb4)](_0x57bfb3,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1151_0x542b0b(0xb3)]=function(_0x4f3411){const _0x118175=a1151_0x542b0b;this[_0x118175(0xae)][_0x118175(0xb5)](function(){return _0x4f3411();});},module[a1151_0x542b0b(0xa2)]={'up':function(_0x310d64){return new Promise(function(_0x30e67c){const _0x47ca88=new Migration(_0x310d64);_0x47ca88['final'](_0x30e67c);});},'down':function(){}};
\ No newline at end of file