Built motion from commit 459747fdfe53bbf13fbede61eeaffea1f1438f86. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.4.js
1 const a977_0x1796=['changeColumn','query\x20%s','queryInterface','final','finally','removeIndex','../config/logger','migration','enqueue','removeColumn','inspect','then','Removed\x20column\x20%s\x20from\x20%s','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','info','addIndex\x20%s\x20%s\x20%s','addIndex','sequence','query','Added\x20column\x20%s\x20to\x20%s','util','stringify','table\x20dropped\x20%s','catch','dropTable','removeIndex\x20%s\x20%s','exports','addColumn','prototype','renameColumn'];(function(_0x4b6402,_0x179615){const _0x156899=function(_0x50909b){while(--_0x50909b){_0x4b6402['push'](_0x4b6402['shift']());}};_0x156899(++_0x179615);}(a977_0x1796,0x1af));const a977_0x1568=function(_0x4b6402,_0x179615){_0x4b6402=_0x4b6402-0x0;let _0x156899=a977_0x1796[_0x4b6402];return _0x156899;};const _0x56330d=a977_0x1568;'use strict';const util=require(_0x56330d('0x18')),logger=require(_0x56330d('0x9'))(_0x56330d('0xa')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x50909b){const _0xfffa7d=_0x56330d;this['tail']=this[_0xfffa7d('0x10')]?this['tail'][_0xfffa7d('0x7')](_0x50909b):_0x50909b();};const Migration=function(_0x2e11e1){const _0xab9a2a=_0x56330d;this[_0xab9a2a('0x5')]=_0x2e11e1,this[_0xab9a2a('0x15')]=new Sequence();};Migration[_0x56330d('0x1')][_0x56330d('0x3')]=function(_0x145f3a,_0x1f4f66,_0x1da52d){const _0x1425d1=_0x56330d,_0x41cb1f=this;this[_0x1425d1('0x15')][_0x1425d1('0xb')](function(){const _0x15b752=_0x1425d1;return _0x41cb1f[_0x15b752('0x5')]['changeColumn'](_0x145f3a,_0x1f4f66,_0x1da52d)['then'](function(){const _0x4e5971=_0x15b752;logger[_0x4e5971('0x12')](_0x4e5971('0x11'),_0x1f4f66,_0x145f3a);})[_0x15b752('0x1b')](function(_0x39bc52){const _0x5f59c7=_0x15b752;logger[_0x5f59c7('0x12')](JSON[_0x5f59c7('0x19')](_0x39bc52));});});},Migration[_0x56330d('0x1')][_0x56330d('0x0')]=function(_0x522c73,_0x1b791b,_0x32d758){const _0x187773=_0x56330d,_0x21a67a=this;this[_0x187773('0x15')][_0x187773('0xb')](function(){const _0x5b497a=_0x187773;return _0x21a67a[_0x5b497a('0x5')]['addColumn'](_0x522c73,_0x1b791b,_0x32d758)[_0x5b497a('0xe')](function(){const _0x339d16=_0x5b497a;logger['info'](_0x339d16('0x17'),_0x1b791b,_0x522c73);})[_0x5b497a('0x1b')](function(_0x29d741){const _0x2787a7=_0x5b497a;logger[_0x2787a7('0x12')](JSON['stringify'](_0x29d741));});});},Migration['prototype'][_0x56330d('0x1c')]=function(_0x4047d6){const _0x2d1ed0=_0x56330d,_0x3da7a8=this;this[_0x2d1ed0('0x15')][_0x2d1ed0('0xb')](function(){const _0x991744=_0x2d1ed0;return _0x3da7a8[_0x991744('0x5')][_0x991744('0x1c')](_0x4047d6,{'force':!![]})[_0x991744('0xe')](function(){const _0x5d352a=_0x991744;logger['info'](_0x5d352a('0x1a'),_0x4047d6);})['catch'](function(_0x7d55a0){const _0x513dfa=_0x991744;logger[_0x513dfa('0x12')](JSON[_0x513dfa('0x19')](_0x7d55a0));});});},Migration[_0x56330d('0x1')]['addIndex']=function(_0x2dc1f0,_0x240fef,_0x141eb2){const _0x3fce17=_0x56330d,_0x4c665c=this;this[_0x3fce17('0x15')][_0x3fce17('0xb')](function(){const _0x180ebd=_0x3fce17;return _0x4c665c[_0x180ebd('0x5')][_0x180ebd('0x14')](_0x2dc1f0,_0x240fef,{'indexName':_0x141eb2})[_0x180ebd('0xe')](function(){const _0x44e589=_0x180ebd;logger[_0x44e589('0x12')](_0x44e589('0x13'),_0x2dc1f0,_0x240fef['join'](','),_0x141eb2);})[_0x180ebd('0x1b')](function(_0x115e4c){const _0x5a7f54=_0x180ebd;logger[_0x5a7f54('0x12')](JSON[_0x5a7f54('0x19')](_0x115e4c));});});},Migration[_0x56330d('0x1')][_0x56330d('0x8')]=function(_0x5ddcd6,_0x1eaf63){const _0x3e4187=_0x56330d,_0x269075=this;this['sequence'][_0x3e4187('0xb')](function(){const _0x3af567=_0x3e4187;return _0x269075[_0x3af567('0x5')][_0x3af567('0x8')](_0x5ddcd6,_0x1eaf63)[_0x3af567('0xe')](function(){const _0x2c7a74=_0x3af567;logger['info'](_0x2c7a74('0x1d'),_0x5ddcd6,_0x1eaf63);})['catch'](function(_0x46ac51){const _0x1b77f9=_0x3af567;logger['info'](JSON[_0x1b77f9('0x19')](_0x46ac51));});});},Migration[_0x56330d('0x1')]['query']=function(_0x56673d){const _0xd13402=_0x56330d,_0x213525=this;this[_0xd13402('0x15')][_0xd13402('0xb')](function(){const _0x5747d4=_0xd13402;return _0x213525[_0x5747d4('0x5')]['sequelize'][_0x5747d4('0x16')](_0x56673d)[_0x5747d4('0xe')](function(){const _0x5c9940=_0x5747d4;logger['info'](_0x5c9940('0x4'),_0x56673d);})['catch'](function(_0x4f061e){const _0x36cc5a=_0x5747d4;logger[_0x36cc5a('0x12')](JSON[_0x36cc5a('0x19')](_0x4f061e));});});},Migration['prototype'][_0x56330d('0xc')]=function(_0x5ab404,_0x4be038){const _0x2f2a5b=_0x56330d,_0x259767=this;this['sequence'][_0x2f2a5b('0xb')](function(){const _0x1153a0=_0x2f2a5b;return _0x259767[_0x1153a0('0x5')][_0x1153a0('0xc')](_0x5ab404,_0x4be038)[_0x1153a0('0xe')](function(){const _0x148b9e=_0x1153a0;logger[_0x148b9e('0x12')](_0x148b9e('0xf'),_0x4be038,_0x5ab404);})[_0x1153a0('0x1b')](function(_0x28235e){const _0x4680fe=_0x1153a0;logger[_0x4680fe('0x12')](util[_0x4680fe('0xd')](_0x28235e,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x56330d('0x2')]=function(_0x7448f7,_0x1bf18a,_0xda094a){const _0x50a943=_0x56330d,_0x4445e1=this;this[_0x50a943('0x15')][_0x50a943('0xb')](function(){const _0x5c6061=_0x50a943;return _0x4445e1[_0x5c6061('0x5')][_0x5c6061('0x2')](_0x7448f7,_0x1bf18a,_0xda094a)[_0x5c6061('0xe')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x1bf18a,_0xda094a,_0x7448f7);})[_0x5c6061('0x1b')](function(_0x391e03){const _0x1fbe93=_0x5c6061;logger[_0x1fbe93('0x12')](util[_0x1fbe93('0xd')](_0x391e03,{'showHidden':![],'depth':null}));});});},Migration[_0x56330d('0x1')]['final']=function(_0x116d46){const _0x15cf31=_0x56330d;this['sequence'][_0x15cf31('0xb')](function(){return _0x116d46();});},module[_0x56330d('0x1e')]={'up':function(_0x2dcc1e){return new Promise(function(_0x1a75d5){const _0x295ba3=a977_0x1568,_0x33a1e2=new Migration(_0x2dcc1e);_0x33a1e2[_0x295ba3('0x6')](_0x1a75d5);});},'down':function(){}};