5eb562eea45f7269cb651f0171533281606e6450
[motion-next.git] / server / migrations / 2.3.92.js
1 const a984_0x3833=['addColumn','finally','removeIndex\x20%s\x20%s','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','catch','then','dropTable','changeColumn','Removed\x20column\x20%s\x20from\x20%s','inspect','Added\x20column\x20%s\x20to\x20%s','renameColumn','removeColumn','queryInterface','util','join','sequence','final','prototype','addIndex\x20%s\x20%s\x20%s','sequelize','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query\x20%s','enqueue','removeIndex','info','query','exports','addIndex','stringify'];(function(_0x575ec5,_0x3833c8){const _0x235956=function(_0x7469d){while(--_0x7469d){_0x575ec5['push'](_0x575ec5['shift']());}};_0x235956(++_0x3833c8);}(a984_0x3833,0xc8));const a984_0x2359=function(_0x575ec5,_0x3833c8){_0x575ec5=_0x575ec5-0x0;let _0x235956=a984_0x3833[_0x575ec5];return _0x235956;};const _0x27bb82=a984_0x2359;'use strict';const util=require(_0x27bb82('0x1')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x27bb82('0x5')][_0x27bb82('0xa')]=function(_0x7469d){const _0x5f21fa=_0x27bb82;this[_0x5f21fa('0x14')]=this[_0x5f21fa('0x14')]?this[_0x5f21fa('0x14')][_0x5f21fa('0x12')](_0x7469d):_0x7469d();};const Migration=function(_0x14aa17){const _0x1e3993=_0x27bb82;this['queryInterface']=_0x14aa17,this[_0x1e3993('0x3')]=new Sequence();};Migration[_0x27bb82('0x5')][_0x27bb82('0x19')]=function(_0x47bb9b,_0x3829ad,_0x49d083){const _0x2dbff5=_0x27bb82,_0x13248e=this;this[_0x2dbff5('0x3')][_0x2dbff5('0xa')](function(){const _0x1f98bd=_0x2dbff5;return _0x13248e[_0x1f98bd('0x0')][_0x1f98bd('0x19')](_0x47bb9b,_0x3829ad,_0x49d083)[_0x1f98bd('0x17')](function(){const _0x537b29=_0x1f98bd;logger[_0x537b29('0xc')](_0x537b29('0x15'),_0x3829ad,_0x47bb9b);})[_0x1f98bd('0x16')](function(_0x2ad8c8){const _0x37d78a=_0x1f98bd;logger[_0x37d78a('0xc')](JSON[_0x37d78a('0x10')](_0x2ad8c8));});});},Migration[_0x27bb82('0x5')][_0x27bb82('0x11')]=function(_0x4184f4,_0x56258d,_0x1a73e7){const _0x132244=_0x27bb82,_0x3ea42e=this;this[_0x132244('0x3')][_0x132244('0xa')](function(){const _0x373641=_0x132244;return _0x3ea42e[_0x373641('0x0')][_0x373641('0x11')](_0x4184f4,_0x56258d,_0x1a73e7)[_0x373641('0x17')](function(){const _0x392185=_0x373641;logger[_0x392185('0xc')](_0x392185('0x1c'),_0x56258d,_0x4184f4);})[_0x373641('0x16')](function(_0x1f51a2){const _0x3dc4ef=_0x373641;logger[_0x3dc4ef('0xc')](JSON[_0x3dc4ef('0x10')](_0x1f51a2));});});},Migration[_0x27bb82('0x5')][_0x27bb82('0x18')]=function(_0x134de4){const _0x3291ce=_0x27bb82,_0x280340=this;this[_0x3291ce('0x3')][_0x3291ce('0xa')](function(){const _0x52beae=_0x3291ce;return _0x280340[_0x52beae('0x0')][_0x52beae('0x18')](_0x134de4,{'force':!![]})[_0x52beae('0x17')](function(){const _0x2b7412=_0x52beae;logger[_0x2b7412('0xc')]('table\x20dropped\x20%s',_0x134de4);})['catch'](function(_0x2799a9){const _0x270ebd=_0x52beae;logger[_0x270ebd('0xc')](JSON[_0x270ebd('0x10')](_0x2799a9));});});},Migration[_0x27bb82('0x5')][_0x27bb82('0xf')]=function(_0x3cd77a,_0x31541a,_0x5ce014){const _0x5af695=_0x27bb82,_0xcb19b6=this;this[_0x5af695('0x3')][_0x5af695('0xa')](function(){const _0x3689a3=_0x5af695;return _0xcb19b6[_0x3689a3('0x0')][_0x3689a3('0xf')](_0x3cd77a,_0x31541a,{'indexName':_0x5ce014})[_0x3689a3('0x17')](function(){const _0x31c1df=_0x3689a3;logger['info'](_0x31c1df('0x6'),_0x3cd77a,_0x31541a[_0x31c1df('0x2')](','),_0x5ce014);})['catch'](function(_0x48fbe7){const _0x500c31=_0x3689a3;logger[_0x500c31('0xc')](JSON[_0x500c31('0x10')](_0x48fbe7));});});},Migration[_0x27bb82('0x5')][_0x27bb82('0xb')]=function(_0x546ec3,_0x53e297){const _0x14cc65=this;this['sequence']['enqueue'](function(){const _0x5db42a=a984_0x2359;return _0x14cc65['queryInterface'][_0x5db42a('0xb')](_0x546ec3,_0x53e297)[_0x5db42a('0x17')](function(){const _0x3fe805=_0x5db42a;logger[_0x3fe805('0xc')](_0x3fe805('0x13'),_0x546ec3,_0x53e297);})[_0x5db42a('0x16')](function(_0x40ac8d){const _0x542d55=_0x5db42a;logger[_0x542d55('0xc')](JSON[_0x542d55('0x10')](_0x40ac8d));});});},Migration[_0x27bb82('0x5')][_0x27bb82('0xd')]=function(_0x172254){const _0x331942=_0x27bb82,_0x3bb244=this;this[_0x331942('0x3')]['enqueue'](function(){const _0x4e2aa8=_0x331942;return _0x3bb244[_0x4e2aa8('0x0')][_0x4e2aa8('0x7')][_0x4e2aa8('0xd')](_0x172254)[_0x4e2aa8('0x17')](function(){const _0x1fd3c8=_0x4e2aa8;logger[_0x1fd3c8('0xc')](_0x1fd3c8('0x9'),_0x172254);})[_0x4e2aa8('0x16')](function(_0xd34b79){const _0x32d3fb=_0x4e2aa8;logger[_0x32d3fb('0xc')](JSON[_0x32d3fb('0x10')](_0xd34b79));});});},Migration[_0x27bb82('0x5')][_0x27bb82('0x1e')]=function(_0x19f3c9,_0x642482){const _0x191e4c=_0x27bb82,_0x44105f=this;this[_0x191e4c('0x3')][_0x191e4c('0xa')](function(){const _0x1dea3e=_0x191e4c;return _0x44105f[_0x1dea3e('0x0')]['removeColumn'](_0x19f3c9,_0x642482)[_0x1dea3e('0x17')](function(){const _0x909bea=_0x1dea3e;logger[_0x909bea('0xc')](_0x909bea('0x1a'),_0x642482,_0x19f3c9);})[_0x1dea3e('0x16')](function(_0x219a4f){const _0x224d08=_0x1dea3e;logger[_0x224d08('0xc')](util[_0x224d08('0x1b')](_0x219a4f,{'showHidden':![],'depth':null}));});});},Migration[_0x27bb82('0x5')][_0x27bb82('0x1d')]=function(_0x4f59ec,_0x1b3048,_0xac2fd0){const _0xb6adb9=_0x27bb82,_0x47470b=this;this[_0xb6adb9('0x3')][_0xb6adb9('0xa')](function(){const _0x225353=_0xb6adb9;return _0x47470b['queryInterface'][_0x225353('0x1d')](_0x4f59ec,_0x1b3048,_0xac2fd0)[_0x225353('0x17')](function(){const _0x4993a1=_0x225353;logger[_0x4993a1('0xc')](_0x4993a1('0x8'),_0x1b3048,_0xac2fd0,_0x4f59ec);})[_0x225353('0x16')](function(_0x30af73){const _0x5cc06d=_0x225353;logger[_0x5cc06d('0xc')](util[_0x5cc06d('0x1b')](_0x30af73,{'showHidden':![],'depth':null}));});});},Migration[_0x27bb82('0x5')][_0x27bb82('0x4')]=function(_0xeb66cb){const _0x11351f=_0x27bb82;this[_0x11351f('0x3')][_0x11351f('0xa')](function(){return _0xeb66cb();});},module[_0x27bb82('0xe')]={'up':function(_0x42b4d0){return new Promise(function(_0x37e189){const _0x2c5353=a984_0x2359,_0x1a22a4=new Migration(_0x42b4d0);_0x1a22a4[_0x2c5353('0x4')](_0x37e189);});},'down':function(){}};