Built motion from commit 129fb4d95212661e48f0db455e75d668addbaddf. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.9.js
index 493548f..81a8ecf 100644 (file)
@@ -1 +1 @@
-const a1011_0xe73e=['indexName','indicesType','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','exports','then','addIndex','final','Added\x20column\x20%s\x20to\x20%s','renameColumn','sequelize','Removed\x20column\x20%s\x20from\x20%s','query\x20%s','stringify','changeColumn','prototype','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','migration','info','dropTable','addColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','inspect','finally','query','catch','sequence','join','tail','queryInterface'];(function(_0x2daeaa,_0xe73e0a){const _0x3f42ab=function(_0x1a0d31){while(--_0x1a0d31){_0x2daeaa['push'](_0x2daeaa['shift']());}};_0x3f42ab(++_0xe73e0a);}(a1011_0xe73e,0x131));const a1011_0x3f42=function(_0x2daeaa,_0xe73e0a){_0x2daeaa=_0x2daeaa-0x0;let _0x3f42ab=a1011_0xe73e[_0x2daeaa];return _0x3f42ab;};const _0x47cbd0=a1011_0x3f42;'use strict';const util=require('util'),logger=require('../config/logger')(_0x47cbd0('0x2')),Sequence=function(){};Sequence['prototype'][_0x47cbd0('0x1f')]=function(_0x1a0d31){const _0x2b7e93=_0x47cbd0;this['tail']=this['tail']?this[_0x2b7e93('0xd')][_0x2b7e93('0x8')](_0x1a0d31):_0x1a0d31();};const Migration=function(_0x2ec124){const _0xa5cdc1=_0x47cbd0;this[_0xa5cdc1('0xe')]=_0x2ec124,this[_0xa5cdc1('0xb')]=new Sequence();};Migration[_0x47cbd0('0x1e')][_0x47cbd0('0x1d')]=function(_0x498c82,_0x4dfe37,_0x6edf8a){const _0xeadbb8=_0x47cbd0,_0x189c4a=this;this[_0xeadbb8('0xb')][_0xeadbb8('0x1f')](function(){const _0x367d81=_0xeadbb8;return _0x189c4a[_0x367d81('0xe')][_0x367d81('0x1d')](_0x498c82,_0x4dfe37,_0x6edf8a)[_0x367d81('0x14')](function(){const _0x2b9409=_0x367d81;logger[_0x2b9409('0x3')](_0x2b9409('0x0'),_0x4dfe37,_0x498c82);})['catch'](function(_0x448ca5){const _0x36cdf7=_0x367d81;logger[_0x36cdf7('0x3')](JSON[_0x36cdf7('0x1c')](_0x448ca5));});});},Migration['prototype'][_0x47cbd0('0x5')]=function(_0xf86965,_0x3f3193,_0xc54399){const _0x4bd53c=_0x47cbd0,_0x17736d=this;this[_0x4bd53c('0xb')][_0x4bd53c('0x1f')](function(){const _0x27900d=_0x4bd53c;return _0x17736d[_0x27900d('0xe')][_0x27900d('0x5')](_0xf86965,_0x3f3193,_0xc54399)['then'](function(){const _0x25ffaa=_0x27900d;logger[_0x25ffaa('0x3')](_0x25ffaa('0x17'),_0x3f3193,_0xf86965);})[_0x27900d('0xa')](function(_0x2b6732){const _0x266441=_0x27900d;logger['info'](JSON[_0x266441('0x1c')](_0x2b6732));});});},Migration[_0x47cbd0('0x1e')][_0x47cbd0('0x4')]=function(_0x149c26){const _0x42a599=_0x47cbd0,_0x20cd0b=this;this[_0x42a599('0xb')][_0x42a599('0x1f')](function(){const _0x5def22=_0x42a599;return _0x20cd0b[_0x5def22('0xe')][_0x5def22('0x4')](_0x149c26,{'force':!![]})[_0x5def22('0x14')](function(){const _0x2c1235=_0x5def22;logger[_0x2c1235('0x3')](_0x2c1235('0x11'),_0x149c26);})[_0x5def22('0xa')](function(_0x1a5b76){const _0x225934=_0x5def22;logger[_0x225934('0x3')](JSON[_0x225934('0x1c')](_0x1a5b76));});});},Migration['prototype'][_0x47cbd0('0x15')]=function(_0x239613,_0x3a3ba1,_0x509f78){const _0x13076a=_0x47cbd0,_0x111345=this;this['sequence'][_0x13076a('0x1f')](function(){const _0x53af32=_0x13076a;return _0x111345['queryInterface'][_0x53af32('0x15')](_0x239613,_0x3a3ba1,{'indexName':_0x509f78[_0x53af32('0xf')],'indicesType':_0x509f78[_0x53af32('0x10')]})[_0x53af32('0x14')](function(){const _0x18fe33=_0x53af32;logger[_0x18fe33('0x3')](_0x18fe33('0x6'),_0x239613,_0x3a3ba1[_0x18fe33('0xc')](','),_0x509f78[_0x18fe33('0xf')],_0x509f78['indicesType']);})['catch'](function(_0x431942){const _0x459718=_0x53af32;logger[_0x459718('0x3')](JSON[_0x459718('0x1c')](_0x431942));});});},Migration[_0x47cbd0('0x1e')]['removeIndex']=function(_0x1e141b,_0x59e55d){const _0x9ab3d3=_0x47cbd0,_0x32c136=this;this['sequence'][_0x9ab3d3('0x1f')](function(){const _0x2387b4=_0x9ab3d3;return _0x32c136['queryInterface']['removeIndex'](_0x1e141b,_0x59e55d)[_0x2387b4('0x14')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x1e141b,_0x59e55d);})[_0x2387b4('0xa')](function(_0x2e9e65){const _0x207016=_0x2387b4;logger[_0x207016('0x3')](JSON[_0x207016('0x1c')](_0x2e9e65));});});},Migration[_0x47cbd0('0x1e')][_0x47cbd0('0x9')]=function(_0x92e5b7){const _0x3400bc=_0x47cbd0,_0x130a7a=this;this[_0x3400bc('0xb')]['enqueue'](function(){const _0x3779ee=_0x3400bc;return _0x130a7a[_0x3779ee('0xe')][_0x3779ee('0x19')][_0x3779ee('0x9')](_0x92e5b7)[_0x3779ee('0x14')](function(){const _0x34b869=_0x3779ee;logger['info'](_0x34b869('0x1b'),_0x92e5b7);})[_0x3779ee('0xa')](function(_0x14b9db){logger['info'](JSON['stringify'](_0x14b9db));});});},Migration[_0x47cbd0('0x1e')]['removeColumn']=function(_0x30ed2e,_0x3ee1ec){const _0x20a454=this;this['sequence']['enqueue'](function(){const _0x450259=a1011_0x3f42;return _0x20a454[_0x450259('0xe')][_0x450259('0x1')](_0x30ed2e,_0x3ee1ec)[_0x450259('0x14')](function(){const _0x5998ab=_0x450259;logger['info'](_0x5998ab('0x1a'),_0x3ee1ec,_0x30ed2e);})[_0x450259('0xa')](function(_0x55bb69){const _0x1d174b=_0x450259;logger[_0x1d174b('0x3')](util[_0x1d174b('0x7')](_0x55bb69,{'showHidden':![],'depth':null}));});});},Migration[_0x47cbd0('0x1e')][_0x47cbd0('0x18')]=function(_0x58c903,_0xbf1df7,_0x5e0e97){const _0x3761c4=_0x47cbd0,_0x593572=this;this[_0x3761c4('0xb')][_0x3761c4('0x1f')](function(){const _0x160650=_0x3761c4;return _0x593572[_0x160650('0xe')][_0x160650('0x18')](_0x58c903,_0xbf1df7,_0x5e0e97)[_0x160650('0x14')](function(){const _0x4173b3=_0x160650;logger[_0x4173b3('0x3')](_0x4173b3('0x12'),_0xbf1df7,_0x5e0e97,_0x58c903);})[_0x160650('0xa')](function(_0x176d07){const _0x180888=_0x160650;logger[_0x180888('0x3')](util['inspect'](_0x176d07,{'showHidden':![],'depth':null}));});});},Migration[_0x47cbd0('0x1e')][_0x47cbd0('0x16')]=function(_0x17cc90){const _0x51266f=_0x47cbd0;this[_0x51266f('0xb')][_0x51266f('0x1f')](function(){return _0x17cc90();});},module[_0x47cbd0('0x13')]={'up':function(_0x4e4ebf){return new Promise(function(_0x5935b2){const _0xfb0be9=a1011_0x3f42,_0x1bf5ee=new Migration(_0x4e4ebf);_0x1bf5ee[_0xfb0be9('0x16')](_0x5935b2);});},'down':function(){}};
\ No newline at end of file
+const a1173_0x30f7=['renameColumn','queryInterface','info','sequence','exports','then','inspect','removeColumn','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex','../config/logger','changeColumn','finally','table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s','indicesType','final','indexName','migration','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex','stringify','catch','enqueue','Added\x20column\x20%s\x20to\x20%s','addColumn','query\x20%s','query'];(function(_0x27d7d3,_0x52b71e){const _0x30f7bf=function(_0x349968){while(--_0x349968){_0x27d7d3['push'](_0x27d7d3['shift']());}};_0x30f7bf(++_0x52b71e);}(a1173_0x30f7,0xdc));const a1173_0x3499=function(_0x27d7d3,_0x52b71e){_0x27d7d3=_0x27d7d3-0xbc;let _0x30f7bf=a1173_0x30f7[_0x27d7d3];return _0x30f7bf;};const a1173_0x247e8e=a1173_0x3499;'use strict';const util=require('util'),logger=require(a1173_0x247e8e(0xbd))(a1173_0x247e8e(0xc6)),Sequence=function(){};Sequence[a1173_0x247e8e(0xd8)]['enqueue']=function(_0x207d1c){const _0x33b35d=a1173_0x247e8e;this['tail']=this['tail']?this['tail'][_0x33b35d(0xbf)](_0x207d1c):_0x207d1c();};const Migration=function(_0x32dc1a){const _0x1cf649=a1173_0x247e8e;this[_0x1cf649(0xd1)]=_0x32dc1a,this[_0x1cf649(0xd3)]=new Sequence();};Migration[a1173_0x247e8e(0xd8)][a1173_0x247e8e(0xbe)]=function(_0x27f0fb,_0x2cb4d1,_0x19d835){const _0x40be34=a1173_0x247e8e,_0xa7d5bf=this;this[_0x40be34(0xd3)][_0x40be34(0xcb)](function(){const _0x536aa5=_0x40be34;return _0xa7d5bf[_0x536aa5(0xd1)]['changeColumn'](_0x27f0fb,_0x2cb4d1,_0x19d835)['then'](function(){const _0xa0f5ba=_0x536aa5;logger['info'](_0xa0f5ba(0xd9),_0x2cb4d1,_0x27f0fb);})[_0x536aa5(0xca)](function(_0xef6bf){const _0x34f43f=_0x536aa5;logger[_0x34f43f(0xd2)](JSON[_0x34f43f(0xc9)](_0xef6bf));});});},Migration[a1173_0x247e8e(0xd8)]['addColumn']=function(_0x49f008,_0x2bfc1f,_0x3fb4ee){const _0x4087ee=a1173_0x247e8e,_0x10e89f=this;this['sequence'][_0x4087ee(0xcb)](function(){const _0x1eb6ee=_0x4087ee;return _0x10e89f[_0x1eb6ee(0xd1)][_0x1eb6ee(0xcd)](_0x49f008,_0x2bfc1f,_0x3fb4ee)[_0x1eb6ee(0xd5)](function(){const _0x523ac9=_0x1eb6ee;logger[_0x523ac9(0xd2)](_0x523ac9(0xcc),_0x2bfc1f,_0x49f008);})[_0x1eb6ee(0xca)](function(_0x4bd58c){const _0x2d4e38=_0x1eb6ee;logger[_0x2d4e38(0xd2)](JSON['stringify'](_0x4bd58c));});});},Migration[a1173_0x247e8e(0xd8)]['dropTable']=function(_0x5e102d){const _0x4dc978=this;this['sequence']['enqueue'](function(){const _0x38ea63=a1173_0x3499;return _0x4dc978[_0x38ea63(0xd1)]['dropTable'](_0x5e102d,{'force':!![]})[_0x38ea63(0xd5)](function(){const _0x2dfa06=_0x38ea63;logger[_0x2dfa06(0xd2)](_0x2dfa06(0xc0),_0x5e102d);})['catch'](function(_0x5ebd1b){const _0x1cf1d9=_0x38ea63;logger[_0x1cf1d9(0xd2)](JSON['stringify'](_0x5ebd1b));});});},Migration['prototype'][a1173_0x247e8e(0xbc)]=function(_0x1f936f,_0x593ad9,_0x111cf5){const _0x257446=a1173_0x247e8e,_0x786af1=this;this[_0x257446(0xd3)][_0x257446(0xcb)](function(){const _0x22150d=_0x257446;return _0x786af1[_0x22150d(0xd1)][_0x22150d(0xbc)](_0x1f936f,_0x593ad9,{'indexName':_0x111cf5[_0x22150d(0xc5)],'indicesType':_0x111cf5[_0x22150d(0xc3)]})[_0x22150d(0xd5)](function(){const _0x343e18=_0x22150d;logger[_0x343e18(0xd2)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x1f936f,_0x593ad9['join'](','),_0x111cf5['indexName'],_0x111cf5[_0x343e18(0xc3)]);})[_0x22150d(0xca)](function(_0x5660d9){const _0x311dc5=_0x22150d;logger[_0x311dc5(0xd2)](JSON[_0x311dc5(0xc9)](_0x5660d9));});});},Migration['prototype'][a1173_0x247e8e(0xc8)]=function(_0xc343f4,_0x178edb){const _0x79404=a1173_0x247e8e,_0x34cbe6=this;this['sequence'][_0x79404(0xcb)](function(){const _0x490822=_0x79404;return _0x34cbe6[_0x490822(0xd1)][_0x490822(0xc8)](_0xc343f4,_0x178edb)[_0x490822(0xd5)](function(){const _0x5d7e16=_0x490822;logger[_0x5d7e16(0xd2)](_0x5d7e16(0xc2),_0xc343f4,_0x178edb);})[_0x490822(0xca)](function(_0x1e2c2f){const _0x402583=_0x490822;logger[_0x402583(0xd2)](JSON[_0x402583(0xc9)](_0x1e2c2f));});});},Migration['prototype'][a1173_0x247e8e(0xcf)]=function(_0x3d520d){const _0x285643=a1173_0x247e8e,_0x5ab45e=this;this[_0x285643(0xd3)]['enqueue'](function(){const _0x399464=_0x285643;return _0x5ab45e[_0x399464(0xd1)]['sequelize'][_0x399464(0xcf)](_0x3d520d)['then'](function(){const _0x367491=_0x399464;logger[_0x367491(0xd2)](_0x367491(0xce),_0x3d520d);})[_0x399464(0xca)](function(_0xf9ba9e){const _0x5dbd1d=_0x399464;logger[_0x5dbd1d(0xd2)](JSON[_0x5dbd1d(0xc9)](_0xf9ba9e));});});},Migration[a1173_0x247e8e(0xd8)]['removeColumn']=function(_0x412dcd,_0x1fb333){const _0x539af8=a1173_0x247e8e,_0x2d0606=this;this['sequence'][_0x539af8(0xcb)](function(){const _0xfd50d9=_0x539af8;return _0x2d0606[_0xfd50d9(0xd1)][_0xfd50d9(0xd7)](_0x412dcd,_0x1fb333)[_0xfd50d9(0xd5)](function(){const _0x1869d1=_0xfd50d9;logger[_0x1869d1(0xd2)](_0x1869d1(0xc1),_0x1fb333,_0x412dcd);})[_0xfd50d9(0xca)](function(_0x80fb59){const _0x4644bf=_0xfd50d9;logger['info'](util[_0x4644bf(0xd6)](_0x80fb59,{'showHidden':![],'depth':null}));});});},Migration[a1173_0x247e8e(0xd8)][a1173_0x247e8e(0xd0)]=function(_0x1b2cc2,_0x354235,_0x5da97f){const _0x5928ee=a1173_0x247e8e,_0x3f4196=this;this['sequence'][_0x5928ee(0xcb)](function(){const _0xa65a07=_0x5928ee;return _0x3f4196['queryInterface'][_0xa65a07(0xd0)](_0x1b2cc2,_0x354235,_0x5da97f)[_0xa65a07(0xd5)](function(){const _0x5666bf=_0xa65a07;logger['info'](_0x5666bf(0xc7),_0x354235,_0x5da97f,_0x1b2cc2);})['catch'](function(_0x56666b){const _0x35222f=_0xa65a07;logger[_0x35222f(0xd2)](util[_0x35222f(0xd6)](_0x56666b,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1173_0x247e8e(0xc4)]=function(_0x493081){const _0x2f0229=a1173_0x247e8e;this[_0x2f0229(0xd3)][_0x2f0229(0xcb)](function(){return _0x493081();});},module[a1173_0x247e8e(0xd4)]={'up':function(_0x1c2be9){return new Promise(function(_0x3148e4){const _0x217c3d=a1173_0x3499,_0x4c8f99=new Migration(_0x1c2be9);_0x4c8f99[_0x217c3d(0xc4)](_0x3148e4);});},'down':function(){}};
\ No newline at end of file