Built motion from commit 5fcd269f5146f10cf3129722d518881dfac64576. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.17.js
index aa3ceb1..146aba8 100644 (file)
@@ -1 +1 @@
-const a999_0x411f=['removeIndex','inspect','removeColumn','Removed\x20column\x20%s\x20from\x20%s','indicesType','enqueue','dropTable','info','addColumn','stringify','../config/logger','final','catch','addIndex\x20%s\x20%s\x20%s\x20[%s]','exports','prototype','query','then','changeColumn','indexName','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','util','sequence','addIndex','queryInterface','tail','table\x20dropped\x20%s','migration'];(function(_0x10c129,_0x411fce){const _0x4fa866=function(_0x1554f8){while(--_0x1554f8){_0x10c129['push'](_0x10c129['shift']());}};_0x4fa866(++_0x411fce);}(a999_0x411f,0x196));const a999_0x4fa8=function(_0x10c129,_0x411fce){_0x10c129=_0x10c129-0x0;let _0x4fa866=a999_0x411f[_0x10c129];return _0x4fa866;};const _0x1b8cde=a999_0x4fa8;'use strict';const util=require(_0x1b8cde('0x7')),logger=require(_0x1b8cde('0x18'))(_0x1b8cde('0xd')),Sequence=function(){};Sequence[_0x1b8cde('0x1')]['enqueue']=function(_0x1554f8){const _0x26dd7f=_0x1b8cde;this['tail']=this[_0x26dd7f('0xb')]?this[_0x26dd7f('0xb')]['finally'](_0x1554f8):_0x1554f8();};const Migration=function(_0x2dc79a){const _0x50a602=_0x1b8cde;this['queryInterface']=_0x2dc79a,this[_0x50a602('0x8')]=new Sequence();};Migration[_0x1b8cde('0x1')][_0x1b8cde('0x4')]=function(_0x5c7f43,_0x2e385c,_0x2cdb77){const _0x155f9d=_0x1b8cde,_0x5d903b=this;this[_0x155f9d('0x8')][_0x155f9d('0x13')](function(){const _0x2175aa=_0x155f9d;return _0x5d903b[_0x2175aa('0xa')]['changeColumn'](_0x5c7f43,_0x2e385c,_0x2cdb77)[_0x2175aa('0x3')](function(){const _0xadc177=_0x2175aa;logger[_0xadc177('0x15')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x2e385c,_0x5c7f43);})[_0x2175aa('0x1a')](function(_0x3ec30d){const _0x14a9a6=_0x2175aa;logger[_0x14a9a6('0x15')](JSON[_0x14a9a6('0x17')](_0x3ec30d));});});},Migration[_0x1b8cde('0x1')][_0x1b8cde('0x16')]=function(_0x278547,_0x54f735,_0x1756ea){const _0x5400f3=_0x1b8cde,_0x5b6928=this;this[_0x5400f3('0x8')][_0x5400f3('0x13')](function(){const _0x557096=_0x5400f3;return _0x5b6928[_0x557096('0xa')][_0x557096('0x16')](_0x278547,_0x54f735,_0x1756ea)[_0x557096('0x3')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x54f735,_0x278547);})[_0x557096('0x1a')](function(_0x293748){const _0xf6cdb9=_0x557096;logger[_0xf6cdb9('0x15')](JSON[_0xf6cdb9('0x17')](_0x293748));});});},Migration[_0x1b8cde('0x1')][_0x1b8cde('0x14')]=function(_0x414cc5){const _0x47ad92=_0x1b8cde,_0x24316a=this;this[_0x47ad92('0x8')][_0x47ad92('0x13')](function(){const _0x12c91d=_0x47ad92;return _0x24316a[_0x12c91d('0xa')]['dropTable'](_0x414cc5,{'force':!![]})[_0x12c91d('0x3')](function(){const _0x1e4351=_0x12c91d;logger['info'](_0x1e4351('0xc'),_0x414cc5);})['catch'](function(_0x447ca5){const _0x249ac8=_0x12c91d;logger[_0x249ac8('0x15')](JSON['stringify'](_0x447ca5));});});},Migration[_0x1b8cde('0x1')][_0x1b8cde('0x9')]=function(_0x5c8991,_0x244598,_0x3c338c){const _0x4e68f1=_0x1b8cde,_0x24235b=this;this['sequence'][_0x4e68f1('0x13')](function(){const _0x1223dd=_0x4e68f1;return _0x24235b['queryInterface'][_0x1223dd('0x9')](_0x5c8991,_0x244598,{'indexName':_0x3c338c[_0x1223dd('0x5')],'indicesType':_0x3c338c[_0x1223dd('0x12')]})[_0x1223dd('0x3')](function(){const _0x598b4e=_0x1223dd;logger[_0x598b4e('0x15')](_0x598b4e('0x1b'),_0x5c8991,_0x244598['join'](','),_0x3c338c[_0x598b4e('0x5')],_0x3c338c[_0x598b4e('0x12')]);})[_0x1223dd('0x1a')](function(_0x17d55b){const _0xea1305=_0x1223dd;logger['info'](JSON[_0xea1305('0x17')](_0x17d55b));});});},Migration[_0x1b8cde('0x1')][_0x1b8cde('0xe')]=function(_0x3003e5,_0x4b274a){const _0x4816e4=_0x1b8cde,_0x5799e1=this;this[_0x4816e4('0x8')][_0x4816e4('0x13')](function(){const _0x21cf82=_0x4816e4;return _0x5799e1[_0x21cf82('0xa')][_0x21cf82('0xe')](_0x3003e5,_0x4b274a)['then'](function(){const _0x294bd4=_0x21cf82;logger[_0x294bd4('0x15')]('removeIndex\x20%s\x20%s',_0x3003e5,_0x4b274a);})[_0x21cf82('0x1a')](function(_0x41d44b){const _0x4b98d8=_0x21cf82;logger[_0x4b98d8('0x15')](JSON['stringify'](_0x41d44b));});});},Migration[_0x1b8cde('0x1')][_0x1b8cde('0x2')]=function(_0x3053ca){const _0x492adf=this;this['sequence']['enqueue'](function(){const _0x241e09=a999_0x4fa8;return _0x492adf['queryInterface']['sequelize'][_0x241e09('0x2')](_0x3053ca)[_0x241e09('0x3')](function(){const _0x2e77a7=_0x241e09;logger[_0x2e77a7('0x15')]('query\x20%s',_0x3053ca);})[_0x241e09('0x1a')](function(_0x2d8af2){const _0x5c8885=_0x241e09;logger[_0x5c8885('0x15')](JSON['stringify'](_0x2d8af2));});});},Migration['prototype']['removeColumn']=function(_0x5a4985,_0x1a2d2a){const _0x4590a6=_0x1b8cde,_0x20e37e=this;this[_0x4590a6('0x8')][_0x4590a6('0x13')](function(){const _0x5cacaf=_0x4590a6;return _0x20e37e['queryInterface'][_0x5cacaf('0x10')](_0x5a4985,_0x1a2d2a)[_0x5cacaf('0x3')](function(){const _0x5b8f5a=_0x5cacaf;logger['info'](_0x5b8f5a('0x11'),_0x1a2d2a,_0x5a4985);})[_0x5cacaf('0x1a')](function(_0x52b86d){const _0x35d3d2=_0x5cacaf;logger[_0x35d3d2('0x15')](util['inspect'](_0x52b86d,{'showHidden':![],'depth':null}));});});},Migration[_0x1b8cde('0x1')]['renameColumn']=function(_0x5dd011,_0x32f6cb,_0x115218){const _0x20d0c5=_0x1b8cde,_0x1904cd=this;this[_0x20d0c5('0x8')][_0x20d0c5('0x13')](function(){const _0x438a33=_0x20d0c5;return _0x1904cd[_0x438a33('0xa')]['renameColumn'](_0x5dd011,_0x32f6cb,_0x115218)[_0x438a33('0x3')](function(){const _0x4fc937=_0x438a33;logger['info'](_0x4fc937('0x6'),_0x32f6cb,_0x115218,_0x5dd011);})['catch'](function(_0x40aaac){const _0x429984=_0x438a33;logger[_0x429984('0x15')](util[_0x429984('0xf')](_0x40aaac,{'showHidden':![],'depth':null}));});});},Migration[_0x1b8cde('0x1')][_0x1b8cde('0x19')]=function(_0x4a3c28){const _0xa5e999=_0x1b8cde;this[_0xa5e999('0x8')][_0xa5e999('0x13')](function(){return _0x4a3c28();});},module[_0x1b8cde('0x0')]={'up':function(_0x5bd9c7){return new Promise(function(_0x470319){const _0xd23c88=a999_0x4fa8,_0x5a453f=new Migration(_0x5bd9c7);_0x5a453f[_0xd23c88('0x19')](_0x470319);});},'down':function(){}};
\ No newline at end of file
+const a999_0x1c58=['query\x20%s','final','migration','removeIndex','query','tail','sequence','../config/logger','Removed\x20column\x20%s\x20from\x20%s','changeColumn','enqueue','finally','renameColumn','then','Changed\x20column\x20%s\x20in\x20table\x20%s','catch','info','exports','prototype','indicesType','removeIndex\x20%s\x20%s','inspect','removeColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','addColumn','join','queryInterface','dropTable','indexName','stringify','sequelize'];(function(_0x533866,_0x1c583f){const _0x367f62=function(_0x5218aa){while(--_0x5218aa){_0x533866['push'](_0x533866['shift']());}};_0x367f62(++_0x1c583f);}(a999_0x1c58,0xec));const a999_0x367f=function(_0x533866,_0x1c583f){_0x533866=_0x533866-0x0;let _0x367f62=a999_0x1c58[_0x533866];return _0x367f62;};const _0x410090=a999_0x367f;'use strict';const util=require('util'),logger=require(_0x410090('0x13'))(_0x410090('0xe')),Sequence=function(){};Sequence[_0x410090('0x1e')][_0x410090('0x16')]=function(_0x5218aa){const _0xea7547=_0x410090;this[_0xea7547('0x11')]=this[_0xea7547('0x11')]?this[_0xea7547('0x11')][_0xea7547('0x17')](_0x5218aa):_0x5218aa();};const Migration=function(_0x1eca84){const _0x2fe787=_0x410090;this[_0x2fe787('0x7')]=_0x1eca84,this[_0x2fe787('0x12')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x1e54b4,_0x2b551d,_0x573cea){const _0x21c818=_0x410090,_0x23524d=this;this[_0x21c818('0x12')][_0x21c818('0x16')](function(){const _0x1123f2=_0x21c818;return _0x23524d['queryInterface'][_0x1123f2('0x15')](_0x1e54b4,_0x2b551d,_0x573cea)['then'](function(){const _0x1c678e=_0x1123f2;logger['info'](_0x1c678e('0x1a'),_0x2b551d,_0x1e54b4);})['catch'](function(_0x15502e){const _0x1fc29b=_0x1123f2;logger[_0x1fc29b('0x1c')](JSON[_0x1fc29b('0xa')](_0x15502e));});});},Migration[_0x410090('0x1e')][_0x410090('0x5')]=function(_0xcdcbf7,_0x252164,_0x18a9e3){const _0x5f5a73=_0x410090,_0x35718b=this;this[_0x5f5a73('0x12')]['enqueue'](function(){const _0x392182=_0x5f5a73;return _0x35718b[_0x392182('0x7')][_0x392182('0x5')](_0xcdcbf7,_0x252164,_0x18a9e3)[_0x392182('0x19')](function(){const _0x54a741=_0x392182;logger[_0x54a741('0x1c')]('Added\x20column\x20%s\x20to\x20%s',_0x252164,_0xcdcbf7);})[_0x392182('0x1b')](function(_0x3ffc45){const _0x201d5f=_0x392182;logger[_0x201d5f('0x1c')](JSON[_0x201d5f('0xa')](_0x3ffc45));});});},Migration[_0x410090('0x1e')]['dropTable']=function(_0x2645c4){const _0x25fc07=this;this['sequence']['enqueue'](function(){const _0xb7eda8=a999_0x367f;return _0x25fc07[_0xb7eda8('0x7')][_0xb7eda8('0x8')](_0x2645c4,{'force':!![]})[_0xb7eda8('0x19')](function(){const _0x2b4c87=_0xb7eda8;logger[_0x2b4c87('0x1c')]('table\x20dropped\x20%s',_0x2645c4);})[_0xb7eda8('0x1b')](function(_0x4cfb08){const _0x22c4c9=_0xb7eda8;logger[_0x22c4c9('0x1c')](JSON[_0x22c4c9('0xa')](_0x4cfb08));});});},Migration[_0x410090('0x1e')]['addIndex']=function(_0x5c2624,_0x574b0f,_0x5e9395){const _0x45a929=_0x410090,_0x347139=this;this['sequence'][_0x45a929('0x16')](function(){const _0x5b530a=_0x45a929;return _0x347139[_0x5b530a('0x7')]['addIndex'](_0x5c2624,_0x574b0f,{'indexName':_0x5e9395[_0x5b530a('0x9')],'indicesType':_0x5e9395[_0x5b530a('0x0')]})[_0x5b530a('0x19')](function(){const _0x4a96cc=_0x5b530a;logger[_0x4a96cc('0x1c')](_0x4a96cc('0x4'),_0x5c2624,_0x574b0f[_0x4a96cc('0x6')](','),_0x5e9395[_0x4a96cc('0x9')],_0x5e9395[_0x4a96cc('0x0')]);})[_0x5b530a('0x1b')](function(_0x5b34f7){const _0x32873c=_0x5b530a;logger[_0x32873c('0x1c')](JSON[_0x32873c('0xa')](_0x5b34f7));});});},Migration[_0x410090('0x1e')][_0x410090('0xf')]=function(_0x94831d,_0x3cad9b){const _0x148edb=_0x410090,_0x4b34bb=this;this[_0x148edb('0x12')][_0x148edb('0x16')](function(){const _0x90de6=_0x148edb;return _0x4b34bb[_0x90de6('0x7')][_0x90de6('0xf')](_0x94831d,_0x3cad9b)[_0x90de6('0x19')](function(){const _0x502d4f=_0x90de6;logger[_0x502d4f('0x1c')](_0x502d4f('0x1'),_0x94831d,_0x3cad9b);})[_0x90de6('0x1b')](function(_0xc847d5){logger['info'](JSON['stringify'](_0xc847d5));});});},Migration[_0x410090('0x1e')][_0x410090('0x10')]=function(_0x12ad7d){const _0x5dce3b=_0x410090,_0xc2fde7=this;this[_0x5dce3b('0x12')][_0x5dce3b('0x16')](function(){const _0x1c10d6=_0x5dce3b;return _0xc2fde7[_0x1c10d6('0x7')][_0x1c10d6('0xb')][_0x1c10d6('0x10')](_0x12ad7d)[_0x1c10d6('0x19')](function(){const _0x211bec=_0x1c10d6;logger[_0x211bec('0x1c')](_0x211bec('0xc'),_0x12ad7d);})[_0x1c10d6('0x1b')](function(_0x243a40){const _0x90354e=_0x1c10d6;logger[_0x90354e('0x1c')](JSON[_0x90354e('0xa')](_0x243a40));});});},Migration[_0x410090('0x1e')][_0x410090('0x3')]=function(_0x506a9d,_0x44e481){const _0x4719bc=_0x410090,_0x4c0dde=this;this['sequence'][_0x4719bc('0x16')](function(){const _0x17f74f=_0x4719bc;return _0x4c0dde[_0x17f74f('0x7')][_0x17f74f('0x3')](_0x506a9d,_0x44e481)[_0x17f74f('0x19')](function(){const _0x52b697=_0x17f74f;logger[_0x52b697('0x1c')](_0x52b697('0x14'),_0x44e481,_0x506a9d);})[_0x17f74f('0x1b')](function(_0xc440ec){const _0x9e84b3=_0x17f74f;logger['info'](util[_0x9e84b3('0x2')](_0xc440ec,{'showHidden':![],'depth':null}));});});},Migration[_0x410090('0x1e')][_0x410090('0x18')]=function(_0x3e7632,_0x4bae89,_0x4e50a7){const _0x5c95ad=_0x410090,_0x4e1bdc=this;this[_0x5c95ad('0x12')][_0x5c95ad('0x16')](function(){const _0x206c43=_0x5c95ad;return _0x4e1bdc[_0x206c43('0x7')][_0x206c43('0x18')](_0x3e7632,_0x4bae89,_0x4e50a7)[_0x206c43('0x19')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4bae89,_0x4e50a7,_0x3e7632);})[_0x206c43('0x1b')](function(_0x2502b9){const _0x5b142e=_0x206c43;logger[_0x5b142e('0x1c')](util['inspect'](_0x2502b9,{'showHidden':![],'depth':null}));});});},Migration[_0x410090('0x1e')][_0x410090('0xd')]=function(_0x16394d){const _0x4ce5bf=_0x410090;this['sequence'][_0x4ce5bf('0x16')](function(){return _0x16394d();});},module[_0x410090('0x1d')]={'up':function(_0x1afefd){return new Promise(function(_0x4ec9b8){const _0x4fd3eb=a999_0x367f,_0x342000=new Migration(_0x1afefd);_0x342000[_0x4fd3eb('0xd')](_0x4ec9b8);});},'down':function(){}};
\ No newline at end of file