Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.98.js
index 108c23d..7eb23c7 100644 (file)
@@ -1 +1 @@
-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
+const a1154_0x4857=['inspect','final','sequelize','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','table\x20dropped\x20%s','queryInterface','migration','changeColumn','info','then','query\x20%s','prototype','renameColumn','Removed\x20column\x20%s\x20from\x20%s','enqueue','removeIndex','util','addIndex\x20%s\x20%s\x20%s','sequence','catch','addColumn','tail','stringify'];(function(_0x37abf2,_0x38ded){const _0x4857b1=function(_0x4a69d4){while(--_0x4a69d4){_0x37abf2['push'](_0x37abf2['shift']());}};_0x4857b1(++_0x38ded);}(a1154_0x4857,0xa9));const a1154_0x4a69=function(_0x37abf2,_0x38ded){_0x37abf2=_0x37abf2-0x171;let _0x4857b1=a1154_0x4857[_0x37abf2];return _0x4857b1;};const a1154_0x1ee0f8=a1154_0x4a69;'use strict';const util=require(a1154_0x1ee0f8(0x189)),logger=require('../config/logger')(a1154_0x1ee0f8(0x17f)),Sequence=function(){};Sequence[a1154_0x1ee0f8(0x184)]['enqueue']=function(_0x1466fa){const _0x35825c=a1154_0x1ee0f8;this[_0x35825c(0x175)]=this[_0x35825c(0x175)]?this['tail']['finally'](_0x1466fa):_0x1466fa();};const Migration=function(_0x459951){const _0x864b9=a1154_0x1ee0f8;this[_0x864b9(0x17e)]=_0x459951,this[_0x864b9(0x172)]=new Sequence();};Migration[a1154_0x1ee0f8(0x184)][a1154_0x1ee0f8(0x180)]=function(_0x5332e5,_0x504909,_0x126955){const _0x528803=a1154_0x1ee0f8,_0xdb8c1d=this;this[_0x528803(0x172)][_0x528803(0x187)](function(){const _0x23d19a=_0x528803;return _0xdb8c1d[_0x23d19a(0x17e)][_0x23d19a(0x180)](_0x5332e5,_0x504909,_0x126955)[_0x23d19a(0x182)](function(){const _0xf6d7d7=_0x23d19a;logger[_0xf6d7d7(0x181)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x504909,_0x5332e5);})[_0x23d19a(0x173)](function(_0x2a652a){const _0x1e873e=_0x23d19a;logger[_0x1e873e(0x181)](JSON[_0x1e873e(0x176)](_0x2a652a));});});},Migration[a1154_0x1ee0f8(0x184)][a1154_0x1ee0f8(0x174)]=function(_0x540dac,_0x36f140,_0x3654fd){const _0x2e4ca2=a1154_0x1ee0f8,_0x30e7e6=this;this[_0x2e4ca2(0x172)][_0x2e4ca2(0x187)](function(){const _0x411939=_0x2e4ca2;return _0x30e7e6[_0x411939(0x17e)]['addColumn'](_0x540dac,_0x36f140,_0x3654fd)[_0x411939(0x182)](function(){const _0x2d40d3=_0x411939;logger[_0x2d40d3(0x181)]('Added\x20column\x20%s\x20to\x20%s',_0x36f140,_0x540dac);})['catch'](function(_0x12c744){const _0x4007f8=_0x411939;logger['info'](JSON[_0x4007f8(0x176)](_0x12c744));});});},Migration[a1154_0x1ee0f8(0x184)][a1154_0x1ee0f8(0x17a)]=function(_0x23eb27){const _0x1ed407=a1154_0x1ee0f8,_0x4a34f3=this;this[_0x1ed407(0x172)][_0x1ed407(0x187)](function(){return _0x4a34f3['queryInterface']['dropTable'](_0x23eb27,{'force':!![]})['then'](function(){const _0x39656e=a1154_0x4a69;logger[_0x39656e(0x181)](_0x39656e(0x17d),_0x23eb27);})['catch'](function(_0x482875){const _0x3f86d5=a1154_0x4a69;logger['info'](JSON[_0x3f86d5(0x176)](_0x482875));});});},Migration[a1154_0x1ee0f8(0x184)]['addIndex']=function(_0x21348f,_0x12d200,_0xf18ca6){const _0x25a78d=a1154_0x1ee0f8,_0xf524c7=this;this[_0x25a78d(0x172)][_0x25a78d(0x187)](function(){return _0xf524c7['queryInterface']['addIndex'](_0x21348f,_0x12d200,{'indexName':_0xf18ca6})['then'](function(){const _0xa4aac7=a1154_0x4a69;logger[_0xa4aac7(0x181)](_0xa4aac7(0x171),_0x21348f,_0x12d200['join'](','),_0xf18ca6);})['catch'](function(_0x96104c){const _0x358934=a1154_0x4a69;logger['info'](JSON[_0x358934(0x176)](_0x96104c));});});},Migration[a1154_0x1ee0f8(0x184)][a1154_0x1ee0f8(0x188)]=function(_0x508862,_0x306746){const _0x360613=a1154_0x1ee0f8,_0x5b9441=this;this['sequence'][_0x360613(0x187)](function(){const _0x1fdc3b=_0x360613;return _0x5b9441['queryInterface']['removeIndex'](_0x508862,_0x306746)[_0x1fdc3b(0x182)](function(){const _0x44292a=_0x1fdc3b;logger[_0x44292a(0x181)]('removeIndex\x20%s\x20%s',_0x508862,_0x306746);})[_0x1fdc3b(0x173)](function(_0x37ceec){const _0xed0606=_0x1fdc3b;logger[_0xed0606(0x181)](JSON[_0xed0606(0x176)](_0x37ceec));});});},Migration[a1154_0x1ee0f8(0x184)]['query']=function(_0x7e6278){const _0x49038f=a1154_0x1ee0f8,_0x37890e=this;this['sequence'][_0x49038f(0x187)](function(){const _0x49fe30=_0x49038f;return _0x37890e[_0x49fe30(0x17e)][_0x49fe30(0x179)]['query'](_0x7e6278)[_0x49fe30(0x182)](function(){const _0x2ea3e1=_0x49fe30;logger[_0x2ea3e1(0x181)](_0x2ea3e1(0x183),_0x7e6278);})[_0x49fe30(0x173)](function(_0x78e15f){const _0x4f41dd=_0x49fe30;logger[_0x4f41dd(0x181)](JSON[_0x4f41dd(0x176)](_0x78e15f));});});},Migration[a1154_0x1ee0f8(0x184)][a1154_0x1ee0f8(0x17c)]=function(_0x891987,_0x5bf3df){const _0x1e92e8=a1154_0x1ee0f8,_0x16aa63=this;this['sequence'][_0x1e92e8(0x187)](function(){const _0x5e9be1=_0x1e92e8;return _0x16aa63[_0x5e9be1(0x17e)][_0x5e9be1(0x17c)](_0x891987,_0x5bf3df)[_0x5e9be1(0x182)](function(){const _0x14be35=_0x5e9be1;logger[_0x14be35(0x181)](_0x14be35(0x186),_0x5bf3df,_0x891987);})[_0x5e9be1(0x173)](function(_0x47ed83){logger['info'](util['inspect'](_0x47ed83,{'showHidden':![],'depth':null}));});});},Migration[a1154_0x1ee0f8(0x184)][a1154_0x1ee0f8(0x185)]=function(_0x517e71,_0x501a52,_0x2cdd9a){const _0x58e625=a1154_0x1ee0f8,_0x4cfe10=this;this[_0x58e625(0x172)][_0x58e625(0x187)](function(){const _0x2f363a=_0x58e625;return _0x4cfe10['queryInterface'][_0x2f363a(0x185)](_0x517e71,_0x501a52,_0x2cdd9a)[_0x2f363a(0x182)](function(){const _0x221735=_0x2f363a;logger['info'](_0x221735(0x17b),_0x501a52,_0x2cdd9a,_0x517e71);})[_0x2f363a(0x173)](function(_0x37a8ec){const _0x111f9a=_0x2f363a;logger[_0x111f9a(0x181)](util[_0x111f9a(0x177)](_0x37a8ec,{'showHidden':![],'depth':null}));});});},Migration[a1154_0x1ee0f8(0x184)][a1154_0x1ee0f8(0x178)]=function(_0x38963e){const _0x115fe4=a1154_0x1ee0f8;this[_0x115fe4(0x172)][_0x115fe4(0x187)](function(){return _0x38963e();});},module['exports']={'up':function(_0x1c20d7){return new Promise(function(_0x437403){const _0x4a11b8=new Migration(_0x1c20d7);_0x4a11b8['final'](_0x437403);});},'down':function(){}};
\ No newline at end of file