Built motion from commit ded33658aad58fc8de845a8299a9db59a88cc353. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.17.js
index 6b53d3d..1fa01e3 100644 (file)
@@ -1 +1 @@
-const a1000_0x1639=['indexName','enqueue','changeColumn','migration','prototype','finally','then','query\x20%s','catch','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','exports','sequelize','indicesType','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','removeIndex','addColumn','queryInterface','sequence','renameColumn','Removed\x20column\x20%s\x20from\x20%s','info','dropTable','table\x20dropped\x20%s','stringify','addIndex','final','util','tail','query'];(function(_0x4bae5,_0x163980){const _0x4af7e6=function(_0x52fb68){while(--_0x52fb68){_0x4bae5['push'](_0x4bae5['shift']());}};_0x4af7e6(++_0x163980);}(a1000_0x1639,0x100));const a1000_0x4af7=function(_0x4bae5,_0x163980){_0x4bae5=_0x4bae5-0x0;let _0x4af7e6=a1000_0x1639[_0x4bae5];return _0x4af7e6;};const _0x4344c6=a1000_0x4af7;'use strict';const util=require(_0x4344c6('0x1d')),logger=require('../config/logger')(_0x4344c6('0x3')),Sequence=function(){};Sequence[_0x4344c6('0x4')]['enqueue']=function(_0x52fb68){const _0x461016=_0x4344c6;this[_0x461016('0x1e')]=this[_0x461016('0x1e')]?this['tail'][_0x461016('0x5')](_0x52fb68):_0x52fb68();};const Migration=function(_0x15d4fc){const _0x223f06=_0x4344c6;this[_0x223f06('0x13')]=_0x15d4fc,this[_0x223f06('0x14')]=new Sequence();};Migration['prototype'][_0x4344c6('0x2')]=function(_0x1cc10b,_0x265d29,_0x390753){const _0x2c67cb=_0x4344c6,_0x288c3b=this;this[_0x2c67cb('0x14')]['enqueue'](function(){const _0x4d4a93=_0x2c67cb;return _0x288c3b[_0x4d4a93('0x13')][_0x4d4a93('0x2')](_0x1cc10b,_0x265d29,_0x390753)[_0x4d4a93('0x6')](function(){const _0x179159=_0x4d4a93;logger[_0x179159('0x17')](_0x179159('0xf'),_0x265d29,_0x1cc10b);})[_0x4d4a93('0x8')](function(_0x1a6873){const _0x5d4636=_0x4d4a93;logger[_0x5d4636('0x17')](JSON['stringify'](_0x1a6873));});});},Migration[_0x4344c6('0x4')][_0x4344c6('0x12')]=function(_0x522ef2,_0x409eba,_0x309116){const _0x1d6cf6=this;this['sequence']['enqueue'](function(){const _0x246b29=a1000_0x4af7;return _0x1d6cf6['queryInterface'][_0x246b29('0x12')](_0x522ef2,_0x409eba,_0x309116)[_0x246b29('0x6')](function(){const _0x4dd285=_0x246b29;logger[_0x4dd285('0x17')]('Added\x20column\x20%s\x20to\x20%s',_0x409eba,_0x522ef2);})['catch'](function(_0x1871b2){const _0x4e5d87=_0x246b29;logger[_0x4e5d87('0x17')](JSON[_0x4e5d87('0x1a')](_0x1871b2));});});},Migration[_0x4344c6('0x4')][_0x4344c6('0x18')]=function(_0x4a7a4e){const _0x277320=_0x4344c6,_0x54782d=this;this[_0x277320('0x14')][_0x277320('0x1')](function(){const _0x7f0bb2=_0x277320;return _0x54782d[_0x7f0bb2('0x13')][_0x7f0bb2('0x18')](_0x4a7a4e,{'force':!![]})[_0x7f0bb2('0x6')](function(){const _0xe44bc1=_0x7f0bb2;logger[_0xe44bc1('0x17')](_0xe44bc1('0x19'),_0x4a7a4e);})['catch'](function(_0x2c167a){const _0x2bbd4c=_0x7f0bb2;logger[_0x2bbd4c('0x17')](JSON['stringify'](_0x2c167a));});});},Migration[_0x4344c6('0x4')][_0x4344c6('0x1b')]=function(_0x233cb5,_0x3ae19d,_0x51428c){const _0x38ea0b=_0x4344c6,_0x28422a=this;this[_0x38ea0b('0x14')]['enqueue'](function(){const _0x50ca1b=_0x38ea0b;return _0x28422a[_0x50ca1b('0x13')][_0x50ca1b('0x1b')](_0x233cb5,_0x3ae19d,{'indexName':_0x51428c[_0x50ca1b('0x0')],'indicesType':_0x51428c['indicesType']})[_0x50ca1b('0x6')](function(){const _0x52e933=_0x50ca1b;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x233cb5,_0x3ae19d[_0x52e933('0xa')](','),_0x51428c[_0x52e933('0x0')],_0x51428c[_0x52e933('0xd')]);})[_0x50ca1b('0x8')](function(_0x4f1298){const _0x2e7d2e=_0x50ca1b;logger[_0x2e7d2e('0x17')](JSON['stringify'](_0x4f1298));});});},Migration['prototype'][_0x4344c6('0x11')]=function(_0x3330db,_0x5eda10){const _0x5985a7=_0x4344c6,_0x34f1b4=this;this[_0x5985a7('0x14')][_0x5985a7('0x1')](function(){const _0x598476=_0x5985a7;return _0x34f1b4[_0x598476('0x13')][_0x598476('0x11')](_0x3330db,_0x5eda10)[_0x598476('0x6')](function(){const _0x143834=_0x598476;logger[_0x143834('0x17')]('removeIndex\x20%s\x20%s',_0x3330db,_0x5eda10);})[_0x598476('0x8')](function(_0x225697){const _0x5ef23f=_0x598476;logger['info'](JSON[_0x5ef23f('0x1a')](_0x225697));});});},Migration['prototype']['query']=function(_0xdec360){const _0x1254a6=_0x4344c6,_0x238d4e=this;this[_0x1254a6('0x14')][_0x1254a6('0x1')](function(){const _0x1c6c67=_0x1254a6;return _0x238d4e[_0x1c6c67('0x13')][_0x1c6c67('0xc')][_0x1c6c67('0x1f')](_0xdec360)[_0x1c6c67('0x6')](function(){const _0x5156f6=_0x1c6c67;logger[_0x5156f6('0x17')](_0x5156f6('0x7'),_0xdec360);})[_0x1c6c67('0x8')](function(_0x459443){const _0x279e1e=_0x1c6c67;logger['info'](JSON[_0x279e1e('0x1a')](_0x459443));});});},Migration['prototype'][_0x4344c6('0x10')]=function(_0x204c8e,_0x409602){const _0x3648cb=_0x4344c6,_0x4d5c31=this;this[_0x3648cb('0x14')]['enqueue'](function(){const _0x44d5d8=_0x3648cb;return _0x4d5c31[_0x44d5d8('0x13')]['removeColumn'](_0x204c8e,_0x409602)[_0x44d5d8('0x6')](function(){const _0x51dd15=_0x44d5d8;logger[_0x51dd15('0x17')](_0x51dd15('0x16'),_0x409602,_0x204c8e);})[_0x44d5d8('0x8')](function(_0x1cbb4a){const _0x1b63e8=_0x44d5d8;logger[_0x1b63e8('0x17')](util[_0x1b63e8('0xe')](_0x1cbb4a,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4344c6('0x15')]=function(_0x5d54b6,_0x292124,_0x2e03ec){const _0x5202d1=_0x4344c6,_0x317aa9=this;this[_0x5202d1('0x14')][_0x5202d1('0x1')](function(){const _0x28f785=_0x5202d1;return _0x317aa9['queryInterface'][_0x28f785('0x15')](_0x5d54b6,_0x292124,_0x2e03ec)[_0x28f785('0x6')](function(){const _0xa2475d=_0x28f785;logger[_0xa2475d('0x17')](_0xa2475d('0x9'),_0x292124,_0x2e03ec,_0x5d54b6);})[_0x28f785('0x8')](function(_0x34053a){const _0x240eee=_0x28f785;logger[_0x240eee('0x17')](util['inspect'](_0x34053a,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4344c6('0x1c')]=function(_0x2aa7ef){const _0x50baea=_0x4344c6;this['sequence'][_0x50baea('0x1')](function(){return _0x2aa7ef();});},module[_0x4344c6('0xb')]={'up':function(_0xc3f577){return new Promise(function(_0x342128){const _0x489ddb=a1000_0x4af7,_0x28eaaa=new Migration(_0xc3f577);_0x28eaaa[_0x489ddb('0x1c')](_0x342128);});},'down':function(){}};
\ No newline at end of file
+const a1000_0x51d9=['stringify','removeIndex','sequence','../config/logger','dropTable','Added\x20column\x20%s\x20to\x20%s','query','tail','queryInterface','sequelize','prototype','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','indexName','migration','addColumn','Removed\x20column\x20%s\x20from\x20%s','exports','inspect','final','removeColumn','query\x20%s','then','renameColumn','info','removeIndex\x20%s\x20%s','catch','indicesType','changeColumn','enqueue','addIndex','join','finally','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x388a0d,_0x51d94b){const _0x45e20b=function(_0x4c14c9){while(--_0x4c14c9){_0x388a0d['push'](_0x388a0d['shift']());}};_0x45e20b(++_0x51d94b);}(a1000_0x51d9,0x1c2));const a1000_0x45e2=function(_0x388a0d,_0x51d94b){_0x388a0d=_0x388a0d-0x0;let _0x45e20b=a1000_0x51d9[_0x388a0d];return _0x45e20b;};const _0x33538d=a1000_0x45e2;'use strict';const util=require('util'),logger=require(_0x33538d('0xf'))(_0x33538d('0x19')),Sequence=function(){};Sequence[_0x33538d('0x16')][_0x33538d('0x7')]=function(_0x4c14c9){const _0x4250dd=_0x33538d;this[_0x4250dd('0x13')]=this[_0x4250dd('0x13')]?this['tail'][_0x4250dd('0xa')](_0x4c14c9):_0x4c14c9();};const Migration=function(_0x567fd0){const _0x2030ec=_0x33538d;this[_0x2030ec('0x14')]=_0x567fd0,this[_0x2030ec('0xe')]=new Sequence();};Migration[_0x33538d('0x16')][_0x33538d('0x6')]=function(_0x132f65,_0x27d3e3,_0x5064d8){const _0xab11cb=_0x33538d,_0x41530d=this;this[_0xab11cb('0xe')][_0xab11cb('0x7')](function(){const _0x364180=_0xab11cb;return _0x41530d[_0x364180('0x14')][_0x364180('0x6')](_0x132f65,_0x27d3e3,_0x5064d8)[_0x364180('0x0')](function(){const _0x1fe58a=_0x364180;logger[_0x1fe58a('0x2')](_0x1fe58a('0xb'),_0x27d3e3,_0x132f65);})['catch'](function(_0xfaf276){const _0x1410c1=_0x364180;logger[_0x1410c1('0x2')](JSON[_0x1410c1('0xc')](_0xfaf276));});});},Migration[_0x33538d('0x16')][_0x33538d('0x1a')]=function(_0x4c5db6,_0x3c168e,_0x3cc9f8){const _0x3a14a2=_0x33538d,_0x572831=this;this[_0x3a14a2('0xe')][_0x3a14a2('0x7')](function(){const _0x3492d0=_0x3a14a2;return _0x572831[_0x3492d0('0x14')]['addColumn'](_0x4c5db6,_0x3c168e,_0x3cc9f8)[_0x3492d0('0x0')](function(){const _0x13c9e8=_0x3492d0;logger[_0x13c9e8('0x2')](_0x13c9e8('0x11'),_0x3c168e,_0x4c5db6);})['catch'](function(_0x9ceea0){const _0x398c4b=_0x3492d0;logger['info'](JSON[_0x398c4b('0xc')](_0x9ceea0));});});},Migration[_0x33538d('0x16')][_0x33538d('0x10')]=function(_0x331f63){const _0x3bb0b7=_0x33538d,_0x1924ac=this;this['sequence'][_0x3bb0b7('0x7')](function(){const _0x4f4be9=_0x3bb0b7;return _0x1924ac[_0x4f4be9('0x14')][_0x4f4be9('0x10')](_0x331f63,{'force':!![]})[_0x4f4be9('0x0')](function(){const _0x1957ab=_0x4f4be9;logger[_0x1957ab('0x2')]('table\x20dropped\x20%s',_0x331f63);})[_0x4f4be9('0x4')](function(_0x2de0a7){const _0x28989d=_0x4f4be9;logger[_0x28989d('0x2')](JSON[_0x28989d('0xc')](_0x2de0a7));});});},Migration[_0x33538d('0x16')][_0x33538d('0x8')]=function(_0x6caff0,_0x146ce6,_0x33cb1f){const _0x13d2a5=_0x33538d,_0x40bf11=this;this[_0x13d2a5('0xe')]['enqueue'](function(){const _0x5e6806=_0x13d2a5;return _0x40bf11['queryInterface'][_0x5e6806('0x8')](_0x6caff0,_0x146ce6,{'indexName':_0x33cb1f[_0x5e6806('0x18')],'indicesType':_0x33cb1f[_0x5e6806('0x5')]})[_0x5e6806('0x0')](function(){const _0x1ee047=_0x5e6806;logger[_0x1ee047('0x2')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x6caff0,_0x146ce6[_0x1ee047('0x9')](','),_0x33cb1f[_0x1ee047('0x18')],_0x33cb1f[_0x1ee047('0x5')]);})['catch'](function(_0x1c5e16){const _0x3e2816=_0x5e6806;logger[_0x3e2816('0x2')](JSON[_0x3e2816('0xc')](_0x1c5e16));});});},Migration[_0x33538d('0x16')][_0x33538d('0xd')]=function(_0x43594f,_0x44dfee){const _0xd6ff08=this;this['sequence']['enqueue'](function(){const _0xc32da0=a1000_0x45e2;return _0xd6ff08[_0xc32da0('0x14')][_0xc32da0('0xd')](_0x43594f,_0x44dfee)['then'](function(){const _0x4be86e=_0xc32da0;logger[_0x4be86e('0x2')](_0x4be86e('0x3'),_0x43594f,_0x44dfee);})[_0xc32da0('0x4')](function(_0x24d2cb){const _0x5d052d=_0xc32da0;logger['info'](JSON[_0x5d052d('0xc')](_0x24d2cb));});});},Migration['prototype'][_0x33538d('0x12')]=function(_0x9d8240){const _0x2efe39=_0x33538d,_0x5106db=this;this[_0x2efe39('0xe')][_0x2efe39('0x7')](function(){const _0x21a44a=_0x2efe39;return _0x5106db[_0x21a44a('0x14')][_0x21a44a('0x15')][_0x21a44a('0x12')](_0x9d8240)[_0x21a44a('0x0')](function(){const _0x300a13=_0x21a44a;logger[_0x300a13('0x2')](_0x300a13('0x20'),_0x9d8240);})['catch'](function(_0x5dbca6){const _0xd68efd=_0x21a44a;logger[_0xd68efd('0x2')](JSON[_0xd68efd('0xc')](_0x5dbca6));});});},Migration['prototype'][_0x33538d('0x1f')]=function(_0x3822c0,_0x177cf7){const _0x4cd968=_0x33538d,_0x1ebefd=this;this['sequence'][_0x4cd968('0x7')](function(){const _0x4bba98=_0x4cd968;return _0x1ebefd[_0x4bba98('0x14')][_0x4bba98('0x1f')](_0x3822c0,_0x177cf7)[_0x4bba98('0x0')](function(){const _0x1a0503=_0x4bba98;logger[_0x1a0503('0x2')](_0x1a0503('0x1b'),_0x177cf7,_0x3822c0);})[_0x4bba98('0x4')](function(_0x487bd2){const _0x530473=_0x4bba98;logger[_0x530473('0x2')](util[_0x530473('0x1d')](_0x487bd2,{'showHidden':![],'depth':null}));});});},Migration[_0x33538d('0x16')][_0x33538d('0x1')]=function(_0x2dcc93,_0x5b7b7d,_0x56b956){const _0x227800=_0x33538d,_0x3f8122=this;this[_0x227800('0xe')]['enqueue'](function(){const _0x47aa5e=_0x227800;return _0x3f8122[_0x47aa5e('0x14')][_0x47aa5e('0x1')](_0x2dcc93,_0x5b7b7d,_0x56b956)[_0x47aa5e('0x0')](function(){const _0x2f5117=_0x47aa5e;logger[_0x2f5117('0x2')](_0x2f5117('0x17'),_0x5b7b7d,_0x56b956,_0x2dcc93);})[_0x47aa5e('0x4')](function(_0x41009a){const _0x1a0ad2=_0x47aa5e;logger['info'](util[_0x1a0ad2('0x1d')](_0x41009a,{'showHidden':![],'depth':null}));});});},Migration[_0x33538d('0x16')]['final']=function(_0x54dcff){const _0x151ec5=_0x33538d;this[_0x151ec5('0xe')]['enqueue'](function(){return _0x54dcff();});},module[_0x33538d('0x1c')]={'up':function(_0x237f6a){return new Promise(function(_0xd28363){const _0x17f63d=a1000_0x45e2,_0x501a20=new Migration(_0x237f6a);_0x501a20[_0x17f63d('0x1e')](_0xd28363);});},'down':function(){}};
\ No newline at end of file