dcc68f4a17ee0fe433113f70b0a7ad4528ef05ec
[motion-next.git] / server / migrations / 2.3.9.js
1 const a982_0x5f34=['Added\x20column\x20%s\x20to\x20%s','removeIndex','indexName','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex\x20%s\x20%s','catch','sequelize','renameColumn','queryInterface','stringify','migration','Removed\x20column\x20%s\x20from\x20%s','sequence','../config/logger','final','prototype','exports','query\x20%s','dropTable','inspect','info','table\x20dropped\x20%s','removeColumn','indicesType','addIndex\x20%s\x20%s\x20%s\x20[%s]','changeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','join','util','then','tail','finally','enqueue','addIndex'];(function(_0xb7535a,_0x5f3475){const _0x5d3e2a=function(_0xe8c312){while(--_0xe8c312){_0xb7535a['push'](_0xb7535a['shift']());}};_0x5d3e2a(++_0x5f3475);}(a982_0x5f34,0x15c));const a982_0x5d3e=function(_0xb7535a,_0x5f3475){_0xb7535a=_0xb7535a-0x0;let _0x5d3e2a=a982_0x5f34[_0xb7535a];return _0x5d3e2a;};const _0xe59fb2=a982_0x5d3e;'use strict';const util=require(_0xe59fb2('0x1f')),logger=require(_0xe59fb2('0x10'))(_0xe59fb2('0xd')),Sequence=function(){};Sequence[_0xe59fb2('0x12')]['enqueue']=function(_0xe8c312){const _0x1597f5=_0xe59fb2;this[_0x1597f5('0x21')]=this['tail']?this['tail'][_0x1597f5('0x22')](_0xe8c312):_0xe8c312();};const Migration=function(_0x41157d){const _0x40c42a=_0xe59fb2;this[_0x40c42a('0xb')]=_0x41157d,this['sequence']=new Sequence();};Migration[_0xe59fb2('0x12')][_0xe59fb2('0x1c')]=function(_0x3c4c8b,_0x54df9b,_0x2e9c05){const _0x466c27=_0xe59fb2,_0xc12c69=this;this[_0x466c27('0xf')][_0x466c27('0x0')](function(){const _0x5c3249=_0x466c27;return _0xc12c69[_0x5c3249('0xb')][_0x5c3249('0x1c')](_0x3c4c8b,_0x54df9b,_0x2e9c05)[_0x5c3249('0x20')](function(){const _0x364234=_0x5c3249;logger[_0x364234('0x17')](_0x364234('0x1d'),_0x54df9b,_0x3c4c8b);})[_0x5c3249('0x8')](function(_0x48dd5d){logger['info'](JSON['stringify'](_0x48dd5d));});});},Migration[_0xe59fb2('0x12')]['addColumn']=function(_0x235e09,_0x1ab770,_0x51da53){const _0x2b0fad=_0xe59fb2,_0x243d9a=this;this[_0x2b0fad('0xf')][_0x2b0fad('0x0')](function(){const _0x4eea3f=_0x2b0fad;return _0x243d9a[_0x4eea3f('0xb')]['addColumn'](_0x235e09,_0x1ab770,_0x51da53)[_0x4eea3f('0x20')](function(){const _0x8f9b11=_0x4eea3f;logger[_0x8f9b11('0x17')](_0x8f9b11('0x2'),_0x1ab770,_0x235e09);})[_0x4eea3f('0x8')](function(_0x7af08b){const _0x5c7c8b=_0x4eea3f;logger[_0x5c7c8b('0x17')](JSON[_0x5c7c8b('0xc')](_0x7af08b));});});},Migration[_0xe59fb2('0x12')][_0xe59fb2('0x15')]=function(_0x3e7253){const _0x20755d=_0xe59fb2,_0x34324f=this;this[_0x20755d('0xf')]['enqueue'](function(){const _0x4d4336=_0x20755d;return _0x34324f[_0x4d4336('0xb')][_0x4d4336('0x15')](_0x3e7253,{'force':!![]})[_0x4d4336('0x20')](function(){const _0x5d0ee2=_0x4d4336;logger[_0x5d0ee2('0x17')](_0x5d0ee2('0x18'),_0x3e7253);})['catch'](function(_0x3a2789){const _0x2bc187=_0x4d4336;logger[_0x2bc187('0x17')](JSON[_0x2bc187('0xc')](_0x3a2789));});});},Migration[_0xe59fb2('0x12')][_0xe59fb2('0x1')]=function(_0x41dc9b,_0x277b8d,_0x3b9c98){const _0x3bae3e=this;this['sequence']['enqueue'](function(){const _0x4a4f92=a982_0x5d3e;return _0x3bae3e[_0x4a4f92('0xb')][_0x4a4f92('0x1')](_0x41dc9b,_0x277b8d,{'indexName':_0x3b9c98[_0x4a4f92('0x4')],'indicesType':_0x3b9c98[_0x4a4f92('0x1a')]})[_0x4a4f92('0x20')](function(){const _0x29b6da=_0x4a4f92;logger[_0x29b6da('0x17')](_0x29b6da('0x1b'),_0x41dc9b,_0x277b8d[_0x29b6da('0x1e')](','),_0x3b9c98[_0x29b6da('0x4')],_0x3b9c98[_0x29b6da('0x1a')]);})['catch'](function(_0x1570f2){const _0x1f5362=_0x4a4f92;logger[_0x1f5362('0x17')](JSON[_0x1f5362('0xc')](_0x1570f2));});});},Migration['prototype'][_0xe59fb2('0x3')]=function(_0x171833,_0x1af304){const _0x2704b0=_0xe59fb2,_0x86e72=this;this['sequence'][_0x2704b0('0x0')](function(){const _0x2acbc1=_0x2704b0;return _0x86e72['queryInterface'][_0x2acbc1('0x3')](_0x171833,_0x1af304)[_0x2acbc1('0x20')](function(){const _0x2ed4d5=_0x2acbc1;logger[_0x2ed4d5('0x17')](_0x2ed4d5('0x7'),_0x171833,_0x1af304);})[_0x2acbc1('0x8')](function(_0x392656){const _0x51aca8=_0x2acbc1;logger['info'](JSON[_0x51aca8('0xc')](_0x392656));});});},Migration[_0xe59fb2('0x12')][_0xe59fb2('0x5')]=function(_0x4b2c64){const _0x4365b9=_0xe59fb2,_0x336a49=this;this[_0x4365b9('0xf')][_0x4365b9('0x0')](function(){const _0x12a6b9=_0x4365b9;return _0x336a49[_0x12a6b9('0xb')][_0x12a6b9('0x9')][_0x12a6b9('0x5')](_0x4b2c64)[_0x12a6b9('0x20')](function(){const _0x4f1ef4=_0x12a6b9;logger[_0x4f1ef4('0x17')](_0x4f1ef4('0x14'),_0x4b2c64);})['catch'](function(_0x59b44c){const _0x2a6cc6=_0x12a6b9;logger[_0x2a6cc6('0x17')](JSON['stringify'](_0x59b44c));});});},Migration[_0xe59fb2('0x12')][_0xe59fb2('0x19')]=function(_0x584f05,_0x4e1b42){const _0x32f0a4=_0xe59fb2,_0x25df0c=this;this[_0x32f0a4('0xf')][_0x32f0a4('0x0')](function(){const _0x27c9e5=_0x32f0a4;return _0x25df0c['queryInterface'][_0x27c9e5('0x19')](_0x584f05,_0x4e1b42)[_0x27c9e5('0x20')](function(){const _0x5c46f6=_0x27c9e5;logger[_0x5c46f6('0x17')](_0x5c46f6('0xe'),_0x4e1b42,_0x584f05);})['catch'](function(_0x575272){const _0x1e4c00=_0x27c9e5;logger[_0x1e4c00('0x17')](util['inspect'](_0x575272,{'showHidden':![],'depth':null}));});});},Migration[_0xe59fb2('0x12')][_0xe59fb2('0xa')]=function(_0x5ab008,_0x4f94b1,_0x4e7434){const _0xeb679a=_0xe59fb2,_0x167116=this;this[_0xeb679a('0xf')][_0xeb679a('0x0')](function(){const _0x223033=_0xeb679a;return _0x167116[_0x223033('0xb')]['renameColumn'](_0x5ab008,_0x4f94b1,_0x4e7434)[_0x223033('0x20')](function(){const _0x82a9c1=_0x223033;logger[_0x82a9c1('0x17')](_0x82a9c1('0x6'),_0x4f94b1,_0x4e7434,_0x5ab008);})[_0x223033('0x8')](function(_0x5c1f7b){const _0x3042fe=_0x223033;logger[_0x3042fe('0x17')](util[_0x3042fe('0x16')](_0x5c1f7b,{'showHidden':![],'depth':null}));});});},Migration[_0xe59fb2('0x12')]['final']=function(_0x4e0446){const _0x9cd0c1=_0xe59fb2;this[_0x9cd0c1('0xf')][_0x9cd0c1('0x0')](function(){return _0x4e0446();});},module[_0xe59fb2('0x13')]={'up':function(_0x4ada80){return new Promise(function(_0x430567){const _0x2ecbf9=a982_0x5d3e,_0x1dcdfa=new Migration(_0x4ada80);_0x1dcdfa[_0x2ecbf9('0x11')](_0x430567);});},'down':function(){}};