Built motion from commit b51cdcb3f2cb46634587ce1d55ea1b8f32dacea6. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.9.js
index 907dc2f..501a088 100644 (file)
@@ -1 +1 @@
-const a1012_0x5548=['exports','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','join','migration','tail','query\x20%s','Added\x20column\x20%s\x20to\x20%s','indexName','removeIndex','addColumn','addIndex','stringify','removeColumn','renameColumn','dropTable','queryInterface','prototype','info','catch','table\x20dropped\x20%s','sequence','Removed\x20column\x20%s\x20from\x20%s','../config/logger','addIndex\x20%s\x20%s\x20%s\x20[%s]','Changed\x20column\x20%s\x20in\x20table\x20%s','enqueue','indicesType','changeColumn','removeIndex\x20%s\x20%s','finally','inspect','final'];(function(_0x2fdb20,_0x554820){const _0x1ac26a=function(_0x5d0c29){while(--_0x5d0c29){_0x2fdb20['push'](_0x2fdb20['shift']());}};_0x1ac26a(++_0x554820);}(a1012_0x5548,0x16b));const a1012_0x1ac2=function(_0x2fdb20,_0x554820){_0x2fdb20=_0x2fdb20-0x0;let _0x1ac26a=a1012_0x5548[_0x2fdb20];return _0x1ac26a;};const _0x453a72=a1012_0x1ac2;'use strict';const util=require('util'),logger=require(_0x453a72('0x17'))(_0x453a72('0x4')),Sequence=function(){};Sequence[_0x453a72('0x11')][_0x453a72('0x1a')]=function(_0x5d0c29){const _0x5ed9df=_0x453a72;this[_0x5ed9df('0x5')]=this[_0x5ed9df('0x5')]?this[_0x5ed9df('0x5')][_0x5ed9df('0x1e')](_0x5d0c29):_0x5d0c29();};const Migration=function(_0x4270c5){const _0x1ff385=_0x453a72;this[_0x1ff385('0x10')]=_0x4270c5,this[_0x1ff385('0x15')]=new Sequence();};Migration['prototype'][_0x453a72('0x1c')]=function(_0x18bfc7,_0x104734,_0x5e0e36){const _0x351c98=_0x453a72,_0x2b67e7=this;this['sequence'][_0x351c98('0x1a')](function(){const _0x183825=_0x351c98;return _0x2b67e7[_0x183825('0x10')][_0x183825('0x1c')](_0x18bfc7,_0x104734,_0x5e0e36)[_0x183825('0x2')](function(){const _0x42e171=_0x183825;logger[_0x42e171('0x12')](_0x42e171('0x19'),_0x104734,_0x18bfc7);})[_0x183825('0x13')](function(_0x2d5e3f){const _0x965476=_0x183825;logger[_0x965476('0x12')](JSON[_0x965476('0xc')](_0x2d5e3f));});});},Migration[_0x453a72('0x11')][_0x453a72('0xa')]=function(_0x54496e,_0x3309a7,_0x5110aa){const _0x42fe78=_0x453a72,_0x26106b=this;this[_0x42fe78('0x15')]['enqueue'](function(){const _0x5dfa7e=_0x42fe78;return _0x26106b[_0x5dfa7e('0x10')]['addColumn'](_0x54496e,_0x3309a7,_0x5110aa)[_0x5dfa7e('0x2')](function(){const _0x5ac622=_0x5dfa7e;logger[_0x5ac622('0x12')](_0x5ac622('0x7'),_0x3309a7,_0x54496e);})[_0x5dfa7e('0x13')](function(_0x941400){const _0x477095=_0x5dfa7e;logger[_0x477095('0x12')](JSON[_0x477095('0xc')](_0x941400));});});},Migration[_0x453a72('0x11')][_0x453a72('0xf')]=function(_0x2040c2){const _0x283a38=_0x453a72,_0x130458=this;this[_0x283a38('0x15')][_0x283a38('0x1a')](function(){const _0x43c857=_0x283a38;return _0x130458[_0x43c857('0x10')][_0x43c857('0xf')](_0x2040c2,{'force':!![]})[_0x43c857('0x2')](function(){const _0x46b5de=_0x43c857;logger[_0x46b5de('0x12')](_0x46b5de('0x14'),_0x2040c2);})['catch'](function(_0x3a5ccb){logger['info'](JSON['stringify'](_0x3a5ccb));});});},Migration[_0x453a72('0x11')][_0x453a72('0xb')]=function(_0x4b1576,_0xc3b50,_0x2f932e){const _0x258199=_0x453a72,_0x47e438=this;this[_0x258199('0x15')]['enqueue'](function(){const _0x54dd26=_0x258199;return _0x47e438[_0x54dd26('0x10')][_0x54dd26('0xb')](_0x4b1576,_0xc3b50,{'indexName':_0x2f932e[_0x54dd26('0x8')],'indicesType':_0x2f932e[_0x54dd26('0x1b')]})['then'](function(){const _0x2de45a=_0x54dd26;logger[_0x2de45a('0x12')](_0x2de45a('0x18'),_0x4b1576,_0xc3b50[_0x2de45a('0x3')](','),_0x2f932e['indexName'],_0x2f932e[_0x2de45a('0x1b')]);})['catch'](function(_0x343eee){const _0x3ab668=_0x54dd26;logger[_0x3ab668('0x12')](JSON[_0x3ab668('0xc')](_0x343eee));});});},Migration[_0x453a72('0x11')][_0x453a72('0x9')]=function(_0x12f22d,_0x1a78a1){const _0x5aa02f=_0x453a72,_0x2f0bdc=this;this[_0x5aa02f('0x15')][_0x5aa02f('0x1a')](function(){const _0x437c61=_0x5aa02f;return _0x2f0bdc[_0x437c61('0x10')][_0x437c61('0x9')](_0x12f22d,_0x1a78a1)[_0x437c61('0x2')](function(){const _0x504412=_0x437c61;logger[_0x504412('0x12')](_0x504412('0x1d'),_0x12f22d,_0x1a78a1);})['catch'](function(_0x41459a){const _0x247b34=_0x437c61;logger[_0x247b34('0x12')](JSON['stringify'](_0x41459a));});});},Migration[_0x453a72('0x11')]['query']=function(_0x57446b){const _0x626216=_0x453a72,_0x34ff32=this;this[_0x626216('0x15')][_0x626216('0x1a')](function(){const _0x46a10=_0x626216;return _0x34ff32[_0x46a10('0x10')]['sequelize']['query'](_0x57446b)[_0x46a10('0x2')](function(){const _0x4b7ffb=_0x46a10;logger[_0x4b7ffb('0x12')](_0x4b7ffb('0x6'),_0x57446b);})[_0x46a10('0x13')](function(_0xa60b6b){const _0x1f8230=_0x46a10;logger[_0x1f8230('0x12')](JSON[_0x1f8230('0xc')](_0xa60b6b));});});},Migration['prototype'][_0x453a72('0xd')]=function(_0x35a38d,_0x894409){const _0x1a23be=_0x453a72,_0x330c84=this;this[_0x1a23be('0x15')]['enqueue'](function(){const _0x171f6b=_0x1a23be;return _0x330c84[_0x171f6b('0x10')]['removeColumn'](_0x35a38d,_0x894409)[_0x171f6b('0x2')](function(){const _0xa1eee2=_0x171f6b;logger[_0xa1eee2('0x12')](_0xa1eee2('0x16'),_0x894409,_0x35a38d);})[_0x171f6b('0x13')](function(_0x3178cc){const _0x3a1783=_0x171f6b;logger['info'](util[_0x3a1783('0x1f')](_0x3178cc,{'showHidden':![],'depth':null}));});});},Migration[_0x453a72('0x11')][_0x453a72('0xe')]=function(_0xdd806e,_0x881959,_0xdc4b78){const _0x3a8537=_0x453a72,_0x44d7f7=this;this['sequence'][_0x3a8537('0x1a')](function(){const _0x359d04=_0x3a8537;return _0x44d7f7[_0x359d04('0x10')][_0x359d04('0xe')](_0xdd806e,_0x881959,_0xdc4b78)[_0x359d04('0x2')](function(){const _0xf7fb8c=_0x359d04;logger[_0xf7fb8c('0x12')](_0xf7fb8c('0x1'),_0x881959,_0xdc4b78,_0xdd806e);})['catch'](function(_0x5e7dfa){const _0x4b8a7c=_0x359d04;logger[_0x4b8a7c('0x12')](util[_0x4b8a7c('0x1f')](_0x5e7dfa,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x453a72('0x20')]=function(_0x1ba751){const _0x352d09=_0x453a72;this[_0x352d09('0x15')]['enqueue'](function(){return _0x1ba751();});},module[_0x453a72('0x0')]={'up':function(_0x4c5111){return new Promise(function(_0x5c6bac){const _0x57487b=a1012_0x1ac2,_0xd467fa=new Migration(_0x4c5111);_0xd467fa[_0x57487b('0x20')](_0x5c6bac);});},'down':function(){}};
\ No newline at end of file
+const a1012_0x1687=['sequence','query','changeColumn','renameColumn','finally','migration','../config/logger','prototype','removeIndex','info','Changed\x20column\x20%s\x20in\x20table\x20%s','query\x20%s','addColumn','final','indicesType','enqueue','stringify','table\x20dropped\x20%s','exports','catch','join','tail','then','indexName','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','util','queryInterface','removeColumn','removeIndex\x20%s\x20%s'];(function(_0x1b4696,_0x1687d0){const _0x4e9909=function(_0x4ba29c){while(--_0x4ba29c){_0x1b4696['push'](_0x1b4696['shift']());}};_0x4e9909(++_0x1687d0);}(a1012_0x1687,0x10e));const a1012_0x4e99=function(_0x1b4696,_0x1687d0){_0x1b4696=_0x1b4696-0x0;let _0x4e9909=a1012_0x1687[_0x1b4696];return _0x4e9909;};const _0x5e56b5=a1012_0x4e99;'use strict';const util=require(_0x5e56b5('0x17')),logger=require(_0x5e56b5('0x0'))(_0x5e56b5('0x20')),Sequence=function(){};Sequence[_0x5e56b5('0x1')]['enqueue']=function(_0x4ba29c){const _0x42d886=_0x5e56b5;this[_0x42d886('0xf')]=this[_0x42d886('0xf')]?this[_0x42d886('0xf')][_0x42d886('0x1f')](_0x4ba29c):_0x4ba29c();};const Migration=function(_0x120f60){const _0x14b975=_0x5e56b5;this[_0x14b975('0x18')]=_0x120f60,this[_0x14b975('0x1b')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x4758a8,_0x5c292d,_0x151afb){const _0x483ac7=this;this['sequence']['enqueue'](function(){const _0x1842d8=a1012_0x4e99;return _0x483ac7[_0x1842d8('0x18')][_0x1842d8('0x1d')](_0x4758a8,_0x5c292d,_0x151afb)[_0x1842d8('0x10')](function(){const _0xd4f15e=_0x1842d8;logger[_0xd4f15e('0x3')](_0xd4f15e('0x4'),_0x5c292d,_0x4758a8);})[_0x1842d8('0xd')](function(_0x3a2627){const _0x1ddb42=_0x1842d8;logger['info'](JSON[_0x1ddb42('0xa')](_0x3a2627));});});},Migration[_0x5e56b5('0x1')][_0x5e56b5('0x6')]=function(_0x19d72a,_0x713c12,_0x3a9ce6){const _0x4b4840=_0x5e56b5,_0x9bd75a=this;this[_0x4b4840('0x1b')][_0x4b4840('0x9')](function(){const _0x195f2a=_0x4b4840;return _0x9bd75a[_0x195f2a('0x18')]['addColumn'](_0x19d72a,_0x713c12,_0x3a9ce6)[_0x195f2a('0x10')](function(){const _0x37ca43=_0x195f2a;logger['info'](_0x37ca43('0x12'),_0x713c12,_0x19d72a);})[_0x195f2a('0xd')](function(_0x3dd602){const _0x2322c6=_0x195f2a;logger[_0x2322c6('0x3')](JSON[_0x2322c6('0xa')](_0x3dd602));});});},Migration[_0x5e56b5('0x1')]['dropTable']=function(_0x1852c9){const _0x486896=_0x5e56b5,_0x36c1d5=this;this[_0x486896('0x1b')][_0x486896('0x9')](function(){const _0x4ab1e9=_0x486896;return _0x36c1d5[_0x4ab1e9('0x18')]['dropTable'](_0x1852c9,{'force':!![]})[_0x4ab1e9('0x10')](function(){const _0x51a637=_0x4ab1e9;logger[_0x51a637('0x3')](_0x51a637('0xb'),_0x1852c9);})[_0x4ab1e9('0xd')](function(_0x2b9d13){const _0x55021c=_0x4ab1e9;logger[_0x55021c('0x3')](JSON[_0x55021c('0xa')](_0x2b9d13));});});},Migration[_0x5e56b5('0x1')][_0x5e56b5('0x15')]=function(_0x490cdf,_0x25c9a1,_0x275f16){const _0x3713be=_0x5e56b5,_0x2b65ec=this;this[_0x3713be('0x1b')]['enqueue'](function(){const _0x1010f7=_0x3713be;return _0x2b65ec[_0x1010f7('0x18')][_0x1010f7('0x15')](_0x490cdf,_0x25c9a1,{'indexName':_0x275f16['indexName'],'indicesType':_0x275f16['indicesType']})[_0x1010f7('0x10')](function(){const _0x3fb3ff=_0x1010f7;logger['info'](_0x3fb3ff('0x14'),_0x490cdf,_0x25c9a1[_0x3fb3ff('0xe')](','),_0x275f16[_0x3fb3ff('0x11')],_0x275f16[_0x3fb3ff('0x8')]);})['catch'](function(_0x2df14d){const _0x4fb4ca=_0x1010f7;logger[_0x4fb4ca('0x3')](JSON[_0x4fb4ca('0xa')](_0x2df14d));});});},Migration[_0x5e56b5('0x1')][_0x5e56b5('0x2')]=function(_0x52a358,_0x3daadd){const _0x4b6cc6=_0x5e56b5,_0xda08d=this;this['sequence'][_0x4b6cc6('0x9')](function(){const _0xdcef2e=_0x4b6cc6;return _0xda08d[_0xdcef2e('0x18')][_0xdcef2e('0x2')](_0x52a358,_0x3daadd)[_0xdcef2e('0x10')](function(){const _0x5e51d1=_0xdcef2e;logger[_0x5e51d1('0x3')](_0x5e51d1('0x1a'),_0x52a358,_0x3daadd);})[_0xdcef2e('0xd')](function(_0x1efc18){logger['info'](JSON['stringify'](_0x1efc18));});});},Migration[_0x5e56b5('0x1')][_0x5e56b5('0x1c')]=function(_0x149d81){const _0x47742d=_0x5e56b5,_0x5ac589=this;this[_0x47742d('0x1b')]['enqueue'](function(){const _0x4bb8dd=_0x47742d;return _0x5ac589[_0x4bb8dd('0x18')]['sequelize'][_0x4bb8dd('0x1c')](_0x149d81)[_0x4bb8dd('0x10')](function(){const _0x373c29=_0x4bb8dd;logger[_0x373c29('0x3')](_0x373c29('0x5'),_0x149d81);})[_0x4bb8dd('0xd')](function(_0x2e152f){const _0x22fec2=_0x4bb8dd;logger['info'](JSON[_0x22fec2('0xa')](_0x2e152f));});});},Migration[_0x5e56b5('0x1')][_0x5e56b5('0x19')]=function(_0x155b6b,_0x3d6697){const _0x10f907=_0x5e56b5,_0x481b29=this;this[_0x10f907('0x1b')]['enqueue'](function(){const _0x54c2af=_0x10f907;return _0x481b29[_0x54c2af('0x18')][_0x54c2af('0x19')](_0x155b6b,_0x3d6697)[_0x54c2af('0x10')](function(){const _0x115be2=_0x54c2af;logger[_0x115be2('0x3')](_0x115be2('0x13'),_0x3d6697,_0x155b6b);})[_0x54c2af('0xd')](function(_0x2fe653){logger['info'](util['inspect'](_0x2fe653,{'showHidden':![],'depth':null}));});});},Migration[_0x5e56b5('0x1')][_0x5e56b5('0x1e')]=function(_0x2d717c,_0x1b5d71,_0x3a5cc8){const _0x4c82a0=_0x5e56b5,_0x3a9a24=this;this[_0x4c82a0('0x1b')]['enqueue'](function(){const _0x25df65=_0x4c82a0;return _0x3a9a24['queryInterface'][_0x25df65('0x1e')](_0x2d717c,_0x1b5d71,_0x3a5cc8)[_0x25df65('0x10')](function(){const _0x66ac3e=_0x25df65;logger[_0x66ac3e('0x3')](_0x66ac3e('0x16'),_0x1b5d71,_0x3a5cc8,_0x2d717c);})[_0x25df65('0xd')](function(_0x1ef909){const _0x2cca01=_0x25df65;logger[_0x2cca01('0x3')](util['inspect'](_0x1ef909,{'showHidden':![],'depth':null}));});});},Migration[_0x5e56b5('0x1')][_0x5e56b5('0x7')]=function(_0x56be5b){const _0x24c394=_0x5e56b5;this['sequence'][_0x24c394('0x9')](function(){return _0x56be5b();});},module[_0x5e56b5('0xc')]={'up':function(_0x53d426){return new Promise(function(_0x14a2b0){const _0x266ce0=a1012_0x4e99,_0x21339f=new Migration(_0x53d426);_0x21339f[_0x266ce0('0x7')](_0x14a2b0);});},'down':function(){}};
\ No newline at end of file