Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.13.js
1 const a892_0x17d7=['queryInterface','DATE','stringify','deletedat','deleted','Added\x20column\x20%s\x20to\x20%s','then','../config/logger','STRING','reschedule','rescheduled','removeColumn','migration','addColumn','cm_hopper_final','users','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','renameColumn','phoneBarRingInUse','catch'];(function(_0x555276,_0x17d720){const _0x397f5d=function(_0x3e3ed0){while(--_0x3e3ed0){_0x555276['push'](_0x555276['shift']());}};_0x397f5d(++_0x17d720);}(a892_0x17d7,0x97));const a892_0x397f=function(_0x555276,_0x17d720){_0x555276=_0x555276-0x0;let _0x397f5d=a892_0x17d7[_0x555276];return _0x397f5d;};const _0x2fa1ac=a892_0x397f;'use strict';const logger=require(_0x2fa1ac('0x3'))(_0x2fa1ac('0x8')),Migration=function(_0x3e3ed0){const _0x394d8d=_0x2fa1ac;this[_0x394d8d('0x11')]=_0x3e3ed0;};Migration['prototype'][_0x2fa1ac('0x9')]=function(_0x5636dc,_0x227e0f,_0x55bc14){const _0x3ae13c=_0x2fa1ac;return this[_0x3ae13c('0x11')]['addColumn'](_0x5636dc,_0x227e0f,_0x55bc14)[_0x3ae13c('0x2')](function(){const _0x289072=_0x3ae13c;logger[_0x289072('0xd')](_0x289072('0x1'),_0x227e0f,_0x5636dc);})[_0x3ae13c('0x10')](function(_0x5b1918){const _0x4c181b=_0x3ae13c;logger[_0x4c181b('0xd')](JSON['stringify'](_0x5b1918));});},Migration['prototype'][_0x2fa1ac('0x7')]=function(_0x767587,_0x52a0e6){const _0x28ffc8=_0x2fa1ac;return this[_0x28ffc8('0x11')][_0x28ffc8('0x7')](_0x767587,_0x52a0e6)[_0x28ffc8('0x2')](function(){const _0x3ec823=_0x28ffc8;logger[_0x3ec823('0xd')]('Removed\x20column\x20%s\x20from\x20%s',_0x52a0e6,_0x767587);})[_0x28ffc8('0x10')](function(_0x45dacf){const _0x2727f3=_0x28ffc8;logger[_0x2727f3('0xd')](JSON[_0x2727f3('0x13')](_0x45dacf));});},Migration['prototype']['renameColumn']=function(_0x16a779,_0x48ac72,_0x5a83c2){const _0x2718cc=_0x2fa1ac;return this[_0x2718cc('0x11')][_0x2718cc('0xe')](_0x16a779,_0x48ac72,_0x5a83c2)[_0x2718cc('0x2')](function(){const _0x3648b1=_0x2718cc;logger[_0x3648b1('0xd')](_0x3648b1('0xc'),_0x48ac72,_0x5a83c2,_0x16a779);})['catch'](function(_0x11ac2d){const _0x9d702f=_0x2718cc;logger[_0x9d702f('0xd')](JSON[_0x9d702f('0x13')](_0x11ac2d));});},module['exports']={'up':function(_0x1bb5b2,_0xa8bf70){const _0x45ed01=_0x2fa1ac,_0x555051=new Migration(_0x1bb5b2);_0x555051[_0x45ed01('0x9')](_0x45ed01('0xa'),_0x45ed01('0x14'),{'type':_0xa8bf70[_0x45ed01('0x12')]}),_0x555051[_0x45ed01('0x9')](_0x45ed01('0xb'),'phoneBarRingInUse',{'type':_0xa8bf70['BOOLEAN'],'defaultValue':![]}),_0x555051[_0x45ed01('0x9')](_0x45ed01('0xa'),_0x45ed01('0x0'),{'type':_0xa8bf70[_0x45ed01('0x4')],'defaultValue':null}),_0x555051[_0x45ed01('0xe')](_0x45ed01('0xa'),'reschedule',_0x45ed01('0x6'));},'down':function(_0x4fc177,_0x3e69aa){const _0x1f5d94=_0x2fa1ac,_0x48af2b=new Migration(_0x4fc177,_0x3e69aa);_0x48af2b['removeColumn'](_0x1f5d94('0xb'),_0x1f5d94('0xf')),_0x48af2b[_0x1f5d94('0x7')](_0x1f5d94('0xa'),_0x1f5d94('0x14')),_0x48af2b[_0x1f5d94('0x7')](_0x1f5d94('0xa'),_0x1f5d94('0x0')),_0x48af2b['renameColumn']('cm_hopper_final',_0x1f5d94('0x6'),_0x1f5d94('0x5'));}};