9d6069b34abade6bf36c4c003df1cbe19423d8ca
[motion-next.git] / server / migrations / 2.3.93.js
1 const a985_0x1c8f=['removeIndex\x20%s\x20%s','catch','sequence','addIndex\x20%s\x20%s\x20%s','query','renameColumn','addColumn','prototype','info','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','exports','addIndex','inspect','stringify','changeColumn','final','tail','then','dropTable','removeIndex','../config/logger','Removed\x20column\x20%s\x20from\x20%s','sequelize','util','Added\x20column\x20%s\x20to\x20%s','removeColumn','finally','queryInterface','join'];(function(_0x44b420,_0x1c8f42){const _0x1adf30=function(_0x5cffe1){while(--_0x5cffe1){_0x44b420['push'](_0x44b420['shift']());}};_0x1adf30(++_0x1c8f42);}(a985_0x1c8f,0x109));const a985_0x1adf=function(_0x44b420,_0x1c8f42){_0x44b420=_0x44b420-0x0;let _0x1adf30=a985_0x1c8f[_0x44b420];return _0x1adf30;};const _0x419cf9=a985_0x1adf;'use strict';const util=require(_0x419cf9('0x1d')),logger=require(_0x419cf9('0x1a'))('migration'),Sequence=function(){};Sequence[_0x419cf9('0xc')][_0x419cf9('0xf')]=function(_0x5cffe1){const _0x441f2b=_0x419cf9;this[_0x441f2b('0x16')]=this[_0x441f2b('0x16')]?this[_0x441f2b('0x16')][_0x441f2b('0x2')](_0x5cffe1):_0x5cffe1();};const Migration=function(_0x3b448b){const _0x5d1485=_0x419cf9;this[_0x5d1485('0x3')]=_0x3b448b,this[_0x5d1485('0x7')]=new Sequence();};Migration[_0x419cf9('0xc')][_0x419cf9('0x14')]=function(_0x2a55d6,_0x3d43f9,_0x596b41){const _0xb81fcf=this;this['sequence']['enqueue'](function(){const _0x3fa236=a985_0x1adf;return _0xb81fcf[_0x3fa236('0x3')][_0x3fa236('0x14')](_0x2a55d6,_0x3d43f9,_0x596b41)['then'](function(){const _0x348f7d=_0x3fa236;logger[_0x348f7d('0xd')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3d43f9,_0x2a55d6);})[_0x3fa236('0x6')](function(_0x241ef6){const _0x17c565=_0x3fa236;logger[_0x17c565('0xd')](JSON[_0x17c565('0x13')](_0x241ef6));});});},Migration[_0x419cf9('0xc')][_0x419cf9('0xb')]=function(_0x22a112,_0x4939e9,_0x229d05){const _0x27d835=_0x419cf9,_0x3a57b1=this;this[_0x27d835('0x7')][_0x27d835('0xf')](function(){const _0x3c3844=_0x27d835;return _0x3a57b1[_0x3c3844('0x3')][_0x3c3844('0xb')](_0x22a112,_0x4939e9,_0x229d05)[_0x3c3844('0x17')](function(){const _0x45d23b=_0x3c3844;logger[_0x45d23b('0xd')](_0x45d23b('0x0'),_0x4939e9,_0x22a112);})['catch'](function(_0x4a751a){const _0x395c32=_0x3c3844;logger[_0x395c32('0xd')](JSON['stringify'](_0x4a751a));});});},Migration[_0x419cf9('0xc')][_0x419cf9('0x18')]=function(_0x331058){const _0x53f735=_0x419cf9,_0xf7c897=this;this[_0x53f735('0x7')][_0x53f735('0xf')](function(){const _0x40f7ad=_0x53f735;return _0xf7c897[_0x40f7ad('0x3')][_0x40f7ad('0x18')](_0x331058,{'force':!![]})[_0x40f7ad('0x17')](function(){logger['info']('table\x20dropped\x20%s',_0x331058);})[_0x40f7ad('0x6')](function(_0x55c20d){const _0x394592=_0x40f7ad;logger[_0x394592('0xd')](JSON[_0x394592('0x13')](_0x55c20d));});});},Migration[_0x419cf9('0xc')][_0x419cf9('0x11')]=function(_0xa9bbfb,_0x47f106,_0x3b08fe){const _0x413b6d=_0x419cf9,_0x3c9d3e=this;this[_0x413b6d('0x7')][_0x413b6d('0xf')](function(){const _0x161233=_0x413b6d;return _0x3c9d3e[_0x161233('0x3')][_0x161233('0x11')](_0xa9bbfb,_0x47f106,{'indexName':_0x3b08fe})[_0x161233('0x17')](function(){const _0x44b972=_0x161233;logger[_0x44b972('0xd')](_0x44b972('0x8'),_0xa9bbfb,_0x47f106[_0x44b972('0x4')](','),_0x3b08fe);})[_0x161233('0x6')](function(_0x46b562){const _0x1e4376=_0x161233;logger[_0x1e4376('0xd')](JSON[_0x1e4376('0x13')](_0x46b562));});});},Migration[_0x419cf9('0xc')][_0x419cf9('0x19')]=function(_0x5382b9,_0x13702d){const _0x37c6ec=_0x419cf9,_0x55e1f4=this;this[_0x37c6ec('0x7')][_0x37c6ec('0xf')](function(){const _0x4e0960=_0x37c6ec;return _0x55e1f4[_0x4e0960('0x3')][_0x4e0960('0x19')](_0x5382b9,_0x13702d)[_0x4e0960('0x17')](function(){const _0x37b2fa=_0x4e0960;logger[_0x37b2fa('0xd')](_0x37b2fa('0x5'),_0x5382b9,_0x13702d);})[_0x4e0960('0x6')](function(_0x12d77c){const _0x443ef2=_0x4e0960;logger[_0x443ef2('0xd')](JSON['stringify'](_0x12d77c));});});},Migration[_0x419cf9('0xc')]['query']=function(_0x138e4d){const _0x492cca=this;this['sequence']['enqueue'](function(){const _0x3fd1f8=a985_0x1adf;return _0x492cca['queryInterface'][_0x3fd1f8('0x1c')][_0x3fd1f8('0x9')](_0x138e4d)['then'](function(){logger['info']('query\x20%s',_0x138e4d);})[_0x3fd1f8('0x6')](function(_0x3ed178){const _0x258187=_0x3fd1f8;logger[_0x258187('0xd')](JSON[_0x258187('0x13')](_0x3ed178));});});},Migration[_0x419cf9('0xc')][_0x419cf9('0x1')]=function(_0x1541a2,_0x14e696){const _0x18f382=_0x419cf9,_0x448c73=this;this[_0x18f382('0x7')]['enqueue'](function(){const _0x3acd97=_0x18f382;return _0x448c73['queryInterface'][_0x3acd97('0x1')](_0x1541a2,_0x14e696)[_0x3acd97('0x17')](function(){const _0x1f1090=_0x3acd97;logger[_0x1f1090('0xd')](_0x1f1090('0x1b'),_0x14e696,_0x1541a2);})[_0x3acd97('0x6')](function(_0x38b729){const _0x35f1ec=_0x3acd97;logger['info'](util[_0x35f1ec('0x12')](_0x38b729,{'showHidden':![],'depth':null}));});});},Migration[_0x419cf9('0xc')]['renameColumn']=function(_0x1ee9aa,_0x371850,_0x41cafe){const _0x53ebba=_0x419cf9,_0x5188a8=this;this['sequence'][_0x53ebba('0xf')](function(){const _0xfa9078=_0x53ebba;return _0x5188a8[_0xfa9078('0x3')][_0xfa9078('0xa')](_0x1ee9aa,_0x371850,_0x41cafe)['then'](function(){const _0x3ddc6d=_0xfa9078;logger[_0x3ddc6d('0xd')](_0x3ddc6d('0xe'),_0x371850,_0x41cafe,_0x1ee9aa);})[_0xfa9078('0x6')](function(_0x36b268){const _0x2a4ae7=_0xfa9078;logger[_0x2a4ae7('0xd')](util[_0x2a4ae7('0x12')](_0x36b268,{'showHidden':![],'depth':null}));});});},Migration[_0x419cf9('0xc')]['final']=function(_0x48ff65){const _0x36e273=_0x419cf9;this[_0x36e273('0x7')][_0x36e273('0xf')](function(){return _0x48ff65();});},module[_0x419cf9('0x10')]={'up':function(_0x554762){return new Promise(function(_0x300d3e){const _0x3aa43b=a985_0x1adf,_0x32b9e3=new Migration(_0x554762);_0x32b9e3[_0x3aa43b('0x15')](_0x300d3e);});},'down':function(){}};