e75347fa9290720ee150863e6bef9c43df70f3e3
[motion-next.git] / server / migrations / 2.0.24.js
1 const a902_0xd852=['../config/logger','tools_schedules','renameColumn','addColumn','queryInterface','prototype','Removed\x20column\x20%s\x20from\x20%s','catch','removeColumn','dropTable','stringify','migration','then','info','Added\x20column\x20%s\x20to\x20%s'];(function(_0x96b85e,_0xd852b9){const _0x1b22c7=function(_0x1d8aa0){while(--_0x1d8aa0){_0x96b85e['push'](_0x96b85e['shift']());}};_0x1b22c7(++_0xd852b9);}(a902_0xd852,0xe8));const a902_0x1b22=function(_0x96b85e,_0xd852b9){_0x96b85e=_0x96b85e-0x0;let _0x1b22c7=a902_0xd852[_0x96b85e];return _0x1b22c7;};const _0x130886=a902_0x1b22;'use strict';const logger=require(_0x130886('0x8'))(_0x130886('0x4')),Migration=function(_0x1d8aa0){const _0x3056d4=_0x130886;this[_0x3056d4('0xc')]=_0x1d8aa0;};Migration[_0x130886('0xd')][_0x130886('0xb')]=function(_0x48ea9d,_0x5178aa,_0x476015){const _0x3a04ce=_0x130886;return this[_0x3a04ce('0xc')][_0x3a04ce('0xb')](_0x48ea9d,_0x5178aa,_0x476015)[_0x3a04ce('0x5')](function(){const _0xe0b2cf=_0x3a04ce;logger[_0xe0b2cf('0x6')](_0xe0b2cf('0x7'),_0x5178aa,_0x48ea9d);})[_0x3a04ce('0x0')](function(_0x6b2d44){const _0x8704a7=_0x3a04ce;logger[_0x8704a7('0x6')](JSON['stringify'](_0x6b2d44));});},Migration[_0x130886('0xd')][_0x130886('0x1')]=function(_0x48485d,_0x3c8750){const _0x21e79d=_0x130886;return this[_0x21e79d('0xc')][_0x21e79d('0x1')](_0x48485d,_0x3c8750)[_0x21e79d('0x5')](function(){const _0x2ba025=_0x21e79d;logger[_0x2ba025('0x6')](_0x2ba025('0xe'),_0x3c8750,_0x48485d);})[_0x21e79d('0x0')](function(_0x4949df){const _0x1d2fcc=_0x21e79d;logger[_0x1d2fcc('0x6')](JSON['stringify'](_0x4949df));});},Migration[_0x130886('0xd')][_0x130886('0xa')]=function(_0x290166,_0x4b0310,_0x1c0c47){const _0x5dadc6=_0x130886;return this[_0x5dadc6('0xc')][_0x5dadc6('0xa')](_0x290166,_0x4b0310,_0x1c0c47)[_0x5dadc6('0x5')](function(){const _0x3cbd0d=_0x5dadc6;logger[_0x3cbd0d('0x6')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4b0310,_0x1c0c47,_0x290166);})[_0x5dadc6('0x0')](function(_0x41204f){const _0x545996=_0x5dadc6;logger[_0x545996('0x6')](JSON['stringify'](_0x41204f));});},Migration[_0x130886('0xd')][_0x130886('0x2')]=function(_0x183b08){const _0x1ad39d=_0x130886;return this[_0x1ad39d('0xc')][_0x1ad39d('0x2')](_0x183b08)['then'](function(){const _0x5f318b=_0x1ad39d;logger[_0x5f318b('0x6')]('table\x20dropped\x20%s',_0x183b08);})[_0x1ad39d('0x0')](function(_0x31171f){const _0x557bbb=_0x1ad39d;logger[_0x557bbb('0x6')](JSON[_0x557bbb('0x3')](_0x31171f));});},module['exports']={'up':function(_0x10875f){const _0x4bf196=_0x130886,_0x4e24=new Migration(_0x10875f);_0x4e24[_0x4bf196('0x2')](_0x4bf196('0x9'),{'force':!![]});},'down':function(){}};