Built motion from commit ecdc8e66766c75b1b08288b0ea13eb12d42606b4. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.93.js
index 903f085..5501ce4 100644 (file)
@@ -1 +1 @@
-const a985_0x24ab=['finally','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','util','queryInterface','dropTable','catch','addColumn','addIndex','final','sequence','info','changeColumn','inspect','stringify','removeIndex\x20%s\x20%s','exports','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','migration','addIndex\x20%s\x20%s\x20%s','tail','removeIndex','query','query\x20%s','removeColumn','../config/logger','Changed\x20column\x20%s\x20in\x20table\x20%s','enqueue','then','renameColumn','prototype'];(function(_0x14d245,_0x24abcb){const _0xfaa72f=function(_0x498bef){while(--_0x498bef){_0x14d245['push'](_0x14d245['shift']());}};_0xfaa72f(++_0x24abcb);}(a985_0x24ab,0x1d3));const a985_0xfaa7=function(_0x14d245,_0x24abcb){_0x14d245=_0x14d245-0x0;let _0xfaa72f=a985_0x24ab[_0x14d245];return _0xfaa72f;};const _0x279b5c=a985_0xfaa7;'use strict';const util=require(_0x279b5c('0x10')),logger=require(_0x279b5c('0x7'))(_0x279b5c('0x0')),Sequence=function(){};Sequence[_0x279b5c('0xc')][_0x279b5c('0x9')]=function(_0x498bef){const _0x44ce9a=_0x279b5c;this['tail']=this[_0x44ce9a('0x2')]?this[_0x44ce9a('0x2')][_0x44ce9a('0xd')](_0x498bef):_0x498bef();};const Migration=function(_0x4736fb){const _0x5e1ef0=_0x279b5c;this['queryInterface']=_0x4736fb,this[_0x5e1ef0('0x17')]=new Sequence();};Migration[_0x279b5c('0xc')][_0x279b5c('0x19')]=function(_0x3e5b2b,_0x3e7108,_0x537d12){const _0x3b636b=_0x279b5c,_0x97e9b3=this;this['sequence'][_0x3b636b('0x9')](function(){const _0xe9a3a0=_0x3b636b;return _0x97e9b3[_0xe9a3a0('0x11')][_0xe9a3a0('0x19')](_0x3e5b2b,_0x3e7108,_0x537d12)['then'](function(){const _0x24dfa0=_0xe9a3a0;logger[_0x24dfa0('0x18')](_0x24dfa0('0x8'),_0x3e7108,_0x3e5b2b);})[_0xe9a3a0('0x13')](function(_0x438dfc){const _0x2c6264=_0xe9a3a0;logger[_0x2c6264('0x18')](JSON[_0x2c6264('0x1b')](_0x438dfc));});});},Migration[_0x279b5c('0xc')][_0x279b5c('0x14')]=function(_0x409e69,_0x35d4ab,_0x36ec7e){const _0x520d3e=_0x279b5c,_0x4ab4ab=this;this['sequence'][_0x520d3e('0x9')](function(){const _0x98fd49=_0x520d3e;return _0x4ab4ab[_0x98fd49('0x11')][_0x98fd49('0x14')](_0x409e69,_0x35d4ab,_0x36ec7e)[_0x98fd49('0xa')](function(){const _0x120032=_0x98fd49;logger['info'](_0x120032('0xe'),_0x35d4ab,_0x409e69);})[_0x98fd49('0x13')](function(_0x3e899b){const _0x326695=_0x98fd49;logger['info'](JSON[_0x326695('0x1b')](_0x3e899b));});});},Migration[_0x279b5c('0xc')]['dropTable']=function(_0x5ccaca){const _0x23766e=_0x279b5c,_0x26931d=this;this[_0x23766e('0x17')][_0x23766e('0x9')](function(){const _0x46cb64=_0x23766e;return _0x26931d[_0x46cb64('0x11')][_0x46cb64('0x12')](_0x5ccaca,{'force':!![]})[_0x46cb64('0xa')](function(){const _0xfe9ec3=_0x46cb64;logger['info'](_0xfe9ec3('0x1e'),_0x5ccaca);})[_0x46cb64('0x13')](function(_0x305c59){const _0x3b638d=_0x46cb64;logger[_0x3b638d('0x18')](JSON[_0x3b638d('0x1b')](_0x305c59));});});},Migration[_0x279b5c('0xc')][_0x279b5c('0x15')]=function(_0x2be06e,_0xd1fa,_0x2eb02b){const _0x11b8a6=_0x279b5c,_0x4f54d9=this;this[_0x11b8a6('0x17')][_0x11b8a6('0x9')](function(){const _0x38b391=_0x11b8a6;return _0x4f54d9['queryInterface']['addIndex'](_0x2be06e,_0xd1fa,{'indexName':_0x2eb02b})[_0x38b391('0xa')](function(){const _0x16d243=_0x38b391;logger[_0x16d243('0x18')](_0x16d243('0x1'),_0x2be06e,_0xd1fa['join'](','),_0x2eb02b);})[_0x38b391('0x13')](function(_0x68a039){const _0x33a992=_0x38b391;logger[_0x33a992('0x18')](JSON['stringify'](_0x68a039));});});},Migration[_0x279b5c('0xc')][_0x279b5c('0x3')]=function(_0x1def74,_0x5af242){const _0x5a4121=_0x279b5c,_0x527d11=this;this['sequence'][_0x5a4121('0x9')](function(){const _0x3caf16=_0x5a4121;return _0x527d11[_0x3caf16('0x11')][_0x3caf16('0x3')](_0x1def74,_0x5af242)[_0x3caf16('0xa')](function(){const _0x66d60c=_0x3caf16;logger[_0x66d60c('0x18')](_0x66d60c('0x1c'),_0x1def74,_0x5af242);})[_0x3caf16('0x13')](function(_0x111903){logger['info'](JSON['stringify'](_0x111903));});});},Migration[_0x279b5c('0xc')][_0x279b5c('0x4')]=function(_0xfc449e){const _0x3988ce=_0x279b5c,_0x1cd969=this;this[_0x3988ce('0x17')][_0x3988ce('0x9')](function(){const _0x3cfcff=_0x3988ce;return _0x1cd969[_0x3cfcff('0x11')]['sequelize'][_0x3cfcff('0x4')](_0xfc449e)[_0x3cfcff('0xa')](function(){const _0x4a64e8=_0x3cfcff;logger['info'](_0x4a64e8('0x5'),_0xfc449e);})['catch'](function(_0x30ab8a){const _0x82b2f3=_0x3cfcff;logger['info'](JSON[_0x82b2f3('0x1b')](_0x30ab8a));});});},Migration[_0x279b5c('0xc')][_0x279b5c('0x6')]=function(_0x33546e,_0x186b64){const _0x4b2273=_0x279b5c,_0x11e1d6=this;this['sequence'][_0x4b2273('0x9')](function(){const _0x576b47=_0x4b2273;return _0x11e1d6[_0x576b47('0x11')][_0x576b47('0x6')](_0x33546e,_0x186b64)[_0x576b47('0xa')](function(){const _0x3a4898=_0x576b47;logger[_0x3a4898('0x18')](_0x3a4898('0xf'),_0x186b64,_0x33546e);})[_0x576b47('0x13')](function(_0x8e11d8){const _0x509160=_0x576b47;logger[_0x509160('0x18')](util[_0x509160('0x1a')](_0x8e11d8,{'showHidden':![],'depth':null}));});});},Migration[_0x279b5c('0xc')][_0x279b5c('0xb')]=function(_0x5f21c3,_0x51dd61,_0x11a9c7){const _0x1b3ce8=this;this['sequence']['enqueue'](function(){const _0x587e63=a985_0xfaa7;return _0x1b3ce8['queryInterface'][_0x587e63('0xb')](_0x5f21c3,_0x51dd61,_0x11a9c7)[_0x587e63('0xa')](function(){const _0x5957b8=_0x587e63;logger['info'](_0x5957b8('0x1f'),_0x51dd61,_0x11a9c7,_0x5f21c3);})[_0x587e63('0x13')](function(_0x5976bd){const _0x32bbb1=_0x587e63;logger[_0x32bbb1('0x18')](util[_0x32bbb1('0x1a')](_0x5976bd,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x279b5c('0x16')]=function(_0x20f1e9){const _0x4f86db=_0x279b5c;this[_0x4f86db('0x17')][_0x4f86db('0x9')](function(){return _0x20f1e9();});},module[_0x279b5c('0x1d')]={'up':function(_0x356883){return new Promise(function(_0x324071){const _0x57717c=a985_0xfaa7,_0x551ce8=new Migration(_0x356883);_0x551ce8[_0x57717c('0x16')](_0x324071);});},'down':function(){}};
\ No newline at end of file
+const a985_0x508c=['addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','final','Added\x20column\x20%s\x20to\x20%s','changeColumn','queryInterface','tail','exports','addIndex\x20%s\x20%s\x20%s','table\x20dropped\x20%s','dropTable','../config/logger','migration','addIndex','finally','stringify','removeIndex','sequelize','inspect','prototype','enqueue','query','query\x20%s','then','info','util','removeColumn','renameColumn','sequence','catch'];(function(_0x49921c,_0x508c34){const _0x5a36dd=function(_0x573151){while(--_0x573151){_0x49921c['push'](_0x49921c['shift']());}};_0x5a36dd(++_0x508c34);}(a985_0x508c,0xe6));const a985_0x5a36=function(_0x49921c,_0x508c34){_0x49921c=_0x49921c-0x0;let _0x5a36dd=a985_0x508c[_0x49921c];return _0x5a36dd;};const _0x436004=a985_0x5a36;'use strict';const util=require(_0x436004('0x5')),logger=require(_0x436004('0x15'))(_0x436004('0x16')),Sequence=function(){};Sequence[_0x436004('0x1d')]['enqueue']=function(_0x573151){const _0x4087fd=_0x436004;this['tail']=this['tail']?this[_0x4087fd('0x10')][_0x4087fd('0x18')](_0x573151):_0x573151();};const Migration=function(_0x33bd18){const _0x4a5670=_0x436004;this[_0x4a5670('0xf')]=_0x33bd18,this[_0x4a5670('0x8')]=new Sequence();};Migration['prototype'][_0x436004('0xe')]=function(_0x18f1df,_0xfba2f,_0xb42a6){const _0x13121d=this;this['sequence']['enqueue'](function(){const _0x5da6d9=a985_0x5a36;return _0x13121d[_0x5da6d9('0xf')][_0x5da6d9('0xe')](_0x18f1df,_0xfba2f,_0xb42a6)['then'](function(){const _0x4add15=_0x5da6d9;logger[_0x4add15('0x4')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xfba2f,_0x18f1df);})[_0x5da6d9('0x9')](function(_0x9d757d){const _0x4aff65=_0x5da6d9;logger[_0x4aff65('0x4')](JSON['stringify'](_0x9d757d));});});},Migration[_0x436004('0x1d')][_0x436004('0xa')]=function(_0x2ba6f0,_0x1eb310,_0xf58651){const _0x3cedd8=_0x436004,_0x4c3339=this;this[_0x3cedd8('0x8')][_0x3cedd8('0x0')](function(){const _0x5f2e1e=_0x3cedd8;return _0x4c3339[_0x5f2e1e('0xf')][_0x5f2e1e('0xa')](_0x2ba6f0,_0x1eb310,_0xf58651)[_0x5f2e1e('0x3')](function(){const _0x3d99ae=_0x5f2e1e;logger['info'](_0x3d99ae('0xd'),_0x1eb310,_0x2ba6f0);})['catch'](function(_0x39f1c8){const _0xd915b7=_0x5f2e1e;logger[_0xd915b7('0x4')](JSON[_0xd915b7('0x19')](_0x39f1c8));});});},Migration['prototype'][_0x436004('0x14')]=function(_0x8a07e5){const _0x379591=_0x436004,_0x5d39cc=this;this[_0x379591('0x8')][_0x379591('0x0')](function(){const _0x15c97e=_0x379591;return _0x5d39cc[_0x15c97e('0xf')][_0x15c97e('0x14')](_0x8a07e5,{'force':!![]})[_0x15c97e('0x3')](function(){const _0x843c65=_0x15c97e;logger['info'](_0x843c65('0x13'),_0x8a07e5);})[_0x15c97e('0x9')](function(_0x4c5bd7){const _0x40ab15=_0x15c97e;logger[_0x40ab15('0x4')](JSON[_0x40ab15('0x19')](_0x4c5bd7));});});},Migration[_0x436004('0x1d')]['addIndex']=function(_0x1e40ba,_0x4660a5,_0x57aee3){const _0x48f709=_0x436004,_0x2cf48b=this;this[_0x48f709('0x8')][_0x48f709('0x0')](function(){const _0x4b3d72=_0x48f709;return _0x2cf48b[_0x4b3d72('0xf')][_0x4b3d72('0x17')](_0x1e40ba,_0x4660a5,{'indexName':_0x57aee3})[_0x4b3d72('0x3')](function(){const _0x4cf0e7=_0x4b3d72;logger['info'](_0x4cf0e7('0x12'),_0x1e40ba,_0x4660a5['join'](','),_0x57aee3);})[_0x4b3d72('0x9')](function(_0x7b7b87){const _0x293ed4=_0x4b3d72;logger[_0x293ed4('0x4')](JSON[_0x293ed4('0x19')](_0x7b7b87));});});},Migration[_0x436004('0x1d')]['removeIndex']=function(_0x203ddf,_0x1cca62){const _0xac8d73=_0x436004,_0x4997de=this;this[_0xac8d73('0x8')][_0xac8d73('0x0')](function(){const _0x262ffd=_0xac8d73;return _0x4997de[_0x262ffd('0xf')][_0x262ffd('0x1a')](_0x203ddf,_0x1cca62)['then'](function(){const _0x5f067c=_0x262ffd;logger[_0x5f067c('0x4')]('removeIndex\x20%s\x20%s',_0x203ddf,_0x1cca62);})[_0x262ffd('0x9')](function(_0x55b76e){const _0x3b71b7=_0x262ffd;logger[_0x3b71b7('0x4')](JSON['stringify'](_0x55b76e));});});},Migration[_0x436004('0x1d')][_0x436004('0x1')]=function(_0xfc4221){const _0x1fcc3d=_0x436004,_0x3cda3e=this;this[_0x1fcc3d('0x8')][_0x1fcc3d('0x0')](function(){const _0xa1e716=_0x1fcc3d;return _0x3cda3e['queryInterface'][_0xa1e716('0x1b')][_0xa1e716('0x1')](_0xfc4221)[_0xa1e716('0x3')](function(){const _0x4bf912=_0xa1e716;logger[_0x4bf912('0x4')](_0x4bf912('0x2'),_0xfc4221);})[_0xa1e716('0x9')](function(_0x28000b){const _0x19cfb8=_0xa1e716;logger[_0x19cfb8('0x4')](JSON[_0x19cfb8('0x19')](_0x28000b));});});},Migration[_0x436004('0x1d')][_0x436004('0x6')]=function(_0x406e2c,_0x188c36){const _0x29ab4b=_0x436004,_0x1cbe7d=this;this[_0x29ab4b('0x8')][_0x29ab4b('0x0')](function(){const _0x39487e=_0x29ab4b;return _0x1cbe7d[_0x39487e('0xf')]['removeColumn'](_0x406e2c,_0x188c36)[_0x39487e('0x3')](function(){const _0x29c276=_0x39487e;logger[_0x29c276('0x4')]('Removed\x20column\x20%s\x20from\x20%s',_0x188c36,_0x406e2c);})[_0x39487e('0x9')](function(_0x266b02){const _0x1c5c47=_0x39487e;logger['info'](util[_0x1c5c47('0x1c')](_0x266b02,{'showHidden':![],'depth':null}));});});},Migration[_0x436004('0x1d')]['renameColumn']=function(_0x796f34,_0x4ebacb,_0x41795c){const _0x217456=_0x436004,_0x149fc4=this;this[_0x217456('0x8')][_0x217456('0x0')](function(){const _0xfb4b78=_0x217456;return _0x149fc4[_0xfb4b78('0xf')][_0xfb4b78('0x7')](_0x796f34,_0x4ebacb,_0x41795c)[_0xfb4b78('0x3')](function(){const _0x33bae0=_0xfb4b78;logger[_0x33bae0('0x4')](_0x33bae0('0xb'),_0x4ebacb,_0x41795c,_0x796f34);})['catch'](function(_0x3aa645){const _0x30ba5f=_0xfb4b78;logger[_0x30ba5f('0x4')](util['inspect'](_0x3aa645,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x436004('0xc')]=function(_0x2771bc){const _0x51565c=_0x436004;this[_0x51565c('0x8')][_0x51565c('0x0')](function(){return _0x2771bc();});},module[_0x436004('0x11')]={'up':function(_0xa6575f){return new Promise(function(_0x3569ad){const _0x4e5b43=a985_0x5a36,_0x86e051=new Migration(_0xa6575f);_0x86e051[_0x4e5b43('0xc')](_0x3569ad);});},'down':function(){}};
\ No newline at end of file