Built motion from commit c49361c37b5f784889c8087ac6e0e91b7e6b561a. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.20.js
index d13d024..ac307f8 100644 (file)
@@ -1 +1 @@
-const a899_0x1ee6=['stringify','Removed\x20column\x20%s\x20from\x20%s','../config/logger','then','addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','jscripty_projects','report_jscripty_inputs','queryInterface','dropTable','prototype','removeColumn','Added\x20column\x20%s\x20to\x20%s','migration','info','catch','report_jscripty_sessions'];(function(_0x3380c5,_0x1ee64f){const _0x4dade8=function(_0x361a78){while(--_0x361a78){_0x3380c5['push'](_0x3380c5['shift']());}};_0x4dade8(++_0x1ee64f);}(a899_0x1ee6,0x104));const a899_0x4dad=function(_0x3380c5,_0x1ee64f){_0x3380c5=_0x3380c5-0x0;let _0x4dade8=a899_0x1ee6[_0x3380c5];return _0x4dade8;};const _0x52e254=a899_0x4dad;'use strict';const logger=require(_0x52e254('0xe'))(_0x52e254('0x8')),Migration=function(_0x361a78){const _0x5f84cc=_0x52e254;this[_0x5f84cc('0x3')]=_0x361a78;};Migration[_0x52e254('0x5')][_0x52e254('0x10')]=function(_0x4e2775,_0x39e204,_0x43778e){const _0x70696c=_0x52e254;return this['queryInterface']['addColumn'](_0x4e2775,_0x39e204,_0x43778e)[_0x70696c('0xf')](function(){const _0x4c8ed7=_0x70696c;logger['info'](_0x4c8ed7('0x7'),_0x39e204,_0x4e2775);})['catch'](function(_0xc40865){const _0x3f6f48=_0x70696c;logger[_0x3f6f48('0x9')](JSON[_0x3f6f48('0xc')](_0xc40865));});},Migration[_0x52e254('0x5')][_0x52e254('0x6')]=function(_0x3e0660,_0x4000cd){const _0x48b414=_0x52e254;return this[_0x48b414('0x3')]['removeColumn'](_0x3e0660,_0x4000cd)['then'](function(){const _0x37bea8=_0x48b414;logger['info'](_0x37bea8('0xd'),_0x4000cd,_0x3e0660);})[_0x48b414('0xa')](function(_0x627599){const _0x26bfdf=_0x48b414;logger[_0x26bfdf('0x9')](JSON['stringify'](_0x627599));});},Migration[_0x52e254('0x5')]['renameColumn']=function(_0xf55504,_0x345f25,_0x2234e3){const _0x1fde27=_0x52e254;return this[_0x1fde27('0x3')]['renameColumn'](_0xf55504,_0x345f25,_0x2234e3)[_0x1fde27('0xf')](function(){const _0x204309=_0x1fde27;logger[_0x204309('0x9')](_0x204309('0x0'),_0x345f25,_0x2234e3,_0xf55504);})[_0x1fde27('0xa')](function(_0x1f2775){const _0x56a3f2=_0x1fde27;logger['info'](JSON[_0x56a3f2('0xc')](_0x1f2775));});},Migration['prototype'][_0x52e254('0x4')]=function(_0x162aaa){const _0x116115=_0x52e254;return this[_0x116115('0x3')][_0x116115('0x4')](_0x162aaa)[_0x116115('0xf')](function(){const _0x19e399=_0x116115;logger[_0x19e399('0x9')]('table\x20dropped\x20%s',_0x162aaa);})[_0x116115('0xa')](function(_0x158071){const _0x4fdea5=_0x116115;logger[_0x4fdea5('0x9')](JSON['stringify'](_0x158071));});},module['exports']={'up':function(_0x35ce8b){const _0x4297dc=_0x52e254,_0x489746=new Migration(_0x35ce8b);_0x489746[_0x4297dc('0x4')](_0x4297dc('0x1')),_0x489746[_0x4297dc('0x4')](_0x4297dc('0x2')),_0x489746[_0x4297dc('0x4')]('report_jscripty_questions'),_0x489746['dropTable'](_0x4297dc('0xb'));},'down':function(){}};
\ No newline at end of file
+const a899_0x278a=['jscripty_projects','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','stringify','queryInterface','prototype','exports','info','Added\x20column\x20%s\x20to\x20%s','migration','report_jscripty_questions','catch','renameColumn','addColumn','table\x20dropped\x20%s','removeColumn','then','report_jscripty_sessions','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x4198b5,_0x278a2f){const _0x10e569=function(_0x5d4197){while(--_0x5d4197){_0x4198b5['push'](_0x4198b5['shift']());}};_0x10e569(++_0x278a2f);}(a899_0x278a,0x1ba));const a899_0x10e5=function(_0x4198b5,_0x278a2f){_0x4198b5=_0x4198b5-0x0;let _0x10e569=a899_0x278a[_0x4198b5];return _0x10e569;};const _0xa00ef6=a899_0x10e5;'use strict';const logger=require('../config/logger')(_0xa00ef6('0x4')),Migration=function(_0x5d4197){const _0x378bfd=_0xa00ef6;this[_0x378bfd('0x12')]=_0x5d4197;};Migration[_0xa00ef6('0x0')][_0xa00ef6('0x8')]=function(_0x281fa3,_0x5dd19a,_0xd1d63e){const _0xdf7d20=_0xa00ef6;return this[_0xdf7d20('0x12')]['addColumn'](_0x281fa3,_0x5dd19a,_0xd1d63e)[_0xdf7d20('0xb')](function(){const _0x27504e=_0xdf7d20;logger[_0x27504e('0x2')](_0x27504e('0x3'),_0x5dd19a,_0x281fa3);})[_0xdf7d20('0x6')](function(_0x27ea49){const _0x1c30eb=_0xdf7d20;logger[_0x1c30eb('0x2')](JSON[_0x1c30eb('0x11')](_0x27ea49));});},Migration[_0xa00ef6('0x0')][_0xa00ef6('0xa')]=function(_0x1bd8f4,_0x566d1c){return this['queryInterface']['removeColumn'](_0x1bd8f4,_0x566d1c)['then'](function(){const _0x3fc139=a899_0x10e5;logger[_0x3fc139('0x2')](_0x3fc139('0xd'),_0x566d1c,_0x1bd8f4);})['catch'](function(_0x57d1e5){const _0x1b1c8f=a899_0x10e5;logger[_0x1b1c8f('0x2')](JSON['stringify'](_0x57d1e5));});},Migration[_0xa00ef6('0x0')][_0xa00ef6('0x7')]=function(_0x33c40c,_0x175114,_0x579e57){const _0x339748=_0xa00ef6;return this[_0x339748('0x12')][_0x339748('0x7')](_0x33c40c,_0x175114,_0x579e57)['then'](function(){const _0x184dbe=_0x339748;logger[_0x184dbe('0x2')](_0x184dbe('0x10'),_0x175114,_0x579e57,_0x33c40c);})[_0x339748('0x6')](function(_0x124098){const _0x6062d5=_0x339748;logger['info'](JSON[_0x6062d5('0x11')](_0x124098));});},Migration['prototype'][_0xa00ef6('0xf')]=function(_0x12240f){const _0x8cb917=_0xa00ef6;return this[_0x8cb917('0x12')][_0x8cb917('0xf')](_0x12240f)[_0x8cb917('0xb')](function(){const _0xa12288=_0x8cb917;logger['info'](_0xa12288('0x9'),_0x12240f);})[_0x8cb917('0x6')](function(_0x290bbe){const _0x4f9675=_0x8cb917;logger[_0x4f9675('0x2')](JSON[_0x4f9675('0x11')](_0x290bbe));});},module[_0xa00ef6('0x1')]={'up':function(_0xccf4c5){const _0x3dc293=_0xa00ef6,_0x302819=new Migration(_0xccf4c5);_0x302819[_0x3dc293('0xf')](_0x3dc293('0xe')),_0x302819[_0x3dc293('0xf')]('report_jscripty_inputs'),_0x302819['dropTable'](_0x3dc293('0x5')),_0x302819['dropTable'](_0x3dc293('0xc'));},'down':function(){}};
\ No newline at end of file