Built motion from commit 8dca541896b0ff92bb88a36cc13f4f385b593b4b. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.6.js
1 const a1009_0x58d9=['query','prototype','info','final','dropTable','addIndex','enqueue','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex','migration','queryInterface','addIndex\x20%s\x20%s\x20%s\x20[%s]','removeColumn','indicesType','changeColumn','sequence','stringify','exports','finally','util','join','catch','table\x20dropped\x20%s','indexName','Added\x20column\x20%s\x20to\x20%s','renameColumn','inspect','then','tail','Removed\x20column\x20%s\x20from\x20%s','../config/logger','sequelize','addColumn'];(function(_0x1d3778,_0x58d90d){const _0x4ebca3=function(_0x646e0d){while(--_0x646e0d){_0x1d3778['push'](_0x1d3778['shift']());}};_0x4ebca3(++_0x58d90d);}(a1009_0x58d9,0x157));const a1009_0x4ebc=function(_0x1d3778,_0x58d90d){_0x1d3778=_0x1d3778-0x0;let _0x4ebca3=a1009_0x58d9[_0x1d3778];return _0x4ebca3;};const _0x46cad4=a1009_0x4ebc;'use strict';const util=require(_0x46cad4('0x6')),logger=require(_0x46cad4('0x11'))(_0x46cad4('0x1d')),Sequence=function(){};Sequence['prototype'][_0x46cad4('0x1a')]=function(_0x646e0d){const _0x1007ec=_0x46cad4;this[_0x1007ec('0xf')]=this[_0x1007ec('0xf')]?this[_0x1007ec('0xf')][_0x1007ec('0x5')](_0x646e0d):_0x646e0d();};const Migration=function(_0x54fcf7){const _0x50718b=_0x46cad4;this[_0x50718b('0x1e')]=_0x54fcf7,this['sequence']=new Sequence();};Migration['prototype']['changeColumn']=function(_0x25f693,_0x604dc5,_0x5df34f){const _0x3d474f=_0x46cad4,_0x543004=this;this[_0x3d474f('0x2')][_0x3d474f('0x1a')](function(){const _0x1fbe93=_0x3d474f;return _0x543004[_0x1fbe93('0x1e')][_0x1fbe93('0x1')](_0x25f693,_0x604dc5,_0x5df34f)[_0x1fbe93('0xe')](function(){const _0x9e6e3d=_0x1fbe93;logger[_0x9e6e3d('0x16')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x604dc5,_0x25f693);})[_0x1fbe93('0x8')](function(_0x167c42){logger['info'](JSON['stringify'](_0x167c42));});});},Migration[_0x46cad4('0x15')][_0x46cad4('0x13')]=function(_0x1364b2,_0xe498b5,_0x471ffa){const _0x1bd693=_0x46cad4,_0x34bb4d=this;this['sequence'][_0x1bd693('0x1a')](function(){const _0x50e906=_0x1bd693;return _0x34bb4d[_0x50e906('0x1e')][_0x50e906('0x13')](_0x1364b2,_0xe498b5,_0x471ffa)[_0x50e906('0xe')](function(){const _0x272d94=_0x50e906;logger[_0x272d94('0x16')](_0x272d94('0xb'),_0xe498b5,_0x1364b2);})[_0x50e906('0x8')](function(_0x23f8d0){const _0x4493da=_0x50e906;logger[_0x4493da('0x16')](JSON['stringify'](_0x23f8d0));});});},Migration[_0x46cad4('0x15')][_0x46cad4('0x18')]=function(_0x25b204){const _0x4f371d=_0x46cad4,_0xed4902=this;this['sequence'][_0x4f371d('0x1a')](function(){const _0x17eaf9=_0x4f371d;return _0xed4902['queryInterface'][_0x17eaf9('0x18')](_0x25b204,{'force':!![]})[_0x17eaf9('0xe')](function(){const _0x2200f4=_0x17eaf9;logger[_0x2200f4('0x16')](_0x2200f4('0x9'),_0x25b204);})['catch'](function(_0x3fb8a5){const _0x100c61=_0x17eaf9;logger['info'](JSON[_0x100c61('0x3')](_0x3fb8a5));});});},Migration[_0x46cad4('0x15')][_0x46cad4('0x19')]=function(_0x322a03,_0x2a6817,_0x4c6599){const _0x5eabfa=_0x46cad4,_0x37fe4c=this;this[_0x5eabfa('0x2')][_0x5eabfa('0x1a')](function(){const _0x2ac16c=_0x5eabfa;return _0x37fe4c[_0x2ac16c('0x1e')][_0x2ac16c('0x19')](_0x322a03,_0x2a6817,{'indexName':_0x4c6599[_0x2ac16c('0xa')],'indicesType':_0x4c6599['indicesType']})[_0x2ac16c('0xe')](function(){const _0x2fe3c6=_0x2ac16c;logger[_0x2fe3c6('0x16')](_0x2fe3c6('0x1f'),_0x322a03,_0x2a6817[_0x2fe3c6('0x7')](','),_0x4c6599[_0x2fe3c6('0xa')],_0x4c6599[_0x2fe3c6('0x0')]);})[_0x2ac16c('0x8')](function(_0x3e256a){const _0x2e2b4e=_0x2ac16c;logger['info'](JSON[_0x2e2b4e('0x3')](_0x3e256a));});});},Migration['prototype'][_0x46cad4('0x1c')]=function(_0x307c6e,_0x6f910e){const _0x302fa6=_0x46cad4,_0x5decd1=this;this[_0x302fa6('0x2')][_0x302fa6('0x1a')](function(){const _0xe4c916=_0x302fa6;return _0x5decd1[_0xe4c916('0x1e')]['removeIndex'](_0x307c6e,_0x6f910e)['then'](function(){const _0x40d3ba=_0xe4c916;logger[_0x40d3ba('0x16')]('removeIndex\x20%s\x20%s',_0x307c6e,_0x6f910e);})[_0xe4c916('0x8')](function(_0x567e24){const _0x3632c8=_0xe4c916;logger[_0x3632c8('0x16')](JSON[_0x3632c8('0x3')](_0x567e24));});});},Migration['prototype'][_0x46cad4('0x14')]=function(_0x84f12b){const _0x2d65aa=_0x46cad4,_0x1adb13=this;this[_0x2d65aa('0x2')][_0x2d65aa('0x1a')](function(){const _0x105e15=_0x2d65aa;return _0x1adb13[_0x105e15('0x1e')][_0x105e15('0x12')][_0x105e15('0x14')](_0x84f12b)[_0x105e15('0xe')](function(){const _0x4e263b=_0x105e15;logger[_0x4e263b('0x16')]('query\x20%s',_0x84f12b);})[_0x105e15('0x8')](function(_0x425301){const _0x50a153=_0x105e15;logger['info'](JSON[_0x50a153('0x3')](_0x425301));});});},Migration[_0x46cad4('0x15')]['removeColumn']=function(_0x4d4c09,_0x43ba6f){const _0x4e287f=_0x46cad4,_0x52e853=this;this[_0x4e287f('0x2')]['enqueue'](function(){const _0x2f504e=_0x4e287f;return _0x52e853['queryInterface'][_0x2f504e('0x20')](_0x4d4c09,_0x43ba6f)[_0x2f504e('0xe')](function(){const _0x376932=_0x2f504e;logger[_0x376932('0x16')](_0x376932('0x10'),_0x43ba6f,_0x4d4c09);})['catch'](function(_0x4d6d15){const _0x3d8dec=_0x2f504e;logger[_0x3d8dec('0x16')](util[_0x3d8dec('0xd')](_0x4d6d15,{'showHidden':![],'depth':null}));});});},Migration[_0x46cad4('0x15')]['renameColumn']=function(_0x283b6d,_0x2d10cb,_0xb93035){const _0x5168c5=this;this['sequence']['enqueue'](function(){const _0x1cff44=a1009_0x4ebc;return _0x5168c5['queryInterface'][_0x1cff44('0xc')](_0x283b6d,_0x2d10cb,_0xb93035)[_0x1cff44('0xe')](function(){const _0x3572eb=_0x1cff44;logger[_0x3572eb('0x16')](_0x3572eb('0x1b'),_0x2d10cb,_0xb93035,_0x283b6d);})['catch'](function(_0x4164c8){const _0x553c1f=_0x1cff44;logger[_0x553c1f('0x16')](util[_0x553c1f('0xd')](_0x4164c8,{'showHidden':![],'depth':null}));});});},Migration[_0x46cad4('0x15')][_0x46cad4('0x17')]=function(_0x3a5c20){this['sequence']['enqueue'](function(){return _0x3a5c20();});},module[_0x46cad4('0x4')]={'up':function(_0x376ae7){return new Promise(function(_0x34cb63){const _0x238763=a1009_0x4ebc,_0x183147=new Migration(_0x376ae7);_0x183147[_0x238763('0x17')](_0x34cb63);});},'down':function(){}};