Built motion from commit f861bcb808219e66da88ba48b61bddb35224a65e. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.24.js
1 'use strict';const a1075_0xbf85=['exports','1XpYISS','87866hPuFjI','4bQVQUI','Removed\x20column\x20%s\x20from\x20%s','@config/logger','77359fBllRS','196639hmqLJw','Added\x20column\x20%s\x20to\x20%s','queryInterface','tools_schedules','removeColumn','739954EogTUL','prototype','addColumn','601927KvYHcV','dropTable','resolve','290989VJePpD','renameColumn','then','1nlkgih','catch','32523lpEiHM','stringify','info','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];const a1075_0x20e4=function(_0x484290,_0x514604){_0x484290=_0x484290-0x19e;let _0xbf85d1=a1075_0xbf85[_0x484290];return _0xbf85d1;};const a1075_0x275648=a1075_0x20e4;(function(_0x300d7f,_0x45f9dc){const _0x2c3441=a1075_0x20e4;while(!![]){try{const _0x15c072=-parseInt(_0x2c3441(0x1a6))+parseInt(_0x2c3441(0x1b1))+parseInt(_0x2c3441(0x19e))*-parseInt(_0x2c3441(0x1a4))+parseInt(_0x2c3441(0x1ad))*-parseInt(_0x2c3441(0x1b0))+parseInt(_0x2c3441(0x1a1))+parseInt(_0x2c3441(0x1b6))+-parseInt(_0x2c3441(0x1ac))*-parseInt(_0x2c3441(0x1ab));if(_0x15c072===_0x45f9dc)break;else _0x300d7f['push'](_0x300d7f['shift']());}catch(_0x3288b7){_0x300d7f['push'](_0x300d7f['shift']());}}}(a1075_0xbf85,0x5ab6a));const logger=require(a1075_0x275648(0x1af))('migration'),Migration=function(_0x5c1823){this['queryInterface']=_0x5c1823;};Migration['prototype'][a1075_0x275648(0x1b8)]=function(_0x550b23,_0x18e6ba,_0x31e121){const _0xd05f6=a1075_0x275648;return this[_0xd05f6(0x1b3)][_0xd05f6(0x1b8)](_0x550b23,_0x18e6ba,_0x31e121)[_0xd05f6(0x1a3)](function(){const _0xe584e6=_0xd05f6;logger[_0xe584e6(0x1a8)](_0xe584e6(0x1b2),_0x18e6ba,_0x550b23);})['catch'](function(_0x25e41d){const _0x3d0f70=_0xd05f6;logger[_0x3d0f70(0x1a8)](JSON['stringify'](_0x25e41d));});},Migration['prototype'][a1075_0x275648(0x1b5)]=function(_0x21f344,_0x1b0a3a){const _0x47e5d0=a1075_0x275648;return this[_0x47e5d0(0x1b3)]['removeColumn'](_0x21f344,_0x1b0a3a)[_0x47e5d0(0x1a3)](function(){const _0x2f087c=_0x47e5d0;logger[_0x2f087c(0x1a8)](_0x2f087c(0x1ae),_0x1b0a3a,_0x21f344);})[_0x47e5d0(0x1a5)](function(_0x33b64d){const _0x58de7c=_0x47e5d0;logger[_0x58de7c(0x1a8)](JSON[_0x58de7c(0x1a7)](_0x33b64d));});},Migration[a1075_0x275648(0x1b7)][a1075_0x275648(0x1a2)]=function(_0x472495,_0x2e50d1,_0x2c7dfb){const _0x427aac=a1075_0x275648;return this[_0x427aac(0x1b3)]['renameColumn'](_0x472495,_0x2e50d1,_0x2c7dfb)['then'](function(){const _0x11399c=_0x427aac;logger['info'](_0x11399c(0x1a9),_0x2e50d1,_0x2c7dfb,_0x472495);})['catch'](function(_0x38e358){const _0x99d699=_0x427aac;logger[_0x99d699(0x1a8)](JSON['stringify'](_0x38e358));});},Migration[a1075_0x275648(0x1b7)][a1075_0x275648(0x19f)]=function(_0x20da7b){const _0x2dd36c=a1075_0x275648;return this[_0x2dd36c(0x1b3)][_0x2dd36c(0x19f)](_0x20da7b)[_0x2dd36c(0x1a3)](function(){const _0x269c09=_0x2dd36c;logger[_0x269c09(0x1a8)]('table\x20dropped\x20%s',_0x20da7b);})[_0x2dd36c(0x1a5)](function(_0x362bb4){const _0x1fd82b=_0x2dd36c;logger['info'](JSON[_0x1fd82b(0x1a7)](_0x362bb4));});},module[a1075_0x275648(0x1aa)]={'up':function(_0x580cae){const _0x5650b0=a1075_0x275648,_0x1ef73a=new Migration(_0x580cae);_0x1ef73a[_0x5650b0(0x19f)](_0x5650b0(0x1b4),{'force':!![]});},'down':function(){const _0x10e15f=a1075_0x275648;return Promise[_0x10e15f(0x1a0)]();}};