Built motion from commit 362b9399b4d0ed5560fbb795af995925d345fc38. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.22.js
index 939b62b..ef57e8a 100644 (file)
@@ -1 +1 @@
-const a1065_0xdf57=['dropTable','exports','prototype','removeColumn','renameColumn','stringify','Removed\x20column\x20%s\x20from\x20%s','queryInterface','report_jscripty_answers','Added\x20column\x20%s\x20to\x20%s','migration','table\x20dropped\x20%s','../config/logger','report_jscripty_questions','report_jscripty_sessions','then','catch','info'];(function(_0x23cd9a,_0x12f8e2){const _0xdf57f6=function(_0x56f5bb){while(--_0x56f5bb){_0x23cd9a['push'](_0x23cd9a['shift']());}};_0xdf57f6(++_0x12f8e2);}(a1065_0xdf57,0x180));const a1065_0x56f5=function(_0x23cd9a,_0x12f8e2){_0x23cd9a=_0x23cd9a-0xf6;let _0xdf57f6=a1065_0xdf57[_0x23cd9a];return _0xdf57f6;};const a1065_0x16f9cb=a1065_0x56f5;'use strict';const logger=require(a1065_0x16f9cb(0xfc))(a1065_0x16f9cb(0xfa)),Migration=function(_0xde8072){const _0x37b2aa=a1065_0x16f9cb;this[_0x37b2aa(0xf7)]=_0xde8072;};Migration[a1065_0x16f9cb(0x104)]['addColumn']=function(_0x4b2118,_0x4acc61,_0x48c626){const _0x335433=a1065_0x16f9cb;return this[_0x335433(0xf7)]['addColumn'](_0x4b2118,_0x4acc61,_0x48c626)[_0x335433(0xff)](function(){const _0xa06aa5=_0x335433;logger[_0xa06aa5(0x101)](_0xa06aa5(0xf9),_0x4acc61,_0x4b2118);})[_0x335433(0x100)](function(_0x241bea){const _0x27ab8f=_0x335433;logger['info'](JSON[_0x27ab8f(0x107)](_0x241bea));});},Migration[a1065_0x16f9cb(0x104)][a1065_0x16f9cb(0x105)]=function(_0x160ff7,_0x14ce81){const _0x5897bd=a1065_0x16f9cb;return this['queryInterface'][_0x5897bd(0x105)](_0x160ff7,_0x14ce81)[_0x5897bd(0xff)](function(){const _0x389e94=_0x5897bd;logger[_0x389e94(0x101)](_0x389e94(0xf6),_0x14ce81,_0x160ff7);})[_0x5897bd(0x100)](function(_0x51b310){const _0x499c31=_0x5897bd;logger[_0x499c31(0x101)](JSON[_0x499c31(0x107)](_0x51b310));});},Migration[a1065_0x16f9cb(0x104)][a1065_0x16f9cb(0x106)]=function(_0xcfa3a,_0x3460a1,_0x3d4a56){const _0x144076=a1065_0x16f9cb;return this[_0x144076(0xf7)][_0x144076(0x106)](_0xcfa3a,_0x3460a1,_0x3d4a56)['then'](function(){const _0x31ab8c=_0x144076;logger[_0x31ab8c(0x101)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3460a1,_0x3d4a56,_0xcfa3a);})['catch'](function(_0x308d55){const _0x50b277=_0x144076;logger[_0x50b277(0x101)](JSON[_0x50b277(0x107)](_0x308d55));});},Migration[a1065_0x16f9cb(0x104)][a1065_0x16f9cb(0x102)]=function(_0x347a11){const _0x6c3551=a1065_0x16f9cb;return this[_0x6c3551(0xf7)][_0x6c3551(0x102)](_0x347a11)[_0x6c3551(0xff)](function(){const _0xaf8ad8=_0x6c3551;logger['info'](_0xaf8ad8(0xfb),_0x347a11);})[_0x6c3551(0x100)](function(_0x1954e1){const _0x5480bc=_0x6c3551;logger['info'](JSON[_0x5480bc(0x107)](_0x1954e1));});},module[a1065_0x16f9cb(0x103)]={'up':function(_0x36f080){const _0x4f71fd=a1065_0x16f9cb,_0x311a68=new Migration(_0x36f080);_0x311a68['dropTable'](_0x4f71fd(0xf8),{'force':!![]}),_0x311a68[_0x4f71fd(0x102)](_0x4f71fd(0xfd),{'force':!![]}),_0x311a68[_0x4f71fd(0x102)](_0x4f71fd(0xfe),{'force':!![]});},'down':function(){}};
\ No newline at end of file
+const a1065_0xaf3f=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','exports','report_jscripty_answers','report_jscripty_sessions','addColumn','catch','stringify','report_jscripty_questions','then','renameColumn','Added\x20column\x20%s\x20to\x20%s','removeColumn','info','queryInterface','dropTable','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s','prototype'];(function(_0xc4fb71,_0x37507a){const _0xaf3f7e=function(_0x51526f){while(--_0x51526f){_0xc4fb71['push'](_0xc4fb71['shift']());}};_0xaf3f7e(++_0x37507a);}(a1065_0xaf3f,0xeb));const a1065_0x5152=function(_0xc4fb71,_0x37507a){_0xc4fb71=_0xc4fb71-0x112;let _0xaf3f7e=a1065_0xaf3f[_0xc4fb71];return _0xaf3f7e;};const a1065_0x13a788=a1065_0x5152;'use strict';const logger=require('../config/logger')('migration'),Migration=function(_0x42bb9d){const _0xb630a0=a1065_0x5152;this[_0xb630a0(0x11e)]=_0x42bb9d;};Migration[a1065_0x13a788(0x122)]['addColumn']=function(_0x503e46,_0x337761,_0x21ed13){const _0x123a79=a1065_0x13a788;return this[_0x123a79(0x11e)][_0x123a79(0x115)](_0x503e46,_0x337761,_0x21ed13)[_0x123a79(0x119)](function(){const _0x3f3062=_0x123a79;logger[_0x3f3062(0x11d)](_0x3f3062(0x11b),_0x337761,_0x503e46);})[_0x123a79(0x116)](function(_0x22f059){const _0xbe22e4=_0x123a79;logger[_0xbe22e4(0x11d)](JSON['stringify'](_0x22f059));});},Migration['prototype'][a1065_0x13a788(0x11c)]=function(_0xe724c7,_0x5760c2){const _0xc32740=a1065_0x13a788;return this[_0xc32740(0x11e)][_0xc32740(0x11c)](_0xe724c7,_0x5760c2)['then'](function(){const _0xafe49=_0xc32740;logger[_0xafe49(0x11d)](_0xafe49(0x120),_0x5760c2,_0xe724c7);})[_0xc32740(0x116)](function(_0x3efddc){const _0x25c5f9=_0xc32740;logger[_0x25c5f9(0x11d)](JSON['stringify'](_0x3efddc));});},Migration[a1065_0x13a788(0x122)][a1065_0x13a788(0x11a)]=function(_0x592ce1,_0x228f9f,_0x48e45f){const _0x4c9bc3=a1065_0x13a788;return this[_0x4c9bc3(0x11e)]['renameColumn'](_0x592ce1,_0x228f9f,_0x48e45f)[_0x4c9bc3(0x119)](function(){const _0x1717f=_0x4c9bc3;logger[_0x1717f(0x11d)](_0x1717f(0x123),_0x228f9f,_0x48e45f,_0x592ce1);})[_0x4c9bc3(0x116)](function(_0x493498){const _0x3b8f0b=_0x4c9bc3;logger[_0x3b8f0b(0x11d)](JSON[_0x3b8f0b(0x117)](_0x493498));});},Migration['prototype']['dropTable']=function(_0x5f5da3){const _0x1a46af=a1065_0x13a788;return this[_0x1a46af(0x11e)][_0x1a46af(0x11f)](_0x5f5da3)[_0x1a46af(0x119)](function(){const _0x340421=_0x1a46af;logger[_0x340421(0x11d)](_0x340421(0x121),_0x5f5da3);})[_0x1a46af(0x116)](function(_0x2d5bb3){const _0x4418d6=_0x1a46af;logger['info'](JSON[_0x4418d6(0x117)](_0x2d5bb3));});},module[a1065_0x13a788(0x112)]={'up':function(_0x32db5d){const _0x406715=a1065_0x13a788,_0x2d447d=new Migration(_0x32db5d);_0x2d447d[_0x406715(0x11f)](_0x406715(0x113),{'force':!![]}),_0x2d447d['dropTable'](_0x406715(0x118),{'force':!![]}),_0x2d447d[_0x406715(0x11f)](_0x406715(0x114),{'force':!![]});},'down':function(){}};
\ No newline at end of file