e77373dbd021b338ff11dba35203781b10f923a7
[motion-next.git] / server / migrations / 2.3.9.js
1 const a982_0x2ed2=['changeColumn','removeColumn','util','query','stringify','dropTable','addColumn','table\x20dropped\x20%s','prototype','../config/logger','inspect','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','renameColumn','then','Removed\x20column\x20%s\x20from\x20%s','catch','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequence','removeIndex','addIndex','removeIndex\x20%s\x20%s','enqueue','tail','indicesType','final','queryInterface','migration','query\x20%s','info','sequelize','join','indexName','Added\x20column\x20%s\x20to\x20%s'];(function(_0x5a09c4,_0x2ed226){const _0x435c3a=function(_0x45fb1d){while(--_0x45fb1d){_0x5a09c4['push'](_0x5a09c4['shift']());}};_0x435c3a(++_0x2ed226);}(a982_0x2ed2,0xd9));const a982_0x435c=function(_0x5a09c4,_0x2ed226){_0x5a09c4=_0x5a09c4-0x0;let _0x435c3a=a982_0x2ed2[_0x5a09c4];return _0x435c3a;};const _0x258cfc=a982_0x435c;'use strict';const util=require(_0x258cfc('0x10')),logger=require(_0x258cfc('0x17'))(_0x258cfc('0x7')),Sequence=function(){};Sequence[_0x258cfc('0x16')][_0x258cfc('0x2')]=function(_0x45fb1d){const _0x2dd1c3=_0x258cfc;this[_0x2dd1c3('0x3')]=this['tail']?this[_0x2dd1c3('0x3')]['finally'](_0x45fb1d):_0x45fb1d();};const Migration=function(_0x20a503){const _0x54c49a=_0x258cfc;this[_0x54c49a('0x6')]=_0x20a503,this[_0x54c49a('0x1f')]=new Sequence();};Migration['prototype'][_0x258cfc('0xe')]=function(_0x27ebdf,_0x415550,_0x2a3dcb){const _0x4e372a=this;this['sequence']['enqueue'](function(){const _0x3f44d8=a982_0x435c;return _0x4e372a[_0x3f44d8('0x6')]['changeColumn'](_0x27ebdf,_0x415550,_0x2a3dcb)['then'](function(){const _0x40b731=_0x3f44d8;logger[_0x40b731('0x9')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x415550,_0x27ebdf);})[_0x3f44d8('0x1d')](function(_0x90af05){const _0x4cb6bf=_0x3f44d8;logger[_0x4cb6bf('0x9')](JSON[_0x4cb6bf('0x12')](_0x90af05));});});},Migration['prototype'][_0x258cfc('0x14')]=function(_0x4d8bce,_0x4af752,_0x480eec){const _0x12f69d=_0x258cfc,_0x333c4f=this;this['sequence'][_0x12f69d('0x2')](function(){const _0x36f555=_0x12f69d;return _0x333c4f[_0x36f555('0x6')]['addColumn'](_0x4d8bce,_0x4af752,_0x480eec)[_0x36f555('0x1b')](function(){const _0x2dfec3=_0x36f555;logger[_0x2dfec3('0x9')](_0x2dfec3('0xd'),_0x4af752,_0x4d8bce);})[_0x36f555('0x1d')](function(_0x335b93){logger['info'](JSON['stringify'](_0x335b93));});});},Migration[_0x258cfc('0x16')][_0x258cfc('0x13')]=function(_0x14efb3){const _0x471895=_0x258cfc,_0x49afbc=this;this['sequence'][_0x471895('0x2')](function(){const _0x12032f=_0x471895;return _0x49afbc[_0x12032f('0x6')][_0x12032f('0x13')](_0x14efb3,{'force':!![]})[_0x12032f('0x1b')](function(){const _0x2bae48=_0x12032f;logger[_0x2bae48('0x9')](_0x2bae48('0x15'),_0x14efb3);})[_0x12032f('0x1d')](function(_0x3cad51){const _0x56f161=_0x12032f;logger[_0x56f161('0x9')](JSON[_0x56f161('0x12')](_0x3cad51));});});},Migration[_0x258cfc('0x16')][_0x258cfc('0x0')]=function(_0x5bfd01,_0xbee54f,_0x5cf491){const _0xd64a90=_0x258cfc,_0x38de9e=this;this['sequence'][_0xd64a90('0x2')](function(){const _0x59ac6d=_0xd64a90;return _0x38de9e[_0x59ac6d('0x6')][_0x59ac6d('0x0')](_0x5bfd01,_0xbee54f,{'indexName':_0x5cf491[_0x59ac6d('0xc')],'indicesType':_0x5cf491[_0x59ac6d('0x4')]})[_0x59ac6d('0x1b')](function(){const _0x385756=_0x59ac6d;logger[_0x385756('0x9')](_0x385756('0x1e'),_0x5bfd01,_0xbee54f[_0x385756('0xb')](','),_0x5cf491['indexName'],_0x5cf491[_0x385756('0x4')]);})[_0x59ac6d('0x1d')](function(_0x4d486f){logger['info'](JSON['stringify'](_0x4d486f));});});},Migration[_0x258cfc('0x16')][_0x258cfc('0x20')]=function(_0x11cc7f,_0x36ad7c){const _0x3a4ffb=_0x258cfc,_0x463e48=this;this['sequence'][_0x3a4ffb('0x2')](function(){const _0x4d8a78=_0x3a4ffb;return _0x463e48[_0x4d8a78('0x6')][_0x4d8a78('0x20')](_0x11cc7f,_0x36ad7c)[_0x4d8a78('0x1b')](function(){const _0x3869f7=_0x4d8a78;logger[_0x3869f7('0x9')](_0x3869f7('0x1'),_0x11cc7f,_0x36ad7c);})[_0x4d8a78('0x1d')](function(_0x1b5799){const _0x22efce=_0x4d8a78;logger[_0x22efce('0x9')](JSON['stringify'](_0x1b5799));});});},Migration['prototype'][_0x258cfc('0x11')]=function(_0xc3a41){const _0x2f8619=_0x258cfc,_0x141da1=this;this['sequence'][_0x2f8619('0x2')](function(){const _0x54ef3d=_0x2f8619;return _0x141da1['queryInterface'][_0x54ef3d('0xa')]['query'](_0xc3a41)['then'](function(){const _0x300f87=_0x54ef3d;logger[_0x300f87('0x9')](_0x300f87('0x8'),_0xc3a41);})[_0x54ef3d('0x1d')](function(_0x5b67e5){const _0x2cd4cb=_0x54ef3d;logger[_0x2cd4cb('0x9')](JSON['stringify'](_0x5b67e5));});});},Migration[_0x258cfc('0x16')][_0x258cfc('0xf')]=function(_0x39df2d,_0x487b19){const _0x3be494=_0x258cfc,_0x15ec6d=this;this[_0x3be494('0x1f')]['enqueue'](function(){const _0x47c6ab=_0x3be494;return _0x15ec6d[_0x47c6ab('0x6')][_0x47c6ab('0xf')](_0x39df2d,_0x487b19)[_0x47c6ab('0x1b')](function(){const _0x2cdce4=_0x47c6ab;logger[_0x2cdce4('0x9')](_0x2cdce4('0x1c'),_0x487b19,_0x39df2d);})['catch'](function(_0x5294a1){const _0x8eeb46=_0x47c6ab;logger[_0x8eeb46('0x9')](util[_0x8eeb46('0x18')](_0x5294a1,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x258cfc('0x1a')]=function(_0x1b77c8,_0x2ea68a,_0x244e71){const _0x52c33e=_0x258cfc,_0x2ba7b6=this;this['sequence'][_0x52c33e('0x2')](function(){const _0x5e81b9=_0x52c33e;return _0x2ba7b6[_0x5e81b9('0x6')]['renameColumn'](_0x1b77c8,_0x2ea68a,_0x244e71)[_0x5e81b9('0x1b')](function(){const _0x106fec=_0x5e81b9;logger[_0x106fec('0x9')](_0x106fec('0x19'),_0x2ea68a,_0x244e71,_0x1b77c8);})[_0x5e81b9('0x1d')](function(_0x1eaf0f){const _0x233788=_0x5e81b9;logger[_0x233788('0x9')](util[_0x233788('0x18')](_0x1eaf0f,{'showHidden':![],'depth':null}));});});},Migration[_0x258cfc('0x16')][_0x258cfc('0x5')]=function(_0x3a65bd){const _0x56967f=_0x258cfc;this[_0x56967f('0x1f')]['enqueue'](function(){return _0x3a65bd();});},module['exports']={'up':function(_0x48eafc){return new Promise(function(_0x1b49a8){const _0x27b451=a982_0x435c,_0x42e571=new Migration(_0x48eafc);_0x42e571[_0x27b451('0x5')](_0x1b49a8);});},'down':function(){}};