Built motion from commit ecf5ab8ec560fd4c6972692268e350fcef2f38e7. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.13.js
1 const a892_0x6a5e=['info','exports','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','reschedule','deleted','stringify','renameColumn','catch','Added\x20column\x20%s\x20to\x20%s','cm_hopper_final','users','BOOLEAN','then','rescheduled','../config/logger','deletedat','prototype','addColumn','removeColumn','Removed\x20column\x20%s\x20from\x20%s','DATE','queryInterface'];(function(_0x16c52f,_0x6a5ee1){const _0x338616=function(_0x49ad0e){while(--_0x49ad0e){_0x16c52f['push'](_0x16c52f['shift']());}};_0x338616(++_0x6a5ee1);}(a892_0x6a5e,0x1ec));const a892_0x3386=function(_0x16c52f,_0x6a5ee1){_0x16c52f=_0x16c52f-0x0;let _0x338616=a892_0x6a5e[_0x16c52f];return _0x338616;};const _0x1286a8=a892_0x3386;'use strict';const logger=require(_0x1286a8('0x6'))('migration'),Migration=function(_0x49ad0e){const _0x56676c=_0x1286a8;this[_0x56676c('0xd')]=_0x49ad0e;};Migration[_0x1286a8('0x8')][_0x1286a8('0x9')]=function(_0x4516df,_0x5be477,_0x2ab5d8){const _0xc2cbe3=_0x1286a8;return this['queryInterface'][_0xc2cbe3('0x9')](_0x4516df,_0x5be477,_0x2ab5d8)[_0xc2cbe3('0x4')](function(){const _0x345940=_0xc2cbe3;logger[_0x345940('0xe')](_0x345940('0x0'),_0x5be477,_0x4516df);})[_0xc2cbe3('0x15')](function(_0x3faf00){const _0x1c8b7b=_0xc2cbe3;logger['info'](JSON[_0x1c8b7b('0x13')](_0x3faf00));});},Migration[_0x1286a8('0x8')][_0x1286a8('0xa')]=function(_0x2143bf,_0x51a02c){const _0x29743d=_0x1286a8;return this[_0x29743d('0xd')][_0x29743d('0xa')](_0x2143bf,_0x51a02c)['then'](function(){const _0x8a2d9=_0x29743d;logger[_0x8a2d9('0xe')](_0x8a2d9('0xb'),_0x51a02c,_0x2143bf);})['catch'](function(_0x3301b7){const _0x206b6a=_0x29743d;logger[_0x206b6a('0xe')](JSON[_0x206b6a('0x13')](_0x3301b7));});},Migration[_0x1286a8('0x8')][_0x1286a8('0x14')]=function(_0x191378,_0x4a55e0,_0xf31831){const _0x22c6d8=_0x1286a8;return this[_0x22c6d8('0xd')]['renameColumn'](_0x191378,_0x4a55e0,_0xf31831)[_0x22c6d8('0x4')](function(){const _0x1a3304=_0x22c6d8;logger['info'](_0x1a3304('0x10'),_0x4a55e0,_0xf31831,_0x191378);})['catch'](function(_0x4655ca){const _0x5e9217=_0x22c6d8;logger[_0x5e9217('0xe')](JSON[_0x5e9217('0x13')](_0x4655ca));});},module[_0x1286a8('0xf')]={'up':function(_0xfb7a49,_0x388b2c){const _0x48c9c9=_0x1286a8,_0x499b32=new Migration(_0xfb7a49);_0x499b32['addColumn']('cm_hopper_final',_0x48c9c9('0x7'),{'type':_0x388b2c[_0x48c9c9('0xc')]}),_0x499b32[_0x48c9c9('0x9')](_0x48c9c9('0x2'),'phoneBarRingInUse',{'type':_0x388b2c[_0x48c9c9('0x3')],'defaultValue':![]}),_0x499b32[_0x48c9c9('0x9')](_0x48c9c9('0x1'),_0x48c9c9('0x12'),{'type':_0x388b2c['STRING'],'defaultValue':null}),_0x499b32[_0x48c9c9('0x14')](_0x48c9c9('0x1'),_0x48c9c9('0x11'),'rescheduled');},'down':function(_0x4e3416,_0x56fc93){const _0x14b691=_0x1286a8,_0x2edd06=new Migration(_0x4e3416,_0x56fc93);_0x2edd06[_0x14b691('0xa')](_0x14b691('0x2'),'phoneBarRingInUse'),_0x2edd06['removeColumn'](_0x14b691('0x1'),'deletedat'),_0x2edd06[_0x14b691('0xa')]('cm_hopper_final',_0x14b691('0x12')),_0x2edd06[_0x14b691('0x14')](_0x14b691('0x1'),_0x14b691('0x5'),_0x14b691('0x11'));}};