d21209a8c59f6143b2e746b1d85f2c4847e1be5f
[motion-next.git] / server / migrations / 2.0.84.js
1 const a962_0xc866=['addColumn','queryInterface','info','then','exports','Changed\x20column\x20%s\x20in\x20table\x20%s','migration','removeIndex\x20%s\x20%s','renameColumn','inspect','sequence','removeIndex','final','finally','addIndex','changeColumn','dropTable','Added\x20column\x20%s\x20to\x20%s','tail','stringify','catch','query','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query\x20%s','util','enqueue','../config/logger','prototype','addIndex\x20%s\x20%s\x20%s','removeColumn','join'];(function(_0x33d69c,_0xc866c7){const _0x3c11d0=function(_0x691ceb){while(--_0x691ceb){_0x33d69c['push'](_0x33d69c['shift']());}};_0x3c11d0(++_0xc866c7);}(a962_0xc866,0x1e4));const a962_0x3c11=function(_0x33d69c,_0xc866c7){_0x33d69c=_0x33d69c-0x0;let _0x3c11d0=a962_0xc866[_0x33d69c];return _0x3c11d0;};const _0xcb30e2=a962_0x3c11;'use strict';const util=require(_0xcb30e2('0x15')),logger=require(_0xcb30e2('0x17'))(_0xcb30e2('0x2')),Sequence=function(){};Sequence[_0xcb30e2('0x18')][_0xcb30e2('0x16')]=function(_0x691ceb){const _0x34bfdd=_0xcb30e2;this[_0x34bfdd('0xe')]=this['tail']?this[_0x34bfdd('0xe')][_0x34bfdd('0x9')](_0x691ceb):_0x691ceb();};const Migration=function(_0x1a44f8){const _0x2fc4ef=_0xcb30e2;this[_0x2fc4ef('0x1d')]=_0x1a44f8,this[_0x2fc4ef('0x6')]=new Sequence();};Migration[_0xcb30e2('0x18')][_0xcb30e2('0xb')]=function(_0x1dbc64,_0x37202d,_0x214d5d){const _0x1546f6=_0xcb30e2,_0x9a9412=this;this[_0x1546f6('0x6')][_0x1546f6('0x16')](function(){const _0x47ff70=_0x1546f6;return _0x9a9412['queryInterface'][_0x47ff70('0xb')](_0x1dbc64,_0x37202d,_0x214d5d)[_0x47ff70('0x1f')](function(){const _0xd58917=_0x47ff70;logger[_0xd58917('0x1e')](_0xd58917('0x1'),_0x37202d,_0x1dbc64);})[_0x47ff70('0x10')](function(_0x2e5d34){logger['info'](JSON['stringify'](_0x2e5d34));});});},Migration[_0xcb30e2('0x18')]['addColumn']=function(_0xcfee76,_0x3e7227,_0x185804){const _0x4b0c6b=_0xcb30e2,_0x523bdf=this;this['sequence'][_0x4b0c6b('0x16')](function(){const _0x26bda1=_0x4b0c6b;return _0x523bdf[_0x26bda1('0x1d')][_0x26bda1('0x1c')](_0xcfee76,_0x3e7227,_0x185804)[_0x26bda1('0x1f')](function(){const _0x564351=_0x26bda1;logger[_0x564351('0x1e')](_0x564351('0xd'),_0x3e7227,_0xcfee76);})['catch'](function(_0x252b36){const _0x423d58=_0x26bda1;logger[_0x423d58('0x1e')](JSON['stringify'](_0x252b36));});});},Migration[_0xcb30e2('0x18')][_0xcb30e2('0xc')]=function(_0x153f9c){const _0x44c995=_0xcb30e2,_0x31b5f1=this;this[_0x44c995('0x6')][_0x44c995('0x16')](function(){const _0xcdb1a6=_0x44c995;return _0x31b5f1[_0xcdb1a6('0x1d')]['dropTable'](_0x153f9c,{'force':!![]})[_0xcdb1a6('0x1f')](function(){const _0x2a866d=_0xcdb1a6;logger[_0x2a866d('0x1e')](_0x2a866d('0x12'),_0x153f9c);})['catch'](function(_0x4ff272){const _0x53f1bc=_0xcdb1a6;logger[_0x53f1bc('0x1e')](JSON[_0x53f1bc('0xf')](_0x4ff272));});});},Migration[_0xcb30e2('0x18')][_0xcb30e2('0xa')]=function(_0x1c2220,_0x206da8,_0x335617){const _0x4587e1=_0xcb30e2,_0x385b54=this;this[_0x4587e1('0x6')][_0x4587e1('0x16')](function(){const _0xce1c69=_0x4587e1;return _0x385b54[_0xce1c69('0x1d')][_0xce1c69('0xa')](_0x1c2220,_0x206da8,{'indexName':_0x335617})[_0xce1c69('0x1f')](function(){const _0x1f4527=_0xce1c69;logger[_0x1f4527('0x1e')](_0x1f4527('0x19'),_0x1c2220,_0x206da8[_0x1f4527('0x1b')](','),_0x335617);})[_0xce1c69('0x10')](function(_0x48539d){const _0x57ebd6=_0xce1c69;logger[_0x57ebd6('0x1e')](JSON['stringify'](_0x48539d));});});},Migration[_0xcb30e2('0x18')][_0xcb30e2('0x7')]=function(_0x15cd62,_0x381095){const _0x50967a=_0xcb30e2,_0x567303=this;this[_0x50967a('0x6')][_0x50967a('0x16')](function(){const _0x2e8e28=_0x50967a;return _0x567303['queryInterface'][_0x2e8e28('0x7')](_0x15cd62,_0x381095)[_0x2e8e28('0x1f')](function(){const _0x2274dd=_0x2e8e28;logger['info'](_0x2274dd('0x3'),_0x15cd62,_0x381095);})[_0x2e8e28('0x10')](function(_0x58b22a){const _0x3ad6b1=_0x2e8e28;logger[_0x3ad6b1('0x1e')](JSON[_0x3ad6b1('0xf')](_0x58b22a));});});},Migration['prototype'][_0xcb30e2('0x11')]=function(_0x1964eb){const _0x3dc46f=_0xcb30e2,_0x1edec1=this;this[_0x3dc46f('0x6')][_0x3dc46f('0x16')](function(){const _0x3ca629=_0x3dc46f;return _0x1edec1[_0x3ca629('0x1d')]['sequelize'][_0x3ca629('0x11')](_0x1964eb)[_0x3ca629('0x1f')](function(){const _0xa64274=_0x3ca629;logger[_0xa64274('0x1e')](_0xa64274('0x14'),_0x1964eb);})[_0x3ca629('0x10')](function(_0x55c70c){const _0x200c35=_0x3ca629;logger[_0x200c35('0x1e')](JSON['stringify'](_0x55c70c));});});},Migration[_0xcb30e2('0x18')][_0xcb30e2('0x1a')]=function(_0x3c512c,_0x831649){const _0x47cbd5=_0xcb30e2,_0x2b5bc6=this;this['sequence'][_0x47cbd5('0x16')](function(){const _0x3ed7c6=_0x47cbd5;return _0x2b5bc6[_0x3ed7c6('0x1d')][_0x3ed7c6('0x1a')](_0x3c512c,_0x831649)['then'](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x831649,_0x3c512c);})['catch'](function(_0xd6bf35){const _0x27f8af=_0x3ed7c6;logger[_0x27f8af('0x1e')](util[_0x27f8af('0x5')](_0xd6bf35,{'showHidden':![],'depth':null}));});});},Migration[_0xcb30e2('0x18')][_0xcb30e2('0x4')]=function(_0x47099b,_0x4e61ff,_0x317a85){const _0x1b51b4=_0xcb30e2,_0xfe67e2=this;this[_0x1b51b4('0x6')][_0x1b51b4('0x16')](function(){const _0x5ccd5f=_0x1b51b4;return _0xfe67e2['queryInterface']['renameColumn'](_0x47099b,_0x4e61ff,_0x317a85)['then'](function(){const _0x228b49=a962_0x3c11;logger[_0x228b49('0x1e')](_0x228b49('0x13'),_0x4e61ff,_0x317a85,_0x47099b);})[_0x5ccd5f('0x10')](function(_0x278320){const _0x865ef8=_0x5ccd5f;logger[_0x865ef8('0x1e')](util[_0x865ef8('0x5')](_0x278320,{'showHidden':![],'depth':null}));});});},Migration[_0xcb30e2('0x18')][_0xcb30e2('0x8')]=function(_0x34dbcb){const _0xd20a26=_0xcb30e2;this[_0xd20a26('0x6')][_0xd20a26('0x16')](function(){return _0x34dbcb();});},module[_0xcb30e2('0x0')]={'up':function(_0x38dac7){return new Promise(function(_0x199171){const _0x295e0d=a962_0x3c11,_0x8a9b82=new Migration(_0x38dac7);_0x8a9b82[_0x295e0d('0x8')](_0x199171);});},'down':function(){}};