Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.1.js
index b6f7caa..b239989 100644 (file)
@@ -1 +1 @@
-const a992_0x1cee=['addColumn','dropTable','enqueue','renameColumn','migration','Changed\x20column\x20%s\x20in\x20table\x20%s','util','stringify','queryInterface','removeColumn','addIndex','then','sequelize','catch','final','Added\x20column\x20%s\x20to\x20%s','prototype','query\x20%s','finally','removeIndex\x20%s\x20%s','sequence','tail','exports','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','inspect','removeIndex','Removed\x20column\x20%s\x20from\x20%s','info','query','indicesType','changeColumn'];(function(_0x48abb7,_0x1cee6e){const _0x138b03=function(_0x2fab81){while(--_0x2fab81){_0x48abb7['push'](_0x48abb7['shift']());}};_0x138b03(++_0x1cee6e);}(a992_0x1cee,0x116));const a992_0x138b=function(_0x48abb7,_0x1cee6e){_0x48abb7=_0x48abb7-0x0;let _0x138b03=a992_0x1cee[_0x48abb7];return _0x138b03;};const _0x3570ad=a992_0x138b;'use strict';const util=require(_0x3570ad('0x7')),logger=require('../config/logger')(_0x3570ad('0x5')),Sequence=function(){};Sequence[_0x3570ad('0x11')][_0x3570ad('0x3')]=function(_0x2fab81){const _0x4fff76=_0x3570ad;this['tail']=this[_0x4fff76('0x16')]?this[_0x4fff76('0x16')][_0x4fff76('0x13')](_0x2fab81):_0x2fab81();};const Migration=function(_0x9b37c8){const _0x582af7=_0x3570ad;this[_0x582af7('0x9')]=_0x9b37c8,this[_0x582af7('0x15')]=new Sequence();};Migration[_0x3570ad('0x11')][_0x3570ad('0x0')]=function(_0x1244f1,_0x634dfc,_0x35234a){const _0xbccb3a=_0x3570ad,_0x5e9750=this;this['sequence'][_0xbccb3a('0x3')](function(){const _0x155759=_0xbccb3a;return _0x5e9750[_0x155759('0x9')][_0x155759('0x0')](_0x1244f1,_0x634dfc,_0x35234a)[_0x155759('0xc')](function(){const _0x346b5c=_0x155759;logger[_0x346b5c('0x1c')](_0x346b5c('0x6'),_0x634dfc,_0x1244f1);})[_0x155759('0xe')](function(_0x27ad56){const _0x4f3707=_0x155759;logger[_0x4f3707('0x1c')](JSON[_0x4f3707('0x8')](_0x27ad56));});});},Migration[_0x3570ad('0x11')]['addColumn']=function(_0x1e48fe,_0x3b1187,_0x61b5d1){const _0x2a81ac=_0x3570ad,_0x27d86b=this;this[_0x2a81ac('0x15')][_0x2a81ac('0x3')](function(){const _0x4f35d4=_0x2a81ac;return _0x27d86b[_0x4f35d4('0x9')][_0x4f35d4('0x1')](_0x1e48fe,_0x3b1187,_0x61b5d1)[_0x4f35d4('0xc')](function(){const _0x36ed59=_0x4f35d4;logger[_0x36ed59('0x1c')](_0x36ed59('0x10'),_0x3b1187,_0x1e48fe);})[_0x4f35d4('0xe')](function(_0x2001c9){const _0x7666e2=_0x4f35d4;logger[_0x7666e2('0x1c')](JSON[_0x7666e2('0x8')](_0x2001c9));});});},Migration[_0x3570ad('0x11')][_0x3570ad('0x2')]=function(_0x13f5c6){const _0x1e0ba3=_0x3570ad,_0x1bc02f=this;this['sequence'][_0x1e0ba3('0x3')](function(){const _0x5521b9=_0x1e0ba3;return _0x1bc02f[_0x5521b9('0x9')]['dropTable'](_0x13f5c6,{'force':!![]})[_0x5521b9('0xc')](function(){const _0x392c8f=_0x5521b9;logger[_0x392c8f('0x1c')]('table\x20dropped\x20%s',_0x13f5c6);})[_0x5521b9('0xe')](function(_0x130822){const _0x16cf37=_0x5521b9;logger[_0x16cf37('0x1c')](JSON[_0x16cf37('0x8')](_0x130822));});});},Migration['prototype']['addIndex']=function(_0x7bed,_0x404c92,_0x54d844){const _0x1a2cbf=_0x3570ad,_0x18fd0b=this;this[_0x1a2cbf('0x15')]['enqueue'](function(){const _0x47a101=_0x1a2cbf;return _0x18fd0b[_0x47a101('0x9')][_0x47a101('0xb')](_0x7bed,_0x404c92,{'indexName':_0x54d844['indexName'],'indicesType':_0x54d844[_0x47a101('0x1e')]})[_0x47a101('0xc')](function(){const _0x5884e4=_0x47a101;logger[_0x5884e4('0x1c')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x7bed,_0x404c92['join'](','),_0x54d844['indexName'],_0x54d844[_0x5884e4('0x1e')]);})[_0x47a101('0xe')](function(_0x507b37){const _0x425bad=_0x47a101;logger[_0x425bad('0x1c')](JSON[_0x425bad('0x8')](_0x507b37));});});},Migration[_0x3570ad('0x11')][_0x3570ad('0x1a')]=function(_0x52c149,_0x300a78){const _0x3dd702=_0x3570ad,_0x2eb659=this;this[_0x3dd702('0x15')][_0x3dd702('0x3')](function(){const _0x22cb57=_0x3dd702;return _0x2eb659['queryInterface']['removeIndex'](_0x52c149,_0x300a78)[_0x22cb57('0xc')](function(){const _0x38cb11=_0x22cb57;logger[_0x38cb11('0x1c')](_0x38cb11('0x14'),_0x52c149,_0x300a78);})[_0x22cb57('0xe')](function(_0x450516){const _0x59afe1=_0x22cb57;logger[_0x59afe1('0x1c')](JSON[_0x59afe1('0x8')](_0x450516));});});},Migration['prototype'][_0x3570ad('0x1d')]=function(_0x49abb1){const _0x1a6bc2=_0x3570ad,_0x4d7e91=this;this[_0x1a6bc2('0x15')][_0x1a6bc2('0x3')](function(){const _0x1723f6=_0x1a6bc2;return _0x4d7e91[_0x1723f6('0x9')][_0x1723f6('0xd')][_0x1723f6('0x1d')](_0x49abb1)[_0x1723f6('0xc')](function(){const _0x14bb98=_0x1723f6;logger[_0x14bb98('0x1c')](_0x14bb98('0x12'),_0x49abb1);})[_0x1723f6('0xe')](function(_0x54ffa4){const _0x1ae001=_0x1723f6;logger[_0x1ae001('0x1c')](JSON[_0x1ae001('0x8')](_0x54ffa4));});});},Migration['prototype'][_0x3570ad('0xa')]=function(_0x57c489,_0x4e06b9){const _0x425df0=_0x3570ad,_0x5c8277=this;this[_0x425df0('0x15')][_0x425df0('0x3')](function(){const _0x46cf02=_0x425df0;return _0x5c8277[_0x46cf02('0x9')]['removeColumn'](_0x57c489,_0x4e06b9)[_0x46cf02('0xc')](function(){const _0x27b9a5=_0x46cf02;logger[_0x27b9a5('0x1c')](_0x27b9a5('0x1b'),_0x4e06b9,_0x57c489);})[_0x46cf02('0xe')](function(_0x53c477){const _0x1e1628=_0x46cf02;logger[_0x1e1628('0x1c')](util['inspect'](_0x53c477,{'showHidden':![],'depth':null}));});});},Migration[_0x3570ad('0x11')][_0x3570ad('0x4')]=function(_0x476032,_0x920c34,_0x2c9a2a){const _0x5ba81b=_0x3570ad,_0x579314=this;this[_0x5ba81b('0x15')][_0x5ba81b('0x3')](function(){const _0x13afb8=_0x5ba81b;return _0x579314[_0x13afb8('0x9')][_0x13afb8('0x4')](_0x476032,_0x920c34,_0x2c9a2a)[_0x13afb8('0xc')](function(){const _0x1a4992=_0x13afb8;logger[_0x1a4992('0x1c')](_0x1a4992('0x18'),_0x920c34,_0x2c9a2a,_0x476032);})[_0x13afb8('0xe')](function(_0x10f379){const _0xfcec63=_0x13afb8;logger[_0xfcec63('0x1c')](util[_0xfcec63('0x19')](_0x10f379,{'showHidden':![],'depth':null}));});});},Migration[_0x3570ad('0x11')]['final']=function(_0x570c71){const _0x5ed315=_0x3570ad;this[_0x5ed315('0x15')]['enqueue'](function(){return _0x570c71();});},module[_0x3570ad('0x17')]={'up':function(_0x37609a){return new Promise(function(_0x369c8f){const _0x22f74d=a992_0x138b,_0x3efe07=new Migration(_0x37609a);_0x3efe07[_0x22f74d('0xf')](_0x369c8f);});},'down':function(){}};
\ No newline at end of file
+const a992_0x108f=['table\x20dropped\x20%s','indicesType','query','enqueue','removeIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','indexName','queryInterface','changeColumn','addIndex','dropTable','prototype','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','stringify','sequence','removeIndex\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','then','tail','catch','util','info','finally','migration','sequelize','addColumn','removeColumn','../config/logger','inspect','renameColumn','join'];(function(_0x8f2da2,_0x108f35){const _0x577a89=function(_0xa3f1a4){while(--_0xa3f1a4){_0x8f2da2['push'](_0x8f2da2['shift']());}};_0x577a89(++_0x108f35);}(a992_0x108f,0xd3));const a992_0x577a=function(_0x8f2da2,_0x108f35){_0x8f2da2=_0x8f2da2-0x0;let _0x577a89=a992_0x108f[_0x8f2da2];return _0x577a89;};const _0x173999=a992_0x577a;'use strict';const util=require(_0x173999('0x2')),logger=require(_0x173999('0x9'))(_0x173999('0x5')),Sequence=function(){};Sequence[_0x173999('0x18')][_0x173999('0x10')]=function(_0xa3f1a4){const _0x39640f=_0x173999;this['tail']=this['tail']?this[_0x39640f('0x0')][_0x39640f('0x4')](_0xa3f1a4):_0xa3f1a4();};const Migration=function(_0x4dd48e){const _0x5ab99c=_0x173999;this[_0x5ab99c('0x14')]=_0x4dd48e,this[_0x5ab99c('0x1c')]=new Sequence();};Migration[_0x173999('0x18')][_0x173999('0x15')]=function(_0x4533f8,_0x2f995d,_0x29b63f){const _0x38d722=_0x173999,_0x110675=this;this[_0x38d722('0x1c')][_0x38d722('0x10')](function(){const _0x5c6183=_0x38d722;return _0x110675['queryInterface'][_0x5c6183('0x15')](_0x4533f8,_0x2f995d,_0x29b63f)['then'](function(){const _0x38181a=_0x5c6183;logger['info'](_0x38181a('0x12'),_0x2f995d,_0x4533f8);})[_0x5c6183('0x1')](function(_0x50932f){const _0x239ae9=_0x5c6183;logger['info'](JSON[_0x239ae9('0x1b')](_0x50932f));});});},Migration['prototype'][_0x173999('0x7')]=function(_0xc5e7fe,_0x3c0693,_0x177751){const _0x3d28a6=_0x173999,_0x3a23d7=this;this[_0x3d28a6('0x1c')][_0x3d28a6('0x10')](function(){const _0x44356e=_0x3d28a6;return _0x3a23d7[_0x44356e('0x14')][_0x44356e('0x7')](_0xc5e7fe,_0x3c0693,_0x177751)[_0x44356e('0x1f')](function(){const _0x3010d4=_0x44356e;logger[_0x3010d4('0x3')]('Added\x20column\x20%s\x20to\x20%s',_0x3c0693,_0xc5e7fe);})[_0x44356e('0x1')](function(_0x23a89d){const _0x4573e1=_0x44356e;logger[_0x4573e1('0x3')](JSON['stringify'](_0x23a89d));});});},Migration[_0x173999('0x18')]['dropTable']=function(_0x301c48){const _0x41d0b4=_0x173999,_0x5cdaa9=this;this['sequence'][_0x41d0b4('0x10')](function(){const _0x58278e=_0x41d0b4;return _0x5cdaa9[_0x58278e('0x14')][_0x58278e('0x17')](_0x301c48,{'force':!![]})[_0x58278e('0x1f')](function(){const _0x20bfdf=_0x58278e;logger['info'](_0x20bfdf('0xd'),_0x301c48);})[_0x58278e('0x1')](function(_0x5da202){const _0x3f107b=_0x58278e;logger['info'](JSON[_0x3f107b('0x1b')](_0x5da202));});});},Migration['prototype'][_0x173999('0x16')]=function(_0x1de758,_0x3b47fe,_0xabb5a6){const _0x4b546f=_0x173999,_0x4665a4=this;this[_0x4b546f('0x1c')]['enqueue'](function(){const _0x22a1ce=_0x4b546f;return _0x4665a4[_0x22a1ce('0x14')][_0x22a1ce('0x16')](_0x1de758,_0x3b47fe,{'indexName':_0xabb5a6[_0x22a1ce('0x13')],'indicesType':_0xabb5a6[_0x22a1ce('0xe')]})['then'](function(){const _0x4891c9=_0x22a1ce;logger[_0x4891c9('0x3')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x1de758,_0x3b47fe[_0x4891c9('0xc')](','),_0xabb5a6[_0x4891c9('0x13')],_0xabb5a6[_0x4891c9('0xe')]);})[_0x22a1ce('0x1')](function(_0x2265a1){const _0x47825a=_0x22a1ce;logger['info'](JSON[_0x47825a('0x1b')](_0x2265a1));});});},Migration[_0x173999('0x18')][_0x173999('0x11')]=function(_0x26150b,_0x2f8448){const _0x3c5b00=_0x173999,_0xc6e12=this;this['sequence'][_0x3c5b00('0x10')](function(){const _0x5ba8ae=_0x3c5b00;return _0xc6e12['queryInterface']['removeIndex'](_0x26150b,_0x2f8448)[_0x5ba8ae('0x1f')](function(){const _0x3ab8a2=_0x5ba8ae;logger['info'](_0x3ab8a2('0x1d'),_0x26150b,_0x2f8448);})[_0x5ba8ae('0x1')](function(_0x1154dd){const _0x1ec1d0=_0x5ba8ae;logger[_0x1ec1d0('0x3')](JSON[_0x1ec1d0('0x1b')](_0x1154dd));});});},Migration[_0x173999('0x18')]['query']=function(_0x14df31){const _0x592003=_0x173999,_0x5c2876=this;this[_0x592003('0x1c')]['enqueue'](function(){const _0x13ff68=_0x592003;return _0x5c2876[_0x13ff68('0x14')][_0x13ff68('0x6')][_0x13ff68('0xf')](_0x14df31)['then'](function(){logger['info']('query\x20%s',_0x14df31);})[_0x13ff68('0x1')](function(_0x5b9273){const _0x3fc30c=_0x13ff68;logger[_0x3fc30c('0x3')](JSON[_0x3fc30c('0x1b')](_0x5b9273));});});},Migration[_0x173999('0x18')][_0x173999('0x8')]=function(_0x133c25,_0x301220){const _0x4ffe43=_0x173999,_0x5533e3=this;this[_0x4ffe43('0x1c')]['enqueue'](function(){const _0x5e92e2=_0x4ffe43;return _0x5533e3[_0x5e92e2('0x14')][_0x5e92e2('0x8')](_0x133c25,_0x301220)['then'](function(){const _0x5b992e=_0x5e92e2;logger[_0x5b992e('0x3')](_0x5b992e('0x1e'),_0x301220,_0x133c25);})['catch'](function(_0x3be4e5){const _0x492ccf=_0x5e92e2;logger[_0x492ccf('0x3')](util[_0x492ccf('0xa')](_0x3be4e5,{'showHidden':![],'depth':null}));});});},Migration[_0x173999('0x18')][_0x173999('0xb')]=function(_0x2d8693,_0x15346f,_0x3da7d4){const _0x1d8118=_0x173999,_0x445283=this;this['sequence'][_0x1d8118('0x10')](function(){const _0x3af1ea=_0x1d8118;return _0x445283[_0x3af1ea('0x14')][_0x3af1ea('0xb')](_0x2d8693,_0x15346f,_0x3da7d4)[_0x3af1ea('0x1f')](function(){const _0x2ad694=_0x3af1ea;logger[_0x2ad694('0x3')](_0x2ad694('0x1a'),_0x15346f,_0x3da7d4,_0x2d8693);})[_0x3af1ea('0x1')](function(_0x435008){const _0x855e7e=_0x3af1ea;logger['info'](util[_0x855e7e('0xa')](_0x435008,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x173999('0x19')]=function(_0x54731e){const _0x433b1f=_0x173999;this['sequence'][_0x433b1f('0x10')](function(){return _0x54731e();});},module['exports']={'up':function(_0x278a61){return new Promise(function(_0x4e3551){const _0x562997=a992_0x577a,_0x2f36fe=new Migration(_0x278a61);_0x2f36fe[_0x562997('0x19')](_0x4e3551);});},'down':function(){}};
\ No newline at end of file