Built motion from commit aab208717af8d15f4fa224cdb6a202877019af9b. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.13.js
index de144fe..2e0dd6b 100644 (file)
@@ -1 +1 @@
-const a891_0x4670=['info','stringify','users','rescheduled','../config/logger','STRING','catch','migration','renameColumn','BOOLEAN','queryInterface','removeColumn','cm_hopper_final','phoneBarRingInUse','prototype','then','deletedat','exports','addColumn','reschedule','deleted'];(function(_0x57e03d,_0x4670b6){const _0x289d0d=function(_0x3228ce){while(--_0x3228ce){_0x57e03d['push'](_0x57e03d['shift']());}};_0x289d0d(++_0x4670b6);}(a891_0x4670,0x74));const a891_0x289d=function(_0x57e03d,_0x4670b6){_0x57e03d=_0x57e03d-0x0;let _0x289d0d=a891_0x4670[_0x57e03d];return _0x289d0d;};const _0x5189dd=a891_0x289d;'use strict';const logger=require(_0x5189dd('0xe'))(_0x5189dd('0x11')),Migration=function(_0x3228ce){const _0x24af35=_0x5189dd;this[_0x24af35('0x14')]=_0x3228ce;};Migration[_0x5189dd('0x3')][_0x5189dd('0x7')]=function(_0x22aef6,_0x4bc461,_0x154826){const _0x4f183c=_0x5189dd;return this[_0x4f183c('0x14')][_0x4f183c('0x7')](_0x22aef6,_0x4bc461,_0x154826)[_0x4f183c('0x4')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x4bc461,_0x22aef6);})[_0x4f183c('0x10')](function(_0x4281c6){const _0x3f0a35=_0x4f183c;logger[_0x3f0a35('0xa')](JSON[_0x3f0a35('0xb')](_0x4281c6));});},Migration[_0x5189dd('0x3')][_0x5189dd('0x0')]=function(_0x3c5d71,_0xd844ad){const _0x3684af=_0x5189dd;return this[_0x3684af('0x14')][_0x3684af('0x0')](_0x3c5d71,_0xd844ad)[_0x3684af('0x4')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0xd844ad,_0x3c5d71);})[_0x3684af('0x10')](function(_0x275cd4){const _0x1cbbb3=_0x3684af;logger['info'](JSON[_0x1cbbb3('0xb')](_0x275cd4));});},Migration['prototype'][_0x5189dd('0x12')]=function(_0x109191,_0x2681e2,_0x27d188){const _0x4ed775=_0x5189dd;return this[_0x4ed775('0x14')][_0x4ed775('0x12')](_0x109191,_0x2681e2,_0x27d188)[_0x4ed775('0x4')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x2681e2,_0x27d188,_0x109191);})['catch'](function(_0x25a286){const _0x3eb057=_0x4ed775;logger[_0x3eb057('0xa')](JSON[_0x3eb057('0xb')](_0x25a286));});},module[_0x5189dd('0x6')]={'up':function(_0x528865,_0xead084){const _0x4d6aa3=_0x5189dd,_0x24681b=new Migration(_0x528865);_0x24681b[_0x4d6aa3('0x7')](_0x4d6aa3('0x1'),_0x4d6aa3('0x5'),{'type':_0xead084['DATE']}),_0x24681b[_0x4d6aa3('0x7')](_0x4d6aa3('0xc'),_0x4d6aa3('0x2'),{'type':_0xead084[_0x4d6aa3('0x13')],'defaultValue':![]}),_0x24681b[_0x4d6aa3('0x7')]('cm_hopper_final',_0x4d6aa3('0x9'),{'type':_0xead084[_0x4d6aa3('0xf')],'defaultValue':null}),_0x24681b[_0x4d6aa3('0x12')](_0x4d6aa3('0x1'),_0x4d6aa3('0x8'),_0x4d6aa3('0xd'));},'down':function(_0x58c2fc,_0x53bfeb){const _0x30291c=_0x5189dd,_0x277330=new Migration(_0x58c2fc,_0x53bfeb);_0x277330['removeColumn'](_0x30291c('0xc'),_0x30291c('0x2')),_0x277330['removeColumn'](_0x30291c('0x1'),_0x30291c('0x5')),_0x277330[_0x30291c('0x0')](_0x30291c('0x1'),'deleted'),_0x277330['renameColumn'](_0x30291c('0x1'),'rescheduled',_0x30291c('0x8'));}};
\ No newline at end of file
+const a891_0x21d7=['renameColumn','rescheduled','phoneBarRingInUse','info','migration','BOOLEAN','../config/logger','queryInterface','removeColumn','users','addColumn','cm_hopper_final','stringify','then','catch','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','reschedule','DATE','deleted','prototype','STRING'];(function(_0x5862c0,_0x21d767){const _0xa00253=function(_0x5e82c1){while(--_0x5e82c1){_0x5862c0['push'](_0x5862c0['shift']());}};_0xa00253(++_0x21d767);}(a891_0x21d7,0xc8));const a891_0xa002=function(_0x5862c0,_0x21d767){_0x5862c0=_0x5862c0-0x0;let _0xa00253=a891_0x21d7[_0x5862c0];return _0xa00253;};const _0x530dd5=a891_0xa002;'use strict';const logger=require(_0x530dd5('0x4'))(_0x530dd5('0x2')),Migration=function(_0x5e82c1){const _0x5e0533=_0x530dd5;this[_0x5e0533('0x5')]=_0x5e82c1;};Migration[_0x530dd5('0x12')][_0x530dd5('0x8')]=function(_0x1bb973,_0x309162,_0x1a6584){const _0x1d82f0=_0x530dd5;return this[_0x1d82f0('0x5')]['addColumn'](_0x1bb973,_0x309162,_0x1a6584)[_0x1d82f0('0xb')](function(){const _0x49d722=_0x1d82f0;logger['info'](_0x49d722('0xd'),_0x309162,_0x1bb973);})['catch'](function(_0x113d31){const _0x55a34e=_0x1d82f0;logger['info'](JSON[_0x55a34e('0xa')](_0x113d31));});},Migration[_0x530dd5('0x12')][_0x530dd5('0x6')]=function(_0x385782,_0x1cf524){const _0x46f910=_0x530dd5;return this['queryInterface'][_0x46f910('0x6')](_0x385782,_0x1cf524)[_0x46f910('0xb')](function(){const _0x23338b=_0x46f910;logger[_0x23338b('0x1')]('Removed\x20column\x20%s\x20from\x20%s',_0x1cf524,_0x385782);})['catch'](function(_0x2186b9){const _0x2c8fcc=_0x46f910;logger[_0x2c8fcc('0x1')](JSON[_0x2c8fcc('0xa')](_0x2186b9));});},Migration['prototype'][_0x530dd5('0x14')]=function(_0x43cb98,_0x20f057,_0x18a5a1){const _0x4d6566=_0x530dd5;return this[_0x4d6566('0x5')][_0x4d6566('0x14')](_0x43cb98,_0x20f057,_0x18a5a1)['then'](function(){const _0x4fe12b=_0x4d6566;logger[_0x4fe12b('0x1')](_0x4fe12b('0xe'),_0x20f057,_0x18a5a1,_0x43cb98);})[_0x4d6566('0xc')](function(_0xdcd329){const _0x19386c=_0x4d6566;logger[_0x19386c('0x1')](JSON[_0x19386c('0xa')](_0xdcd329));});},module['exports']={'up':function(_0x525af1,_0x4aedd2){const _0xe2ac21=_0x530dd5,_0x5c70f6=new Migration(_0x525af1);_0x5c70f6[_0xe2ac21('0x8')]('cm_hopper_final','deletedat',{'type':_0x4aedd2[_0xe2ac21('0x10')]}),_0x5c70f6['addColumn'](_0xe2ac21('0x7'),_0xe2ac21('0x0'),{'type':_0x4aedd2[_0xe2ac21('0x3')],'defaultValue':![]}),_0x5c70f6[_0xe2ac21('0x8')](_0xe2ac21('0x9'),'deleted',{'type':_0x4aedd2[_0xe2ac21('0x13')],'defaultValue':null}),_0x5c70f6[_0xe2ac21('0x14')](_0xe2ac21('0x9'),'reschedule',_0xe2ac21('0x15'));},'down':function(_0x7c807a,_0x8e5ae1){const _0x3f255b=_0x530dd5,_0x2e7c1c=new Migration(_0x7c807a,_0x8e5ae1);_0x2e7c1c[_0x3f255b('0x6')](_0x3f255b('0x7'),_0x3f255b('0x0')),_0x2e7c1c[_0x3f255b('0x6')]('cm_hopper_final','deletedat'),_0x2e7c1c[_0x3f255b('0x6')](_0x3f255b('0x9'),_0x3f255b('0x11')),_0x2e7c1c['renameColumn']('cm_hopper_final','rescheduled',_0x3f255b('0xf'));}};
\ No newline at end of file