baa7e50e8e1e781528cb7c2b5c0000c22d1c0683
[motion-next.git] / server / migrations / 2.0.21.js
1 const a1064_0x127f=['prototype','addColumn','exports','migration','report_jscripty_inputs','table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','queryInterface','report_jscripty_sessions','jscripty_projects','catch','info','removeColumn','stringify','../config/logger','report_jscripty_questions','then','dropTable'];(function(_0x2e7f21,_0x1982e9){const _0x127fd5=function(_0x584a4f){while(--_0x584a4f){_0x2e7f21['push'](_0x2e7f21['shift']());}};_0x127fd5(++_0x1982e9);}(a1064_0x127f,0x91));const a1064_0x584a=function(_0x2e7f21,_0x1982e9){_0x2e7f21=_0x2e7f21-0xb8;let _0x127fd5=a1064_0x127f[_0x2e7f21];return _0x127fd5;};const a1064_0x3ca5df=a1064_0x584a;'use strict';const logger=require(a1064_0x3ca5df(0xc5))(a1064_0x3ca5df(0xba)),Migration=function(_0x1f0c7c){this['queryInterface']=_0x1f0c7c;};Migration[a1064_0x3ca5df(0xc9)][a1064_0x3ca5df(0xb8)]=function(_0x5ee02f,_0x3156b9,_0x3dbf05){const _0x246fb1=a1064_0x3ca5df;return this[_0x246fb1(0xbe)][_0x246fb1(0xb8)](_0x5ee02f,_0x3156b9,_0x3dbf05)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x3156b9,_0x5ee02f);})[_0x246fb1(0xc1)](function(_0x37882d){const _0x4b60b8=_0x246fb1;logger[_0x4b60b8(0xc2)](JSON['stringify'](_0x37882d));});},Migration['prototype'][a1064_0x3ca5df(0xc3)]=function(_0x393e66,_0x4b9385){const _0x6cbe4d=a1064_0x3ca5df;return this[_0x6cbe4d(0xbe)][_0x6cbe4d(0xc3)](_0x393e66,_0x4b9385)[_0x6cbe4d(0xc7)](function(){const _0x5c9f33=_0x6cbe4d;logger[_0x5c9f33(0xc2)](_0x5c9f33(0xbd),_0x4b9385,_0x393e66);})[_0x6cbe4d(0xc1)](function(_0x1131b8){const _0x225fa0=_0x6cbe4d;logger[_0x225fa0(0xc2)](JSON[_0x225fa0(0xc4)](_0x1131b8));});},Migration[a1064_0x3ca5df(0xc9)]['renameColumn']=function(_0x445c88,_0x37ab33,_0x477e6d){const _0x50f9cb=a1064_0x3ca5df;return this[_0x50f9cb(0xbe)]['renameColumn'](_0x445c88,_0x37ab33,_0x477e6d)[_0x50f9cb(0xc7)](function(){const _0x17bfd7=_0x50f9cb;logger[_0x17bfd7(0xc2)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x37ab33,_0x477e6d,_0x445c88);})[_0x50f9cb(0xc1)](function(_0x22cd36){const _0x456113=_0x50f9cb;logger[_0x456113(0xc2)](JSON[_0x456113(0xc4)](_0x22cd36));});},Migration[a1064_0x3ca5df(0xc9)][a1064_0x3ca5df(0xc8)]=function(_0xe2d602){const _0xd20966=a1064_0x3ca5df;return this[_0xd20966(0xbe)][_0xd20966(0xc8)](_0xe2d602)[_0xd20966(0xc7)](function(){const _0x48f054=_0xd20966;logger['info'](_0x48f054(0xbc),_0xe2d602);})[_0xd20966(0xc1)](function(_0x20f1c4){const _0x3ea9cc=_0xd20966;logger[_0x3ea9cc(0xc2)](JSON[_0x3ea9cc(0xc4)](_0x20f1c4));});},module[a1064_0x3ca5df(0xb9)]={'up':function(_0x5f2499){const _0x12d3eb=a1064_0x3ca5df,_0x16997e=new Migration(_0x5f2499);_0x16997e[_0x12d3eb(0xc8)](_0x12d3eb(0xc0),{'force':!![]}),_0x16997e[_0x12d3eb(0xc8)](_0x12d3eb(0xbb),{'force':!![]}),_0x16997e[_0x12d3eb(0xc8)](_0x12d3eb(0xc6),{'force':!![]}),_0x16997e[_0x12d3eb(0xc8)](_0x12d3eb(0xbf),{'force':!![]});},'down':function(){}};