Built motion from commit 709aa6fb5ed03aa61bc373fcdbf622215d37d30b. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.9.js
index 82f4d29..493548f 100644 (file)
@@ -1 +1 @@
-const a1011_0x563a=['sequence','query\x20%s','then','../config/logger','removeColumn','prototype','tail','removeIndex\x20%s\x20%s','removeIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Removed\x20column\x20%s\x20from\x20%s','queryInterface','enqueue','finally','indexName','inspect','renameColumn','query','addIndex\x20%s\x20%s\x20%s\x20[%s]','final','indicesType','catch','info','migration','dropTable','addIndex','table\x20dropped\x20%s','changeColumn','stringify','join','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x3424b3,_0x563a45){const _0x55f9f4=function(_0xe56d01){while(--_0xe56d01){_0x3424b3['push'](_0x3424b3['shift']());}};_0x55f9f4(++_0x563a45);}(a1011_0x563a,0x6a));const a1011_0x55f9=function(_0x3424b3,_0x563a45){_0x3424b3=_0x3424b3-0x0;let _0x55f9f4=a1011_0x563a[_0x3424b3];return _0x55f9f4;};const _0x3666ed=a1011_0x55f9;'use strict';const util=require('util'),logger=require(_0x3666ed('0x19'))(_0x3666ed('0xd')),Sequence=function(){};Sequence[_0x3666ed('0x1b')][_0x3666ed('0x2')]=function(_0xe56d01){const _0x1206bd=_0x3666ed;this[_0x1206bd('0x1c')]=this['tail']?this[_0x1206bd('0x1c')][_0x1206bd('0x3')](_0xe56d01):_0xe56d01();};const Migration=function(_0x3a4cec){const _0x4fd510=_0x3666ed;this['queryInterface']=_0x3a4cec,this[_0x4fd510('0x16')]=new Sequence();};Migration[_0x3666ed('0x1b')][_0x3666ed('0x11')]=function(_0x3858c9,_0x44e75b,_0xade1af){const _0x5e3c89=_0x3666ed,_0x3947f4=this;this['sequence'][_0x5e3c89('0x2')](function(){const _0x27aaeb=_0x5e3c89;return _0x3947f4[_0x27aaeb('0x1')][_0x27aaeb('0x11')](_0x3858c9,_0x44e75b,_0xade1af)[_0x27aaeb('0x18')](function(){const _0x354456=_0x27aaeb;logger[_0x354456('0xc')](_0x354456('0x15'),_0x44e75b,_0x3858c9);})[_0x27aaeb('0xb')](function(_0x33bc38){const _0x35da6c=_0x27aaeb;logger[_0x35da6c('0xc')](JSON[_0x35da6c('0x12')](_0x33bc38));});});},Migration[_0x3666ed('0x1b')]['addColumn']=function(_0xec1684,_0x3e38b6,_0x5d977c){const _0xe2ecd=_0x3666ed,_0x64e165=this;this['sequence'][_0xe2ecd('0x2')](function(){const _0xe61ec8=_0xe2ecd;return _0x64e165[_0xe61ec8('0x1')]['addColumn'](_0xec1684,_0x3e38b6,_0x5d977c)[_0xe61ec8('0x18')](function(){const _0x59fc42=_0xe61ec8;logger[_0x59fc42('0xc')]('Added\x20column\x20%s\x20to\x20%s',_0x3e38b6,_0xec1684);})[_0xe61ec8('0xb')](function(_0x4318e9){const _0x302602=_0xe61ec8;logger[_0x302602('0xc')](JSON[_0x302602('0x12')](_0x4318e9));});});},Migration['prototype'][_0x3666ed('0xe')]=function(_0x407535){const _0x1b5498=this;this['sequence']['enqueue'](function(){const _0x22e522=a1011_0x55f9;return _0x1b5498[_0x22e522('0x1')]['dropTable'](_0x407535,{'force':!![]})[_0x22e522('0x18')](function(){const _0x1ff02b=_0x22e522;logger[_0x1ff02b('0xc')](_0x1ff02b('0x10'),_0x407535);})[_0x22e522('0xb')](function(_0x6b6c4c){const _0x4b5cd9=_0x22e522;logger[_0x4b5cd9('0xc')](JSON[_0x4b5cd9('0x12')](_0x6b6c4c));});});},Migration['prototype'][_0x3666ed('0xf')]=function(_0x4a6dab,_0xb9a56,_0x553d9a){const _0x1718a6=_0x3666ed,_0x3137b9=this;this[_0x1718a6('0x16')][_0x1718a6('0x2')](function(){const _0x48853f=_0x1718a6;return _0x3137b9[_0x48853f('0x1')][_0x48853f('0xf')](_0x4a6dab,_0xb9a56,{'indexName':_0x553d9a[_0x48853f('0x4')],'indicesType':_0x553d9a[_0x48853f('0xa')]})['then'](function(){const _0x261188=_0x48853f;logger['info'](_0x261188('0x8'),_0x4a6dab,_0xb9a56[_0x261188('0x13')](','),_0x553d9a[_0x261188('0x4')],_0x553d9a[_0x261188('0xa')]);})[_0x48853f('0xb')](function(_0x4b3f54){const _0x2f9d5e=_0x48853f;logger[_0x2f9d5e('0xc')](JSON[_0x2f9d5e('0x12')](_0x4b3f54));});});},Migration['prototype']['removeIndex']=function(_0x5af72d,_0x3d5d8e){const _0x42407a=_0x3666ed,_0x2e8da6=this;this['sequence'][_0x42407a('0x2')](function(){const _0x4d07ed=_0x42407a;return _0x2e8da6[_0x4d07ed('0x1')][_0x4d07ed('0x1e')](_0x5af72d,_0x3d5d8e)['then'](function(){const _0xe6ec9=_0x4d07ed;logger[_0xe6ec9('0xc')](_0xe6ec9('0x1d'),_0x5af72d,_0x3d5d8e);})[_0x4d07ed('0xb')](function(_0xa8667c){const _0x30bd07=_0x4d07ed;logger[_0x30bd07('0xc')](JSON[_0x30bd07('0x12')](_0xa8667c));});});},Migration[_0x3666ed('0x1b')][_0x3666ed('0x7')]=function(_0x5d290c){const _0x1cdcee=_0x3666ed,_0x51faa9=this;this[_0x1cdcee('0x16')][_0x1cdcee('0x2')](function(){const _0x217569=_0x1cdcee;return _0x51faa9[_0x217569('0x1')][_0x217569('0x14')]['query'](_0x5d290c)[_0x217569('0x18')](function(){const _0x2e8ea2=_0x217569;logger[_0x2e8ea2('0xc')](_0x2e8ea2('0x17'),_0x5d290c);})[_0x217569('0xb')](function(_0x522d45){const _0x392b0e=_0x217569;logger[_0x392b0e('0xc')](JSON[_0x392b0e('0x12')](_0x522d45));});});},Migration[_0x3666ed('0x1b')][_0x3666ed('0x1a')]=function(_0x3d54b2,_0x10273a){const _0x5b3a56=_0x3666ed,_0x5bed93=this;this[_0x5b3a56('0x16')][_0x5b3a56('0x2')](function(){const _0x3d4365=_0x5b3a56;return _0x5bed93[_0x3d4365('0x1')][_0x3d4365('0x1a')](_0x3d54b2,_0x10273a)[_0x3d4365('0x18')](function(){const _0x3511c9=_0x3d4365;logger[_0x3511c9('0xc')](_0x3511c9('0x0'),_0x10273a,_0x3d54b2);})['catch'](function(_0x5e55ef){const _0x15a40d=_0x3d4365;logger[_0x15a40d('0xc')](util['inspect'](_0x5e55ef,{'showHidden':![],'depth':null}));});});},Migration[_0x3666ed('0x1b')][_0x3666ed('0x6')]=function(_0x27aefa,_0x220d58,_0xe09f1d){const _0x20a9d6=_0x3666ed,_0x32ca20=this;this[_0x20a9d6('0x16')]['enqueue'](function(){const _0x2589ac=_0x20a9d6;return _0x32ca20[_0x2589ac('0x1')]['renameColumn'](_0x27aefa,_0x220d58,_0xe09f1d)[_0x2589ac('0x18')](function(){const _0x268e3f=_0x2589ac;logger[_0x268e3f('0xc')](_0x268e3f('0x1f'),_0x220d58,_0xe09f1d,_0x27aefa);})[_0x2589ac('0xb')](function(_0x300bb2){const _0x456953=_0x2589ac;logger[_0x456953('0xc')](util[_0x456953('0x5')](_0x300bb2,{'showHidden':![],'depth':null}));});});},Migration[_0x3666ed('0x1b')][_0x3666ed('0x9')]=function(_0x2d54a4){const _0x3fb5a3=_0x3666ed;this[_0x3fb5a3('0x16')][_0x3fb5a3('0x2')](function(){return _0x2d54a4();});},module['exports']={'up':function(_0x37d0ef){return new Promise(function(_0x186ad9){const _0x42d31e=a1011_0x55f9,_0x1dfeb8=new Migration(_0x37d0ef);_0x1dfeb8[_0x42d31e('0x9')](_0x186ad9);});},'down':function(){}};
\ No newline at end of file
+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