Built motion from commit b51cdcb3f2cb46634587ce1d55ea1b8f32dacea6. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.13.js
index 25ffa7a..b7e3e8e 100644 (file)
@@ -1 +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'));}};
\ No newline at end of file
+const a892_0x4f0d=['cm_hopper_final','users','BOOLEAN','prototype','../config/logger','then','rescheduled','info','reschedule','stringify','phoneBarRingInUse','DATE','queryInterface','Added\x20column\x20%s\x20to\x20%s','addColumn','deleted','renameColumn','exports','catch','STRING','deletedat','Removed\x20column\x20%s\x20from\x20%s','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x2c24b1,_0x4f0d92){const _0x5c86a1=function(_0x5c5d33){while(--_0x5c5d33){_0x2c24b1['push'](_0x2c24b1['shift']());}};_0x5c86a1(++_0x4f0d92);}(a892_0x4f0d,0x143));const a892_0x5c86=function(_0x2c24b1,_0x4f0d92){_0x2c24b1=_0x2c24b1-0x0;let _0x5c86a1=a892_0x4f0d[_0x2c24b1];return _0x5c86a1;};const _0x3774f0=a892_0x5c86;'use strict';const logger=require(_0x3774f0('0x11'))('migration'),Migration=function(_0x5c5d33){const _0x494118=_0x3774f0;this[_0x494118('0x1')]=_0x5c5d33;};Migration['prototype'][_0x3774f0('0x3')]=function(_0x10964b,_0x174c1d,_0x149bcd){const _0x55bd09=_0x3774f0;return this[_0x55bd09('0x1')][_0x55bd09('0x3')](_0x10964b,_0x174c1d,_0x149bcd)[_0x55bd09('0x12')](function(){const _0x241ffd=_0x55bd09;logger['info'](_0x241ffd('0x2'),_0x174c1d,_0x10964b);})['catch'](function(_0x269ecf){const _0x2e672f=_0x55bd09;logger['info'](JSON[_0x2e672f('0x16')](_0x269ecf));});},Migration[_0x3774f0('0x10')][_0x3774f0('0xb')]=function(_0x5b7857,_0x14c886){const _0x1f5843=_0x3774f0;return this[_0x1f5843('0x1')][_0x1f5843('0xb')](_0x5b7857,_0x14c886)[_0x1f5843('0x12')](function(){const _0xedc283=_0x1f5843;logger[_0xedc283('0x14')](_0xedc283('0xa'),_0x14c886,_0x5b7857);})[_0x1f5843('0x7')](function(_0x594c1f){const _0x11084e=_0x1f5843;logger[_0x11084e('0x14')](JSON[_0x11084e('0x16')](_0x594c1f));});},Migration[_0x3774f0('0x10')][_0x3774f0('0x5')]=function(_0x32e78c,_0x18e818,_0x3de0bf){const _0x1f35d3=_0x3774f0;return this[_0x1f35d3('0x1')]['renameColumn'](_0x32e78c,_0x18e818,_0x3de0bf)[_0x1f35d3('0x12')](function(){const _0x18afef=_0x1f35d3;logger[_0x18afef('0x14')](_0x18afef('0xc'),_0x18e818,_0x3de0bf,_0x32e78c);})[_0x1f35d3('0x7')](function(_0x2fe032){const _0x13be3e=_0x1f35d3;logger['info'](JSON[_0x13be3e('0x16')](_0x2fe032));});},module[_0x3774f0('0x6')]={'up':function(_0x3a19e2,_0x31d583){const _0x1059f9=_0x3774f0,_0x5d80db=new Migration(_0x3a19e2);_0x5d80db[_0x1059f9('0x3')](_0x1059f9('0xd'),_0x1059f9('0x9'),{'type':_0x31d583[_0x1059f9('0x0')]}),_0x5d80db[_0x1059f9('0x3')](_0x1059f9('0xe'),_0x1059f9('0x17'),{'type':_0x31d583[_0x1059f9('0xf')],'defaultValue':![]}),_0x5d80db[_0x1059f9('0x3')](_0x1059f9('0xd'),'deleted',{'type':_0x31d583[_0x1059f9('0x8')],'defaultValue':null}),_0x5d80db['renameColumn']('cm_hopper_final',_0x1059f9('0x15'),_0x1059f9('0x13'));},'down':function(_0x3788ab,_0x2466f5){const _0x299091=_0x3774f0,_0x19b930=new Migration(_0x3788ab,_0x2466f5);_0x19b930['removeColumn']('users',_0x299091('0x17')),_0x19b930[_0x299091('0xb')](_0x299091('0xd'),_0x299091('0x9')),_0x19b930[_0x299091('0xb')](_0x299091('0xd'),_0x299091('0x4')),_0x19b930[_0x299091('0x5')]('cm_hopper_final','rescheduled',_0x299091('0x15'));}};
\ No newline at end of file