30aadb283136624e20f26b556e8884ba3ffa7ff2
[motion-next.git] / server / migrations / 2.0.20.js
1 const a898_0x5ec5=['dropTable','migration','report_jscripty_sessions','queryInterface','jscripty_projects','stringify','report_jscripty_inputs','removeColumn','catch','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','renameColumn','table\x20dropped\x20%s','prototype','../config/logger','addColumn','info','then'];(function(_0x14db3b,_0x5ec567){const _0x17f869=function(_0x203aa1){while(--_0x203aa1){_0x14db3b['push'](_0x14db3b['shift']());}};_0x17f869(++_0x5ec567);}(a898_0x5ec5,0x106));const a898_0x17f8=function(_0x14db3b,_0x5ec567){_0x14db3b=_0x14db3b-0x0;let _0x17f869=a898_0x5ec5[_0x14db3b];return _0x17f869;};const _0x5592a0=a898_0x17f8;'use strict';const logger=require(_0x5592a0('0x4'))(_0x5592a0('0x9')),Migration=function(_0x203aa1){this['queryInterface']=_0x203aa1;};Migration['prototype'][_0x5592a0('0x5')]=function(_0x4bc86b,_0x3fd2f6,_0x5665a1){const _0x4fb42b=_0x5592a0;return this[_0x4fb42b('0xb')][_0x4fb42b('0x5')](_0x4bc86b,_0x3fd2f6,_0x5665a1)[_0x4fb42b('0x7')](function(){const _0x1cf30c=_0x4fb42b;logger[_0x1cf30c('0x6')](_0x1cf30c('0x11'),_0x3fd2f6,_0x4bc86b);})[_0x4fb42b('0x10')](function(_0xe5cc4f){const _0x1c4e08=_0x4fb42b;logger[_0x1c4e08('0x6')](JSON[_0x1c4e08('0xd')](_0xe5cc4f));});},Migration['prototype'][_0x5592a0('0xf')]=function(_0x29d582,_0x54800a){const _0x5b521d=_0x5592a0;return this[_0x5b521d('0xb')][_0x5b521d('0xf')](_0x29d582,_0x54800a)[_0x5b521d('0x7')](function(){const _0x357516=_0x5b521d;logger[_0x357516('0x6')](_0x357516('0x0'),_0x54800a,_0x29d582);})[_0x5b521d('0x10')](function(_0x1419ec){const _0x586d11=_0x5b521d;logger[_0x586d11('0x6')](JSON['stringify'](_0x1419ec));});},Migration['prototype'][_0x5592a0('0x1')]=function(_0x14139b,_0x1f2b5a,_0x9d3870){const _0x44c9f8=_0x5592a0;return this['queryInterface'][_0x44c9f8('0x1')](_0x14139b,_0x1f2b5a,_0x9d3870)[_0x44c9f8('0x7')](function(){const _0x23e2d2=_0x44c9f8;logger[_0x23e2d2('0x6')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x1f2b5a,_0x9d3870,_0x14139b);})['catch'](function(_0x166eee){const _0x388dcb=_0x44c9f8;logger[_0x388dcb('0x6')](JSON[_0x388dcb('0xd')](_0x166eee));});},Migration[_0x5592a0('0x3')][_0x5592a0('0x8')]=function(_0x6935d7){const _0x61a81b=_0x5592a0;return this[_0x61a81b('0xb')][_0x61a81b('0x8')](_0x6935d7)[_0x61a81b('0x7')](function(){const _0x59e102=_0x61a81b;logger['info'](_0x59e102('0x2'),_0x6935d7);})[_0x61a81b('0x10')](function(_0x34d04e){const _0x537b1d=_0x61a81b;logger[_0x537b1d('0x6')](JSON[_0x537b1d('0xd')](_0x34d04e));});},module['exports']={'up':function(_0xbd8c7){const _0x3f288f=_0x5592a0,_0x4e1b56=new Migration(_0xbd8c7);_0x4e1b56['dropTable'](_0x3f288f('0xc')),_0x4e1b56[_0x3f288f('0x8')](_0x3f288f('0xe')),_0x4e1b56[_0x3f288f('0x8')]('report_jscripty_questions'),_0x4e1b56[_0x3f288f('0x8')](_0x3f288f('0xa'));},'down':function(){}};