Built motion from commit 362b9399b4d0ed5560fbb795af995925d345fc38. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.94.js
1 const a1150_0x1930=['removeColumn','catch','addIndex\x20%s\x20%s\x20%s','then','finally','renameColumn','query\x20%s','addIndex','tail','util','removeIndex','exports','changeColumn','dropTable','sequence','inspect','join','stringify','../config/logger','Removed\x20column\x20%s\x20from\x20%s','queryInterface','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','final','info','removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Added\x20column\x20%s\x20to\x20%s','addColumn','query','enqueue'];(function(_0x2dff2e,_0x5ac536){const _0x193093=function(_0x4bf0ac){while(--_0x4bf0ac){_0x2dff2e['push'](_0x2dff2e['shift']());}};_0x193093(++_0x5ac536);}(a1150_0x1930,0x1e1));const a1150_0x4bf0=function(_0x2dff2e,_0x5ac536){_0x2dff2e=_0x2dff2e-0x1b7;let _0x193093=a1150_0x1930[_0x2dff2e];return _0x193093;};const a1150_0x5ee2f8=a1150_0x4bf0;'use strict';const util=require(a1150_0x5ee2f8(0x1cf)),logger=require(a1150_0x5ee2f8(0x1b9))('migration'),Sequence=function(){};Sequence[a1150_0x5ee2f8(0x1bc)][a1150_0x5ee2f8(0x1c5)]=function(_0x110f58){const _0xa07477=a1150_0x5ee2f8;this[_0xa07477(0x1ce)]=this['tail']?this['tail'][_0xa07477(0x1ca)](_0x110f58):_0x110f58();};const Migration=function(_0x522b9d){const _0xb90225=a1150_0x5ee2f8;this[_0xb90225(0x1bb)]=_0x522b9d,this['sequence']=new Sequence();};Migration['prototype'][a1150_0x5ee2f8(0x1d2)]=function(_0x445aed,_0x1374ce,_0x4d30eb){const _0x524573=a1150_0x5ee2f8,_0x1bc8ec=this;this[_0x524573(0x1d4)][_0x524573(0x1c5)](function(){const _0x257ae4=_0x524573;return _0x1bc8ec['queryInterface'][_0x257ae4(0x1d2)](_0x445aed,_0x1374ce,_0x4d30eb)[_0x257ae4(0x1c9)](function(){const _0x1973d4=_0x257ae4;logger['info'](_0x1973d4(0x1bd),_0x1374ce,_0x445aed);})[_0x257ae4(0x1c7)](function(_0x386cb3){const _0x3b1214=_0x257ae4;logger[_0x3b1214(0x1bf)](JSON[_0x3b1214(0x1b8)](_0x386cb3));});});},Migration[a1150_0x5ee2f8(0x1bc)][a1150_0x5ee2f8(0x1c3)]=function(_0x44c557,_0xcbdfba,_0x1694e5){const _0x5ed089=a1150_0x5ee2f8,_0x40d875=this;this[_0x5ed089(0x1d4)][_0x5ed089(0x1c5)](function(){const _0x40a742=_0x5ed089;return _0x40d875[_0x40a742(0x1bb)][_0x40a742(0x1c3)](_0x44c557,_0xcbdfba,_0x1694e5)['then'](function(){const _0x1bc757=_0x40a742;logger[_0x1bc757(0x1bf)](_0x1bc757(0x1c2),_0xcbdfba,_0x44c557);})[_0x40a742(0x1c7)](function(_0x2ce2d1){const _0x1ae3ea=_0x40a742;logger[_0x1ae3ea(0x1bf)](JSON[_0x1ae3ea(0x1b8)](_0x2ce2d1));});});},Migration[a1150_0x5ee2f8(0x1bc)][a1150_0x5ee2f8(0x1d3)]=function(_0x777b2b){const _0xff89a3=a1150_0x5ee2f8,_0x16c1f8=this;this['sequence'][_0xff89a3(0x1c5)](function(){const _0x3b03ff=_0xff89a3;return _0x16c1f8['queryInterface']['dropTable'](_0x777b2b,{'force':!![]})[_0x3b03ff(0x1c9)](function(){const _0x57c1fd=_0x3b03ff;logger[_0x57c1fd(0x1bf)]('table\x20dropped\x20%s',_0x777b2b);})[_0x3b03ff(0x1c7)](function(_0x4144b3){const _0x277394=_0x3b03ff;logger[_0x277394(0x1bf)](JSON[_0x277394(0x1b8)](_0x4144b3));});});},Migration[a1150_0x5ee2f8(0x1bc)]['addIndex']=function(_0x444b0c,_0x1bdcc2,_0x1bb5df){const _0x3339f0=this;this['sequence']['enqueue'](function(){const _0x135f00=a1150_0x4bf0;return _0x3339f0[_0x135f00(0x1bb)][_0x135f00(0x1cd)](_0x444b0c,_0x1bdcc2,{'indexName':_0x1bb5df})[_0x135f00(0x1c9)](function(){const _0x530863=_0x135f00;logger[_0x530863(0x1bf)](_0x530863(0x1c8),_0x444b0c,_0x1bdcc2[_0x530863(0x1b7)](','),_0x1bb5df);})['catch'](function(_0x4cef17){const _0x597e6c=_0x135f00;logger[_0x597e6c(0x1bf)](JSON[_0x597e6c(0x1b8)](_0x4cef17));});});},Migration[a1150_0x5ee2f8(0x1bc)]['removeIndex']=function(_0x545f22,_0x2e6ab7){const _0x3f5b52=a1150_0x5ee2f8,_0x36b5a4=this;this[_0x3f5b52(0x1d4)][_0x3f5b52(0x1c5)](function(){const _0x5486b2=_0x3f5b52;return _0x36b5a4[_0x5486b2(0x1bb)][_0x5486b2(0x1d0)](_0x545f22,_0x2e6ab7)[_0x5486b2(0x1c9)](function(){const _0x39027e=_0x5486b2;logger['info'](_0x39027e(0x1c0),_0x545f22,_0x2e6ab7);})[_0x5486b2(0x1c7)](function(_0x1af225){const _0x3b04b5=_0x5486b2;logger['info'](JSON[_0x3b04b5(0x1b8)](_0x1af225));});});},Migration[a1150_0x5ee2f8(0x1bc)]['query']=function(_0x1fa33b){const _0x229db0=this;this['sequence']['enqueue'](function(){const _0x2de6ff=a1150_0x4bf0;return _0x229db0[_0x2de6ff(0x1bb)]['sequelize'][_0x2de6ff(0x1c4)](_0x1fa33b)[_0x2de6ff(0x1c9)](function(){const _0xe8695c=_0x2de6ff;logger[_0xe8695c(0x1bf)](_0xe8695c(0x1cc),_0x1fa33b);})[_0x2de6ff(0x1c7)](function(_0x396d81){const _0x31ef5d=_0x2de6ff;logger[_0x31ef5d(0x1bf)](JSON[_0x31ef5d(0x1b8)](_0x396d81));});});},Migration[a1150_0x5ee2f8(0x1bc)][a1150_0x5ee2f8(0x1c6)]=function(_0x10604e,_0x526621){const _0x319ad5=this;this['sequence']['enqueue'](function(){const _0x32110b=a1150_0x4bf0;return _0x319ad5[_0x32110b(0x1bb)][_0x32110b(0x1c6)](_0x10604e,_0x526621)[_0x32110b(0x1c9)](function(){const _0x3e2da9=_0x32110b;logger[_0x3e2da9(0x1bf)](_0x3e2da9(0x1ba),_0x526621,_0x10604e);})[_0x32110b(0x1c7)](function(_0x7caaf2){const _0xb2e730=_0x32110b;logger[_0xb2e730(0x1bf)](util['inspect'](_0x7caaf2,{'showHidden':![],'depth':null}));});});},Migration[a1150_0x5ee2f8(0x1bc)][a1150_0x5ee2f8(0x1cb)]=function(_0x4834a3,_0x8bdf42,_0x23889){const _0x4a6c1c=a1150_0x5ee2f8,_0xdea410=this;this[_0x4a6c1c(0x1d4)][_0x4a6c1c(0x1c5)](function(){const _0x48e026=_0x4a6c1c;return _0xdea410[_0x48e026(0x1bb)][_0x48e026(0x1cb)](_0x4834a3,_0x8bdf42,_0x23889)[_0x48e026(0x1c9)](function(){const _0x2c12ab=_0x48e026;logger[_0x2c12ab(0x1bf)](_0x2c12ab(0x1c1),_0x8bdf42,_0x23889,_0x4834a3);})[_0x48e026(0x1c7)](function(_0x3087cd){const _0x266c19=_0x48e026;logger[_0x266c19(0x1bf)](util[_0x266c19(0x1d5)](_0x3087cd,{'showHidden':![],'depth':null}));});});},Migration[a1150_0x5ee2f8(0x1bc)][a1150_0x5ee2f8(0x1be)]=function(_0x62242b){const _0x4052a3=a1150_0x5ee2f8;this[_0x4052a3(0x1d4)][_0x4052a3(0x1c5)](function(){return _0x62242b();});},module[a1150_0x5ee2f8(0x1d1)]={'up':function(_0x4b6887){return new Promise(function(_0x27c683){const _0x3d4237=a1150_0x4bf0,_0x32be3b=new Migration(_0x4b6887);_0x32be3b[_0x3d4237(0x1be)](_0x27c683);});},'down':function(){}};