Built motion from commit 129fb4d95212661e48f0db455e75d668addbaddf. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.11.js
index ff43274..7095d44 100644 (file)
@@ -1 +1 @@
-const a993_0x2845=['dropTable','final','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','query','changeColumn','indicesType','renameColumn','addIndex','join','stringify','catch','sequence','addIndex\x20%s\x20%s\x20%s\x20[%s]','table\x20dropped\x20%s','removeIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','inspect','enqueue','util','tail','info','removeIndex\x20%s\x20%s','sequelize','Added\x20column\x20%s\x20to\x20%s','queryInterface','addColumn','then','indexName','query\x20%s','removeColumn'];(function(_0x5e03ec,_0x2845e0){const _0x23eb83=function(_0x5bcc13){while(--_0x5bcc13){_0x5e03ec['push'](_0x5e03ec['shift']());}};_0x23eb83(++_0x2845e0);}(a993_0x2845,0xb1));const a993_0x23eb=function(_0x5e03ec,_0x2845e0){_0x5e03ec=_0x5e03ec-0x0;let _0x23eb83=a993_0x2845[_0x5e03ec];return _0x23eb83;};const _0x5297e3=a993_0x23eb;'use strict';const util=require(_0x5297e3('0x3')),logger=require(_0x5297e3('0x13'))('migration'),Sequence=function(){};Sequence['prototype'][_0x5297e3('0x2')]=function(_0x5bcc13){const _0x434b01=_0x5297e3;this[_0x434b01('0x4')]=this[_0x434b01('0x4')]?this[_0x434b01('0x4')]['finally'](_0x5bcc13):_0x5bcc13();};const Migration=function(_0xa94c27){const _0x4f4590=_0x5297e3;this['queryInterface']=_0xa94c27,this[_0x4f4590('0x1c')]=new Sequence();};Migration[_0x5297e3('0x11')][_0x5297e3('0x15')]=function(_0x27e9f5,_0x3d0cdb,_0x36391b){const _0x2edde6=_0x5297e3,_0x535c3e=this;this[_0x2edde6('0x1c')][_0x2edde6('0x2')](function(){const _0x2482cc=_0x2edde6;return _0x535c3e[_0x2482cc('0x9')][_0x2482cc('0x15')](_0x27e9f5,_0x3d0cdb,_0x36391b)['then'](function(){const _0x4a4846=_0x2482cc;logger[_0x4a4846('0x5')](_0x4a4846('0x12'),_0x3d0cdb,_0x27e9f5);})['catch'](function(_0x3acaf0){const _0x29cbc3=_0x2482cc;logger[_0x29cbc3('0x5')](JSON['stringify'](_0x3acaf0));});});},Migration['prototype']['addColumn']=function(_0x493f78,_0x336c5e,_0x5a1c73){const _0x7bac02=_0x5297e3,_0x2cf42a=this;this['sequence'][_0x7bac02('0x2')](function(){const _0x41bd21=_0x7bac02;return _0x2cf42a[_0x41bd21('0x9')][_0x41bd21('0xa')](_0x493f78,_0x336c5e,_0x5a1c73)['then'](function(){const _0x1f2876=_0x41bd21;logger[_0x1f2876('0x5')](_0x1f2876('0x8'),_0x336c5e,_0x493f78);})[_0x41bd21('0x1b')](function(_0x261864){const _0x133d77=_0x41bd21;logger[_0x133d77('0x5')](JSON[_0x133d77('0x1a')](_0x261864));});});},Migration['prototype']['dropTable']=function(_0x401748){const _0x12cb07=_0x5297e3,_0x554636=this;this['sequence'][_0x12cb07('0x2')](function(){const _0x306d39=_0x12cb07;return _0x554636[_0x306d39('0x9')][_0x306d39('0xf')](_0x401748,{'force':!![]})[_0x306d39('0xb')](function(){const _0x1a7902=_0x306d39;logger[_0x1a7902('0x5')](_0x1a7902('0x1e'),_0x401748);})['catch'](function(_0x376304){const _0x3da8b9=_0x306d39;logger[_0x3da8b9('0x5')](JSON[_0x3da8b9('0x1a')](_0x376304));});});},Migration['prototype'][_0x5297e3('0x18')]=function(_0x376e28,_0xa4d79f,_0x5a0fcf){const _0x3cc03d=_0x5297e3,_0x571619=this;this[_0x3cc03d('0x1c')][_0x3cc03d('0x2')](function(){const _0x197661=_0x3cc03d;return _0x571619[_0x197661('0x9')][_0x197661('0x18')](_0x376e28,_0xa4d79f,{'indexName':_0x5a0fcf[_0x197661('0xc')],'indicesType':_0x5a0fcf[_0x197661('0x16')]})['then'](function(){const _0x4fd5f3=_0x197661;logger[_0x4fd5f3('0x5')](_0x4fd5f3('0x1d'),_0x376e28,_0xa4d79f[_0x4fd5f3('0x19')](','),_0x5a0fcf[_0x4fd5f3('0xc')],_0x5a0fcf[_0x4fd5f3('0x16')]);})[_0x197661('0x1b')](function(_0x430107){logger['info'](JSON['stringify'](_0x430107));});});},Migration[_0x5297e3('0x11')]['removeIndex']=function(_0xb6e77d,_0x4de4ff){const _0xe969af=_0x5297e3,_0x55da22=this;this[_0xe969af('0x1c')][_0xe969af('0x2')](function(){const _0x34d563=_0xe969af;return _0x55da22[_0x34d563('0x9')][_0x34d563('0x1f')](_0xb6e77d,_0x4de4ff)[_0x34d563('0xb')](function(){const _0x7df4a8=_0x34d563;logger[_0x7df4a8('0x5')](_0x7df4a8('0x6'),_0xb6e77d,_0x4de4ff);})[_0x34d563('0x1b')](function(_0x895ee6){const _0x3e23b2=_0x34d563;logger[_0x3e23b2('0x5')](JSON[_0x3e23b2('0x1a')](_0x895ee6));});});},Migration['prototype'][_0x5297e3('0x14')]=function(_0x10fd2b){const _0x180ae3=_0x5297e3,_0x2a79fe=this;this[_0x180ae3('0x1c')][_0x180ae3('0x2')](function(){const _0x555aa8=_0x180ae3;return _0x2a79fe[_0x555aa8('0x9')][_0x555aa8('0x7')]['query'](_0x10fd2b)[_0x555aa8('0xb')](function(){const _0x30a0ca=_0x555aa8;logger['info'](_0x30a0ca('0xd'),_0x10fd2b);})[_0x555aa8('0x1b')](function(_0x3c7e81){const _0x437eb2=_0x555aa8;logger[_0x437eb2('0x5')](JSON[_0x437eb2('0x1a')](_0x3c7e81));});});},Migration[_0x5297e3('0x11')][_0x5297e3('0xe')]=function(_0x244924,_0x12ba4d){const _0x1ae1ef=this;this['sequence']['enqueue'](function(){const _0x3f4c5e=a993_0x23eb;return _0x1ae1ef[_0x3f4c5e('0x9')][_0x3f4c5e('0xe')](_0x244924,_0x12ba4d)['then'](function(){const _0x5a4b60=_0x3f4c5e;logger[_0x5a4b60('0x5')]('Removed\x20column\x20%s\x20from\x20%s',_0x12ba4d,_0x244924);})[_0x3f4c5e('0x1b')](function(_0xb3af9f){const _0x423b5c=_0x3f4c5e;logger[_0x423b5c('0x5')](util[_0x423b5c('0x1')](_0xb3af9f,{'showHidden':![],'depth':null}));});});},Migration[_0x5297e3('0x11')][_0x5297e3('0x17')]=function(_0xec0681,_0x2990e2,_0x53dbd4){const _0x50be4f=_0x5297e3,_0x40959e=this;this[_0x50be4f('0x1c')][_0x50be4f('0x2')](function(){const _0x105629=_0x50be4f;return _0x40959e[_0x105629('0x9')][_0x105629('0x17')](_0xec0681,_0x2990e2,_0x53dbd4)[_0x105629('0xb')](function(){const _0x34b049=_0x105629;logger[_0x34b049('0x5')](_0x34b049('0x0'),_0x2990e2,_0x53dbd4,_0xec0681);})['catch'](function(_0x269595){const _0x6c425c=_0x105629;logger[_0x6c425c('0x5')](util[_0x6c425c('0x1')](_0x269595,{'showHidden':![],'depth':null}));});});},Migration[_0x5297e3('0x11')][_0x5297e3('0x10')]=function(_0x16cbf7){const _0x1dc4ff=_0x5297e3;this[_0x1dc4ff('0x1c')][_0x1dc4ff('0x2')](function(){return _0x16cbf7();});},module['exports']={'up':function(_0x508b2a){return new Promise(function(_0x2d5021){const _0x5b2298=new Migration(_0x508b2a);_0x5b2298['final'](_0x2d5021);});},'down':function(){}};
\ No newline at end of file
+const a1155_0x4234=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','indicesType','enqueue','prototype','../config/logger','removeIndex\x20%s\x20%s','queryInterface','table\x20dropped\x20%s','join','sequence','final','indexName','then','addIndex','changeColumn','removeColumn','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','finally','inspect','migration','addColumn','exports','util','removeIndex','dropTable','Removed\x20column\x20%s\x20from\x20%s','stringify','query\x20%s','tail'];(function(_0xac19d,_0x3ae04f){const _0x42342b=function(_0x3443be){while(--_0x3443be){_0xac19d['push'](_0xac19d['shift']());}};_0x42342b(++_0x3ae04f);}(a1155_0x4234,0xaf));const a1155_0x3443=function(_0xac19d,_0x3ae04f){_0xac19d=_0xac19d-0x11a;let _0x42342b=a1155_0x4234[_0xac19d];return _0x42342b;};const a1155_0x7f6717=a1155_0x3443;'use strict';const util=require(a1155_0x7f6717(0x124)),logger=require(a1155_0x7f6717(0x130))(a1155_0x7f6717(0x121)),Sequence=function(){};Sequence[a1155_0x7f6717(0x12f)][a1155_0x7f6717(0x12e)]=function(_0x4ed998){const _0x33ff36=a1155_0x7f6717;this[_0x33ff36(0x12a)]=this[_0x33ff36(0x12a)]?this['tail'][_0x33ff36(0x11f)](_0x4ed998):_0x4ed998();};const Migration=function(_0x2cce83){const _0x6c0368=a1155_0x7f6717;this['queryInterface']=_0x2cce83,this[_0x6c0368(0x135)]=new Sequence();};Migration[a1155_0x7f6717(0x12f)]['changeColumn']=function(_0x73abae,_0x436865,_0x1638d6){const _0x2f55c6=a1155_0x7f6717,_0x2b4ca2=this;this[_0x2f55c6(0x135)]['enqueue'](function(){const _0xc2318b=_0x2f55c6;return _0x2b4ca2[_0xc2318b(0x132)][_0xc2318b(0x11a)](_0x73abae,_0x436865,_0x1638d6)[_0xc2318b(0x138)](function(){const _0x5270a3=_0xc2318b;logger[_0x5270a3(0x12c)](_0x5270a3(0x11d),_0x436865,_0x73abae);})[_0xc2318b(0x11c)](function(_0x552b37){const _0x54e48e=_0xc2318b;logger[_0x54e48e(0x12c)](JSON[_0x54e48e(0x128)](_0x552b37));});});},Migration[a1155_0x7f6717(0x12f)][a1155_0x7f6717(0x122)]=function(_0x43536f,_0x4c2188,_0x137c9b){const _0x26bfbf=a1155_0x7f6717,_0x312476=this;this[_0x26bfbf(0x135)][_0x26bfbf(0x12e)](function(){const _0x35acbb=_0x26bfbf;return _0x312476[_0x35acbb(0x132)]['addColumn'](_0x43536f,_0x4c2188,_0x137c9b)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x4c2188,_0x43536f);})[_0x35acbb(0x11c)](function(_0x5a2850){const _0x214ae0=_0x35acbb;logger[_0x214ae0(0x12c)](JSON[_0x214ae0(0x128)](_0x5a2850));});});},Migration['prototype'][a1155_0x7f6717(0x126)]=function(_0x385fd2){const _0x3301cc=this;this['sequence']['enqueue'](function(){const _0x3a1017=a1155_0x3443;return _0x3301cc['queryInterface'][_0x3a1017(0x126)](_0x385fd2,{'force':!![]})[_0x3a1017(0x138)](function(){const _0x313378=_0x3a1017;logger['info'](_0x313378(0x133),_0x385fd2);})[_0x3a1017(0x11c)](function(_0x348682){const _0x4fce72=_0x3a1017;logger[_0x4fce72(0x12c)](JSON[_0x4fce72(0x128)](_0x348682));});});},Migration['prototype'][a1155_0x7f6717(0x139)]=function(_0x346068,_0x5b99a7,_0x344659){const _0x13a8d5=a1155_0x7f6717,_0xc89c9d=this;this[_0x13a8d5(0x135)][_0x13a8d5(0x12e)](function(){const _0x515559=_0x13a8d5;return _0xc89c9d[_0x515559(0x132)][_0x515559(0x139)](_0x346068,_0x5b99a7,{'indexName':_0x344659[_0x515559(0x137)],'indicesType':_0x344659[_0x515559(0x12d)]})[_0x515559(0x138)](function(){const _0x200f91=_0x515559;logger[_0x200f91(0x12c)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x346068,_0x5b99a7[_0x200f91(0x134)](','),_0x344659[_0x200f91(0x137)],_0x344659['indicesType']);})['catch'](function(_0x48199c){const _0x597a75=_0x515559;logger[_0x597a75(0x12c)](JSON[_0x597a75(0x128)](_0x48199c));});});},Migration[a1155_0x7f6717(0x12f)][a1155_0x7f6717(0x125)]=function(_0x2161ee,_0x52b5a3){const _0xbf50fe=a1155_0x7f6717,_0x1f74b6=this;this[_0xbf50fe(0x135)]['enqueue'](function(){const _0x5dfa34=_0xbf50fe;return _0x1f74b6[_0x5dfa34(0x132)][_0x5dfa34(0x125)](_0x2161ee,_0x52b5a3)[_0x5dfa34(0x138)](function(){const _0x18aa58=_0x5dfa34;logger[_0x18aa58(0x12c)](_0x18aa58(0x131),_0x2161ee,_0x52b5a3);})[_0x5dfa34(0x11c)](function(_0x1beba8){const _0x4efffc=_0x5dfa34;logger[_0x4efffc(0x12c)](JSON['stringify'](_0x1beba8));});});},Migration[a1155_0x7f6717(0x12f)]['query']=function(_0x2c0a1b){const _0x1e7957=a1155_0x7f6717,_0x271b65=this;this[_0x1e7957(0x135)][_0x1e7957(0x12e)](function(){const _0x231b8f=_0x1e7957;return _0x271b65['queryInterface']['sequelize']['query'](_0x2c0a1b)[_0x231b8f(0x138)](function(){const _0x7e2c41=_0x231b8f;logger[_0x7e2c41(0x12c)](_0x7e2c41(0x129),_0x2c0a1b);})[_0x231b8f(0x11c)](function(_0x295f4c){const _0xb41bad=_0x231b8f;logger['info'](JSON[_0xb41bad(0x128)](_0x295f4c));});});},Migration[a1155_0x7f6717(0x12f)][a1155_0x7f6717(0x11b)]=function(_0x53ce25,_0x26953c){const _0x10d7b8=a1155_0x7f6717,_0x263e11=this;this['sequence'][_0x10d7b8(0x12e)](function(){const _0x40a052=_0x10d7b8;return _0x263e11[_0x40a052(0x132)][_0x40a052(0x11b)](_0x53ce25,_0x26953c)['then'](function(){const _0x29b018=_0x40a052;logger[_0x29b018(0x12c)](_0x29b018(0x127),_0x26953c,_0x53ce25);})[_0x40a052(0x11c)](function(_0x4e5654){const _0xc81cca=_0x40a052;logger[_0xc81cca(0x12c)](util[_0xc81cca(0x120)](_0x4e5654,{'showHidden':![],'depth':null}));});});},Migration[a1155_0x7f6717(0x12f)][a1155_0x7f6717(0x11e)]=function(_0x3db426,_0x1fa0cc,_0x33fc41){const _0x25474f=a1155_0x7f6717,_0x4f4a04=this;this[_0x25474f(0x135)][_0x25474f(0x12e)](function(){const _0x4b9094=_0x25474f;return _0x4f4a04['queryInterface'][_0x4b9094(0x11e)](_0x3db426,_0x1fa0cc,_0x33fc41)[_0x4b9094(0x138)](function(){const _0x1cd14e=_0x4b9094;logger[_0x1cd14e(0x12c)](_0x1cd14e(0x12b),_0x1fa0cc,_0x33fc41,_0x3db426);})[_0x4b9094(0x11c)](function(_0x34c4d0){logger['info'](util['inspect'](_0x34c4d0,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x15fc6e){const _0x78f28f=a1155_0x7f6717;this[_0x78f28f(0x135)][_0x78f28f(0x12e)](function(){return _0x15fc6e();});},module[a1155_0x7f6717(0x123)]={'up':function(_0x21bf17){return new Promise(function(_0x28b80a){const _0x4e84da=a1155_0x3443,_0x56403e=new Migration(_0x21bf17);_0x56403e[_0x4e84da(0x136)](_0x28b80a);});},'down':function(){}};
\ No newline at end of file