Built motion from commit 8dca541896b0ff92bb88a36cc13f4f385b593b4b. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.92.js
index b8ac6bd..5cdc704 100644 (file)
@@ -1 +1 @@
-const a984_0x1ce3=['addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','join','Added\x20column\x20%s\x20to\x20%s','../config/logger','Removed\x20column\x20%s\x20from\x20%s','stringify','final','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','renameColumn','info','migration','tail','queryInterface','prototype','removeColumn','changeColumn','query\x20%s','then','sequelize','exports','inspect','removeIndex','catch','sequence','dropTable','addColumn','removeIndex\x20%s\x20%s','query'];(function(_0x47e74c,_0x1ce339){const _0x1f3d58=function(_0x280743){while(--_0x280743){_0x47e74c['push'](_0x47e74c['shift']());}};_0x1f3d58(++_0x1ce339);}(a984_0x1ce3,0x14d));const a984_0x1f3d=function(_0x47e74c,_0x1ce339){_0x47e74c=_0x47e74c-0x0;let _0x1f3d58=a984_0x1ce3[_0x47e74c];return _0x1f3d58;};const _0x4e6472=a984_0x1f3d;'use strict';const util=require('util'),logger=require(_0x4e6472('0xd'))(_0x4e6472('0x15')),Sequence=function(){};Sequence[_0x4e6472('0x18')][_0x4e6472('0xa')]=function(_0x280743){const _0x5635bc=_0x4e6472;this[_0x5635bc('0x16')]=this[_0x5635bc('0x16')]?this[_0x5635bc('0x16')][_0x5635bc('0x12')](_0x280743):_0x280743();};const Migration=function(_0x56a18c){const _0x4e4fc5=_0x4e6472;this[_0x4e4fc5('0x17')]=_0x56a18c,this[_0x4e4fc5('0x3')]=new Sequence();};Migration[_0x4e6472('0x18')]['changeColumn']=function(_0x4fd6ec,_0x34e6ee,_0x3910f4){const _0x48b171=_0x4e6472,_0x1a232e=this;this['sequence'][_0x48b171('0xa')](function(){const _0x59cf8e=_0x48b171;return _0x1a232e['queryInterface'][_0x59cf8e('0x1a')](_0x4fd6ec,_0x34e6ee,_0x3910f4)[_0x59cf8e('0x1c')](function(){const _0x210fb5=_0x59cf8e;logger[_0x210fb5('0x14')](_0x210fb5('0x11'),_0x34e6ee,_0x4fd6ec);})[_0x59cf8e('0x2')](function(_0x325a27){const _0x50063d=_0x59cf8e;logger[_0x50063d('0x14')](JSON[_0x50063d('0xf')](_0x325a27));});});},Migration[_0x4e6472('0x18')][_0x4e6472('0x5')]=function(_0x1cdd81,_0x5c6012,_0x3264ea){const _0x314796=_0x4e6472,_0x476cc=this;this[_0x314796('0x3')][_0x314796('0xa')](function(){const _0x5d1bd6=_0x314796;return _0x476cc[_0x5d1bd6('0x17')][_0x5d1bd6('0x5')](_0x1cdd81,_0x5c6012,_0x3264ea)[_0x5d1bd6('0x1c')](function(){const _0x1eb124=_0x5d1bd6;logger[_0x1eb124('0x14')](_0x1eb124('0xc'),_0x5c6012,_0x1cdd81);})[_0x5d1bd6('0x2')](function(_0x4d4cd7){const _0x15c170=_0x5d1bd6;logger[_0x15c170('0x14')](JSON[_0x15c170('0xf')](_0x4d4cd7));});});},Migration[_0x4e6472('0x18')]['dropTable']=function(_0x21d839){const _0x1e499d=_0x4e6472,_0x48510b=this;this[_0x1e499d('0x3')][_0x1e499d('0xa')](function(){const _0x519eb1=_0x1e499d;return _0x48510b[_0x519eb1('0x17')][_0x519eb1('0x4')](_0x21d839,{'force':!![]})[_0x519eb1('0x1c')](function(){const _0x1a1eec=_0x519eb1;logger[_0x1a1eec('0x14')]('table\x20dropped\x20%s',_0x21d839);})['catch'](function(_0x505f2c){const _0x271db7=_0x519eb1;logger['info'](JSON[_0x271db7('0xf')](_0x505f2c));});});},Migration[_0x4e6472('0x18')][_0x4e6472('0x8')]=function(_0x35f207,_0x23f644,_0x38421a){const _0x43c39b=_0x4e6472,_0x51c823=this;this[_0x43c39b('0x3')][_0x43c39b('0xa')](function(){const _0x505600=_0x43c39b;return _0x51c823[_0x505600('0x17')][_0x505600('0x8')](_0x35f207,_0x23f644,{'indexName':_0x38421a})[_0x505600('0x1c')](function(){const _0x46c9bf=_0x505600;logger[_0x46c9bf('0x14')]('addIndex\x20%s\x20%s\x20%s',_0x35f207,_0x23f644[_0x46c9bf('0xb')](','),_0x38421a);})[_0x505600('0x2')](function(_0x3414df){const _0x3b8fdb=_0x505600;logger[_0x3b8fdb('0x14')](JSON[_0x3b8fdb('0xf')](_0x3414df));});});},Migration['prototype'][_0x4e6472('0x1')]=function(_0xb2692b,_0x3bcdfa){const _0x10f097=_0x4e6472,_0x4d2afe=this;this[_0x10f097('0x3')]['enqueue'](function(){const _0x332fc6=_0x10f097;return _0x4d2afe[_0x332fc6('0x17')][_0x332fc6('0x1')](_0xb2692b,_0x3bcdfa)[_0x332fc6('0x1c')](function(){const _0x154b43=_0x332fc6;logger[_0x154b43('0x14')](_0x154b43('0x6'),_0xb2692b,_0x3bcdfa);})[_0x332fc6('0x2')](function(_0x4b4cc8){const _0x4aebd1=_0x332fc6;logger[_0x4aebd1('0x14')](JSON[_0x4aebd1('0xf')](_0x4b4cc8));});});},Migration['prototype'][_0x4e6472('0x7')]=function(_0x26619e){const _0x5555c9=_0x4e6472,_0x491042=this;this[_0x5555c9('0x3')][_0x5555c9('0xa')](function(){const _0x48bbb3=_0x5555c9;return _0x491042[_0x48bbb3('0x17')][_0x48bbb3('0x1d')][_0x48bbb3('0x7')](_0x26619e)['then'](function(){const _0x59d748=_0x48bbb3;logger[_0x59d748('0x14')](_0x59d748('0x1b'),_0x26619e);})[_0x48bbb3('0x2')](function(_0x4066c0){const _0x34071f=_0x48bbb3;logger[_0x34071f('0x14')](JSON[_0x34071f('0xf')](_0x4066c0));});});},Migration[_0x4e6472('0x18')][_0x4e6472('0x19')]=function(_0xde9895,_0x29b56b){const _0x5de475=_0x4e6472,_0xe38ecf=this;this[_0x5de475('0x3')][_0x5de475('0xa')](function(){const _0x5a8b0f=_0x5de475;return _0xe38ecf[_0x5a8b0f('0x17')]['removeColumn'](_0xde9895,_0x29b56b)['then'](function(){const _0x1b78c1=_0x5a8b0f;logger['info'](_0x1b78c1('0xe'),_0x29b56b,_0xde9895);})[_0x5a8b0f('0x2')](function(_0x2bfd78){const _0x4523b6=_0x5a8b0f;logger[_0x4523b6('0x14')](util['inspect'](_0x2bfd78,{'showHidden':![],'depth':null}));});});},Migration[_0x4e6472('0x18')]['renameColumn']=function(_0x2d8813,_0x33faf0,_0x29f21a){const _0x442965=_0x4e6472,_0x1145fb=this;this['sequence'][_0x442965('0xa')](function(){const _0x4a7997=_0x442965;return _0x1145fb[_0x4a7997('0x17')][_0x4a7997('0x13')](_0x2d8813,_0x33faf0,_0x29f21a)[_0x4a7997('0x1c')](function(){const _0x1202f7=_0x4a7997;logger[_0x1202f7('0x14')](_0x1202f7('0x9'),_0x33faf0,_0x29f21a,_0x2d8813);})[_0x4a7997('0x2')](function(_0x4cfe89){const _0x55aa95=_0x4a7997;logger[_0x55aa95('0x14')](util[_0x55aa95('0x0')](_0x4cfe89,{'showHidden':![],'depth':null}));});});},Migration[_0x4e6472('0x18')]['final']=function(_0x201adc){const _0x23667a=_0x4e6472;this[_0x23667a('0x3')][_0x23667a('0xa')](function(){return _0x201adc();});},module[_0x4e6472('0x1e')]={'up':function(_0x4e11a0){return new Promise(function(_0x5521ae){const _0x3ed00c=a984_0x1f3d,_0x289c72=new Migration(_0x4e11a0);_0x289c72[_0x3ed00c('0x10')](_0x5521ae);});},'down':function(){}};
\ No newline at end of file
+const a984_0x4ae2=['removeIndex\x20%s\x20%s','inspect','addColumn','then','queryInterface','stringify','catch','Removed\x20column\x20%s\x20from\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','sequence','final','renameColumn','removeIndex','changeColumn','table\x20dropped\x20%s','sequelize','addIndex','query\x20%s','removeColumn','dropTable','prototype','Added\x20column\x20%s\x20to\x20%s','info','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','addIndex\x20%s\x20%s\x20%s','query'];(function(_0x15e003,_0x4ae247){const _0x5e23ec=function(_0x52a8d7){while(--_0x52a8d7){_0x15e003['push'](_0x15e003['shift']());}};_0x5e23ec(++_0x4ae247);}(a984_0x4ae2,0xa0));const a984_0x5e23=function(_0x15e003,_0x4ae247){_0x15e003=_0x15e003-0x0;let _0x5e23ec=a984_0x4ae2[_0x15e003];return _0x5e23ec;};const _0x25d33a=a984_0x5e23;'use strict';const util=require('util'),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence['prototype'][_0x25d33a('0x5')]=function(_0x52a8d7){const _0x453e85=_0x25d33a;this[_0x453e85('0x11')]=this[_0x453e85('0x11')]?this[_0x453e85('0x11')]['finally'](_0x52a8d7):_0x52a8d7();};const Migration=function(_0x171be0){const _0x35bc9b=_0x25d33a;this[_0x35bc9b('0xc')]=_0x171be0,this['sequence']=new Sequence();};Migration[_0x25d33a('0x1')][_0x25d33a('0x16')]=function(_0x1be01e,_0x28e1a2,_0x1a8564){const _0xf6a3c7=_0x25d33a,_0x59a8a0=this;this[_0xf6a3c7('0x12')]['enqueue'](function(){const _0x1dd22c=_0xf6a3c7;return _0x59a8a0[_0x1dd22c('0xc')][_0x1dd22c('0x16')](_0x1be01e,_0x28e1a2,_0x1a8564)[_0x1dd22c('0xb')](function(){const _0x1177c0=_0x1dd22c;logger[_0x1177c0('0x3')](_0x1177c0('0x10'),_0x28e1a2,_0x1be01e);})[_0x1dd22c('0xe')](function(_0x297373){const _0x538b78=_0x1dd22c;logger[_0x538b78('0x3')](JSON[_0x538b78('0xd')](_0x297373));});});},Migration[_0x25d33a('0x1')][_0x25d33a('0xa')]=function(_0x17e485,_0x4b3327,_0x572c67){const _0x31de49=_0x25d33a,_0x5dd27a=this;this[_0x31de49('0x12')]['enqueue'](function(){const _0x170e2e=_0x31de49;return _0x5dd27a['queryInterface'][_0x170e2e('0xa')](_0x17e485,_0x4b3327,_0x572c67)[_0x170e2e('0xb')](function(){const _0xcb7d94=_0x170e2e;logger[_0xcb7d94('0x3')](_0xcb7d94('0x2'),_0x4b3327,_0x17e485);})[_0x170e2e('0xe')](function(_0x533b80){const _0x5f0957=_0x170e2e;logger[_0x5f0957('0x3')](JSON[_0x5f0957('0xd')](_0x533b80));});});},Migration['prototype']['dropTable']=function(_0x581afd){const _0x25064d=_0x25d33a,_0x424345=this;this[_0x25064d('0x12')][_0x25064d('0x5')](function(){const _0x340348=_0x25064d;return _0x424345[_0x340348('0xc')][_0x340348('0x0')](_0x581afd,{'force':!![]})[_0x340348('0xb')](function(){const _0x3535c8=_0x340348;logger['info'](_0x3535c8('0x17'),_0x581afd);})[_0x340348('0xe')](function(_0x5af7d5){const _0x19d17a=_0x340348;logger[_0x19d17a('0x3')](JSON[_0x19d17a('0xd')](_0x5af7d5));});});},Migration[_0x25d33a('0x1')]['addIndex']=function(_0x11c3a3,_0x52d998,_0x25b831){const _0x17b38a=_0x25d33a,_0x44dbc6=this;this[_0x17b38a('0x12')][_0x17b38a('0x5')](function(){const _0x3149d3=_0x17b38a;return _0x44dbc6['queryInterface'][_0x3149d3('0x19')](_0x11c3a3,_0x52d998,{'indexName':_0x25b831})[_0x3149d3('0xb')](function(){const _0x5ab651=_0x3149d3;logger[_0x5ab651('0x3')](_0x5ab651('0x6'),_0x11c3a3,_0x52d998['join'](','),_0x25b831);})['catch'](function(_0x4ecc25){const _0x1e8528=_0x3149d3;logger[_0x1e8528('0x3')](JSON[_0x1e8528('0xd')](_0x4ecc25));});});},Migration['prototype'][_0x25d33a('0x15')]=function(_0xdb966e,_0x58b8f5){const _0x515005=_0x25d33a,_0x233b69=this;this['sequence'][_0x515005('0x5')](function(){const _0x4ca99c=_0x515005;return _0x233b69[_0x4ca99c('0xc')]['removeIndex'](_0xdb966e,_0x58b8f5)[_0x4ca99c('0xb')](function(){const _0x2fd81a=_0x4ca99c;logger[_0x2fd81a('0x3')](_0x2fd81a('0x8'),_0xdb966e,_0x58b8f5);})['catch'](function(_0x4ac9ba){const _0x259dbd=_0x4ca99c;logger[_0x259dbd('0x3')](JSON[_0x259dbd('0xd')](_0x4ac9ba));});});},Migration['prototype'][_0x25d33a('0x7')]=function(_0x65ca57){const _0x4b513f=_0x25d33a,_0x59fb86=this;this[_0x4b513f('0x12')]['enqueue'](function(){const _0x266f07=_0x4b513f;return _0x59fb86['queryInterface'][_0x266f07('0x18')][_0x266f07('0x7')](_0x65ca57)[_0x266f07('0xb')](function(){const _0x126552=_0x266f07;logger['info'](_0x126552('0x1a'),_0x65ca57);})[_0x266f07('0xe')](function(_0x22b104){const _0x63357=_0x266f07;logger[_0x63357('0x3')](JSON[_0x63357('0xd')](_0x22b104));});});},Migration[_0x25d33a('0x1')]['removeColumn']=function(_0x57e141,_0x54ab20){const _0x5d584d=_0x25d33a,_0x597bb5=this;this['sequence'][_0x5d584d('0x5')](function(){const _0x21d1e6=_0x5d584d;return _0x597bb5[_0x21d1e6('0xc')][_0x21d1e6('0x1b')](_0x57e141,_0x54ab20)['then'](function(){const _0x1fe190=_0x21d1e6;logger[_0x1fe190('0x3')](_0x1fe190('0xf'),_0x54ab20,_0x57e141);})[_0x21d1e6('0xe')](function(_0x1a7e74){const _0x15c4ac=_0x21d1e6;logger['info'](util[_0x15c4ac('0x9')](_0x1a7e74,{'showHidden':![],'depth':null}));});});},Migration[_0x25d33a('0x1')][_0x25d33a('0x14')]=function(_0x520113,_0x10a767,_0x5a9731){const _0x282aee=_0x25d33a,_0x5f5294=this;this[_0x282aee('0x12')][_0x282aee('0x5')](function(){const _0x3813ea=_0x282aee;return _0x5f5294[_0x3813ea('0xc')][_0x3813ea('0x14')](_0x520113,_0x10a767,_0x5a9731)['then'](function(){const _0x2a7f87=_0x3813ea;logger[_0x2a7f87('0x3')](_0x2a7f87('0x4'),_0x10a767,_0x5a9731,_0x520113);})['catch'](function(_0x4b1a30){const _0xfef11e=_0x3813ea;logger[_0xfef11e('0x3')](util[_0xfef11e('0x9')](_0x4b1a30,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x25d33a('0x13')]=function(_0x2d9457){const _0x40d61c=_0x25d33a;this[_0x40d61c('0x12')][_0x40d61c('0x5')](function(){return _0x2d9457();});},module['exports']={'up':function(_0x4cc9ac){return new Promise(function(_0x3bc718){const _0x242a40=a984_0x5e23,_0x4b1ab4=new Migration(_0x4cc9ac);_0x4b1ab4[_0x242a40('0x13')](_0x3bc718);});},'down':function(){}};
\ No newline at end of file