543bd8f93ae59a5db5b64e9e9877dfae8a0e7ce5
[motion-next.git] / server / migrations / 2.0.75.js
1 const a954_0x4ef8=['addColumn','sequelize','removeIndex','catch','removeColumn','addIndex','dropTable','inspect','addIndex\x20%s\x20%s\x20%s','tail','Removed\x20column\x20%s\x20from\x20%s','enqueue','prototype','query\x20%s','Added\x20column\x20%s\x20to\x20%s','join','stringify','table\x20dropped\x20%s','finally','queryInterface','then','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','final','removeIndex\x20%s\x20%s','changeColumn','info','renameColumn','../config/logger','migration','query'];(function(_0x998bfa,_0x4ef8a0){const _0x10a457=function(_0x46949c){while(--_0x46949c){_0x998bfa['push'](_0x998bfa['shift']());}};_0x10a457(++_0x4ef8a0);}(a954_0x4ef8,0x146));const a954_0x10a4=function(_0x998bfa,_0x4ef8a0){_0x998bfa=_0x998bfa-0x0;let _0x10a457=a954_0x4ef8[_0x998bfa];return _0x10a457;};const _0x46d021=a954_0x10a4;'use strict';const util=require('util'),logger=require(_0x46d021('0x17'))(_0x46d021('0x18')),Sequence=function(){};Sequence[_0x46d021('0x6')][_0x46d021('0x5')]=function(_0x46949c){const _0x311227=_0x46d021;this[_0x311227('0x3')]=this['tail']?this[_0x311227('0x3')][_0x311227('0xc')](_0x46949c):_0x46949c();};const Migration=function(_0xf54a7c){const _0x2a0eee=_0x46d021;this[_0x2a0eee('0xd')]=_0xf54a7c,this[_0x2a0eee('0xf')]=new Sequence();};Migration[_0x46d021('0x6')][_0x46d021('0x14')]=function(_0x52d847,_0x1ac397,_0x1e1f1d){const _0x3f1e99=_0x46d021,_0x6b3c27=this;this['sequence'][_0x3f1e99('0x5')](function(){const _0x6943b3=_0x3f1e99;return _0x6b3c27[_0x6943b3('0xd')][_0x6943b3('0x14')](_0x52d847,_0x1ac397,_0x1e1f1d)[_0x6943b3('0xe')](function(){const _0x1006f6=_0x6943b3;logger[_0x1006f6('0x15')](_0x1006f6('0x10'),_0x1ac397,_0x52d847);})[_0x6943b3('0x1d')](function(_0x5e0271){const _0x161442=_0x6943b3;logger[_0x161442('0x15')](JSON['stringify'](_0x5e0271));});});},Migration[_0x46d021('0x6')][_0x46d021('0x1a')]=function(_0x476415,_0x6f1eee,_0x14e25b){const _0x1444b1=_0x46d021,_0x4b573c=this;this[_0x1444b1('0xf')][_0x1444b1('0x5')](function(){const _0x48b0bc=_0x1444b1;return _0x4b573c[_0x48b0bc('0xd')][_0x48b0bc('0x1a')](_0x476415,_0x6f1eee,_0x14e25b)[_0x48b0bc('0xe')](function(){const _0x44354c=_0x48b0bc;logger[_0x44354c('0x15')](_0x44354c('0x8'),_0x6f1eee,_0x476415);})[_0x48b0bc('0x1d')](function(_0x352307){const _0x494252=_0x48b0bc;logger[_0x494252('0x15')](JSON[_0x494252('0xa')](_0x352307));});});},Migration['prototype'][_0x46d021('0x0')]=function(_0x944ad9){const _0x738969=this;this['sequence']['enqueue'](function(){const _0x50aeff=a954_0x10a4;return _0x738969[_0x50aeff('0xd')][_0x50aeff('0x0')](_0x944ad9,{'force':!![]})['then'](function(){const _0x3402f5=_0x50aeff;logger[_0x3402f5('0x15')](_0x3402f5('0xb'),_0x944ad9);})['catch'](function(_0x362d40){const _0x5d476a=_0x50aeff;logger[_0x5d476a('0x15')](JSON[_0x5d476a('0xa')](_0x362d40));});});},Migration[_0x46d021('0x6')][_0x46d021('0x1f')]=function(_0x249f71,_0x5a0c96,_0x5649f7){const _0xd10cb5=_0x46d021,_0x143a0a=this;this['sequence'][_0xd10cb5('0x5')](function(){const _0x2cf7c9=_0xd10cb5;return _0x143a0a[_0x2cf7c9('0xd')][_0x2cf7c9('0x1f')](_0x249f71,_0x5a0c96,{'indexName':_0x5649f7})[_0x2cf7c9('0xe')](function(){const _0x19b099=_0x2cf7c9;logger[_0x19b099('0x15')](_0x19b099('0x2'),_0x249f71,_0x5a0c96[_0x19b099('0x9')](','),_0x5649f7);})[_0x2cf7c9('0x1d')](function(_0x1e8eb2){const _0x3973b2=_0x2cf7c9;logger[_0x3973b2('0x15')](JSON['stringify'](_0x1e8eb2));});});},Migration[_0x46d021('0x6')][_0x46d021('0x1c')]=function(_0x2cab85,_0x2c527c){const _0x33b830=_0x46d021,_0x3c4e52=this;this[_0x33b830('0xf')]['enqueue'](function(){const _0x1d7ba5=_0x33b830;return _0x3c4e52[_0x1d7ba5('0xd')][_0x1d7ba5('0x1c')](_0x2cab85,_0x2c527c)[_0x1d7ba5('0xe')](function(){const _0x2eeb08=_0x1d7ba5;logger[_0x2eeb08('0x15')](_0x2eeb08('0x13'),_0x2cab85,_0x2c527c);})[_0x1d7ba5('0x1d')](function(_0x394453){const _0x59aa73=_0x1d7ba5;logger[_0x59aa73('0x15')](JSON[_0x59aa73('0xa')](_0x394453));});});},Migration[_0x46d021('0x6')]['query']=function(_0x322722){const _0x5d0e21=_0x46d021,_0x518050=this;this['sequence'][_0x5d0e21('0x5')](function(){const _0x451c76=_0x5d0e21;return _0x518050[_0x451c76('0xd')][_0x451c76('0x1b')][_0x451c76('0x19')](_0x322722)[_0x451c76('0xe')](function(){const _0x5262b1=_0x451c76;logger[_0x5262b1('0x15')](_0x5262b1('0x7'),_0x322722);})[_0x451c76('0x1d')](function(_0x48e06d){const _0x4be8b4=_0x451c76;logger[_0x4be8b4('0x15')](JSON[_0x4be8b4('0xa')](_0x48e06d));});});},Migration[_0x46d021('0x6')][_0x46d021('0x1e')]=function(_0x550faa,_0xa12215){const _0x2f70b2=this;this['sequence']['enqueue'](function(){const _0x4809cc=a954_0x10a4;return _0x2f70b2[_0x4809cc('0xd')]['removeColumn'](_0x550faa,_0xa12215)['then'](function(){const _0xf02d10=_0x4809cc;logger[_0xf02d10('0x15')](_0xf02d10('0x4'),_0xa12215,_0x550faa);})['catch'](function(_0x4a6500){const _0x4bcf6c=_0x4809cc;logger[_0x4bcf6c('0x15')](util['inspect'](_0x4a6500,{'showHidden':![],'depth':null}));});});},Migration[_0x46d021('0x6')][_0x46d021('0x16')]=function(_0x3e9569,_0x4858ad,_0x45c53e){const _0x45e334=_0x46d021,_0x3fe969=this;this[_0x45e334('0xf')][_0x45e334('0x5')](function(){const _0x2c882e=_0x45e334;return _0x3fe969['queryInterface'][_0x2c882e('0x16')](_0x3e9569,_0x4858ad,_0x45c53e)[_0x2c882e('0xe')](function(){const _0x325ef7=_0x2c882e;logger[_0x325ef7('0x15')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4858ad,_0x45c53e,_0x3e9569);})[_0x2c882e('0x1d')](function(_0x5d7799){const _0x3f55c3=_0x2c882e;logger[_0x3f55c3('0x15')](util[_0x3f55c3('0x1')](_0x5d7799,{'showHidden':![],'depth':null}));});});},Migration[_0x46d021('0x6')]['final']=function(_0x3e38fb){const _0x1c905c=_0x46d021;this['sequence'][_0x1c905c('0x5')](function(){return _0x3e38fb();});},module[_0x46d021('0x11')]={'up':function(_0x3fdc97){return new Promise(function(_0x55c59a){const _0x4d8341=a954_0x10a4,_0x1932ee=new Migration(_0x3fdc97);_0x1932ee[_0x4d8341('0x12')](_0x55c59a);});},'down':function(){}};