Built motion from commit aab208717af8d15f4fa224cdb6a202877019af9b. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.61.js
index 503c76d..a581a16 100644 (file)
@@ -1 +1 @@
-const a939_0x58a7=['changeColumn','addIndex\x20%s\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','removeColumn','queryInterface','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','../config/logger','exports','stringify','util','info','catch','prototype','renameColumn','sequelize','dropTable','tail','Removed\x20column\x20%s\x20from\x20%s','finally','Changed\x20column\x20%s\x20in\x20table\x20%s','enqueue','addIndex','inspect','query\x20%s','final','sequence','query','then'];(function(_0x1cb9fb,_0x58a729){const _0x437f23=function(_0x58d73a){while(--_0x58d73a){_0x1cb9fb['push'](_0x1cb9fb['shift']());}};_0x437f23(++_0x58a729);}(a939_0x58a7,0x17c));const a939_0x437f=function(_0x1cb9fb,_0x58a729){_0x1cb9fb=_0x1cb9fb-0x0;let _0x437f23=a939_0x58a7[_0x1cb9fb];return _0x437f23;};const _0x40b67b=a939_0x437f;'use strict';const util=require(_0x40b67b('0x15')),logger=require(_0x40b67b('0x12'))('migration'),Sequence=function(){};Sequence[_0x40b67b('0x18')][_0x40b67b('0x4')]=function(_0x58d73a){const _0x246ba9=_0x40b67b;this[_0x246ba9('0x0')]=this[_0x246ba9('0x0')]?this[_0x246ba9('0x0')][_0x246ba9('0x2')](_0x58d73a):_0x58d73a();};const Migration=function(_0x3adc0d){const _0x2864be=_0x40b67b;this[_0x2864be('0x10')]=_0x3adc0d,this[_0x2864be('0x9')]=new Sequence();};Migration['prototype'][_0x40b67b('0xc')]=function(_0x4f37f5,_0x3f3b09,_0xc7eedd){const _0x583c58=_0x40b67b,_0x270cec=this;this[_0x583c58('0x9')][_0x583c58('0x4')](function(){const _0x29c0b7=_0x583c58;return _0x270cec[_0x29c0b7('0x10')][_0x29c0b7('0xc')](_0x4f37f5,_0x3f3b09,_0xc7eedd)['then'](function(){const _0x17fca5=_0x29c0b7;logger[_0x17fca5('0x16')](_0x17fca5('0x3'),_0x3f3b09,_0x4f37f5);})['catch'](function(_0x2116bc){const _0x222176=_0x29c0b7;logger[_0x222176('0x16')](JSON[_0x222176('0x14')](_0x2116bc));});});},Migration['prototype']['addColumn']=function(_0x5c8714,_0x1df4f0,_0x430e5e){const _0x2a0f58=_0x40b67b,_0x4a2475=this;this['sequence'][_0x2a0f58('0x4')](function(){const _0x551269=_0x2a0f58;return _0x4a2475[_0x551269('0x10')]['addColumn'](_0x5c8714,_0x1df4f0,_0x430e5e)['then'](function(){const _0x4e6886=_0x551269;logger[_0x4e6886('0x16')](_0x4e6886('0xe'),_0x1df4f0,_0x5c8714);})[_0x551269('0x17')](function(_0x53893e){const _0x825b63=_0x551269;logger[_0x825b63('0x16')](JSON[_0x825b63('0x14')](_0x53893e));});});},Migration['prototype'][_0x40b67b('0x1b')]=function(_0x391be0){const _0x4a9e7=_0x40b67b,_0x3730a5=this;this['sequence'][_0x4a9e7('0x4')](function(){const _0x41eb21=_0x4a9e7;return _0x3730a5['queryInterface'][_0x41eb21('0x1b')](_0x391be0,{'force':!![]})['then'](function(){const _0x37c8c6=_0x41eb21;logger[_0x37c8c6('0x16')]('table\x20dropped\x20%s',_0x391be0);})[_0x41eb21('0x17')](function(_0x5c446a){const _0x23e7e2=_0x41eb21;logger['info'](JSON[_0x23e7e2('0x14')](_0x5c446a));});});},Migration[_0x40b67b('0x18')][_0x40b67b('0x5')]=function(_0x116dbb,_0x16da3b,_0x5b194f){const _0x2580ee=_0x40b67b,_0x416592=this;this['sequence'][_0x2580ee('0x4')](function(){const _0x1678c9=_0x2580ee;return _0x416592[_0x1678c9('0x10')][_0x1678c9('0x5')](_0x116dbb,_0x16da3b,{'indexName':_0x5b194f})[_0x1678c9('0xb')](function(){const _0x266348=_0x1678c9;logger['info'](_0x266348('0xd'),_0x116dbb,_0x16da3b['join'](','),_0x5b194f);})[_0x1678c9('0x17')](function(_0x8dc5bd){const _0x5f143f=_0x1678c9;logger[_0x5f143f('0x16')](JSON['stringify'](_0x8dc5bd));});});},Migration[_0x40b67b('0x18')][_0x40b67b('0xa')]=function(_0x9d19ba){const _0x2c1de7=_0x40b67b,_0x339e84=this;this[_0x2c1de7('0x9')]['enqueue'](function(){const _0x3de901=_0x2c1de7;return _0x339e84['queryInterface'][_0x3de901('0x1a')][_0x3de901('0xa')](_0x9d19ba)['then'](function(){const _0x178a29=_0x3de901;logger[_0x178a29('0x16')](_0x178a29('0x7'),_0x9d19ba);})[_0x3de901('0x17')](function(_0x3376b7){const _0x40caf5=_0x3de901;logger['info'](JSON[_0x40caf5('0x14')](_0x3376b7));});});},Migration['prototype']['removeColumn']=function(_0x204239,_0x557b27){const _0x39c2fc=_0x40b67b,_0xe3cbe7=this;this[_0x39c2fc('0x9')][_0x39c2fc('0x4')](function(){const _0x4d4960=_0x39c2fc;return _0xe3cbe7['queryInterface'][_0x4d4960('0xf')](_0x204239,_0x557b27)[_0x4d4960('0xb')](function(){const _0x54cced=_0x4d4960;logger[_0x54cced('0x16')](_0x54cced('0x1'),_0x557b27,_0x204239);})[_0x4d4960('0x17')](function(_0x2d00a0){const _0x197596=_0x4d4960;logger[_0x197596('0x16')](util[_0x197596('0x6')](_0x2d00a0,{'showHidden':![],'depth':null}));});});},Migration[_0x40b67b('0x18')][_0x40b67b('0x19')]=function(_0x23eafb,_0x46e331,_0x128dac){const _0x1f68d7=_0x40b67b,_0x58b11e=this;this[_0x1f68d7('0x9')][_0x1f68d7('0x4')](function(){const _0x4e0f9f=_0x1f68d7;return _0x58b11e[_0x4e0f9f('0x10')][_0x4e0f9f('0x19')](_0x23eafb,_0x46e331,_0x128dac)[_0x4e0f9f('0xb')](function(){const _0x5bcb99=_0x4e0f9f;logger[_0x5bcb99('0x16')](_0x5bcb99('0x11'),_0x46e331,_0x128dac,_0x23eafb);})[_0x4e0f9f('0x17')](function(_0x2aea3c){const _0x309db0=_0x4e0f9f;logger[_0x309db0('0x16')](util[_0x309db0('0x6')](_0x2aea3c,{'showHidden':![],'depth':null}));});});},Migration[_0x40b67b('0x18')][_0x40b67b('0x8')]=function(_0x134749){const _0x56e6f3=_0x40b67b;this['sequence'][_0x56e6f3('0x4')](function(){return _0x134749();});},module[_0x40b67b('0x13')]={'up':function(_0xb0ab4e){return new Promise(function(_0x3a9287){const _0x28bcdb=a939_0x437f,_0x204950=new Migration(_0xb0ab4e);_0x204950[_0x28bcdb('0x8')](_0x3a9287);});},'down':function(){}};
\ No newline at end of file
+const a939_0x1430=['dropTable','join','util','inspect','then','../config/logger','removeColumn','Added\x20column\x20%s\x20to\x20%s','addColumn','prototype','info','final','stringify','query\x20%s','queryInterface','sequence','sequelize','finally','migration','enqueue','Removed\x20column\x20%s\x20from\x20%s','catch','table\x20dropped\x20%s','renameColumn'];(function(_0x6ce39c,_0x14303e){const _0x50c74a=function(_0x10dfa5){while(--_0x10dfa5){_0x6ce39c['push'](_0x6ce39c['shift']());}};_0x50c74a(++_0x14303e);}(a939_0x1430,0x198));const a939_0x50c7=function(_0x6ce39c,_0x14303e){_0x6ce39c=_0x6ce39c-0x0;let _0x50c74a=a939_0x1430[_0x6ce39c];return _0x50c74a;};const _0x276405=a939_0x50c7;'use strict';const util=require(_0x276405('0x2')),logger=require(_0x276405('0x5'))(_0x276405('0x12')),Sequence=function(){};Sequence[_0x276405('0x9')][_0x276405('0x13')]=function(_0x10dfa5){const _0x20f375=_0x276405;this['tail']=this['tail']?this['tail'][_0x20f375('0x11')](_0x10dfa5):_0x10dfa5();};const Migration=function(_0x26e7b2){const _0x2d61eb=_0x276405;this[_0x2d61eb('0xe')]=_0x26e7b2,this['sequence']=new Sequence();};Migration['prototype']['changeColumn']=function(_0x4fabff,_0x5cb4f0,_0x1dd107){const _0x17f0cb=_0x276405,_0x1993d5=this;this[_0x17f0cb('0xf')][_0x17f0cb('0x13')](function(){const _0x40b7f8=_0x17f0cb;return _0x1993d5['queryInterface']['changeColumn'](_0x4fabff,_0x5cb4f0,_0x1dd107)[_0x40b7f8('0x4')](function(){const _0x4377b2=_0x40b7f8;logger[_0x4377b2('0xa')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x5cb4f0,_0x4fabff);})[_0x40b7f8('0x15')](function(_0x267998){logger['info'](JSON['stringify'](_0x267998));});});},Migration[_0x276405('0x9')][_0x276405('0x8')]=function(_0x1f9b9a,_0x86a205,_0x3bf0e5){const _0x522f7d=_0x276405,_0x51431b=this;this[_0x522f7d('0xf')][_0x522f7d('0x13')](function(){const _0x25385a=_0x522f7d;return _0x51431b[_0x25385a('0xe')][_0x25385a('0x8')](_0x1f9b9a,_0x86a205,_0x3bf0e5)[_0x25385a('0x4')](function(){const _0x3a6675=_0x25385a;logger[_0x3a6675('0xa')](_0x3a6675('0x7'),_0x86a205,_0x1f9b9a);})['catch'](function(_0x49be69){const _0x44d552=_0x25385a;logger[_0x44d552('0xa')](JSON['stringify'](_0x49be69));});});},Migration['prototype'][_0x276405('0x0')]=function(_0x465b7c){const _0x54cf36=_0x276405,_0x462948=this;this[_0x54cf36('0xf')][_0x54cf36('0x13')](function(){const _0x5e78f9=_0x54cf36;return _0x462948[_0x5e78f9('0xe')][_0x5e78f9('0x0')](_0x465b7c,{'force':!![]})['then'](function(){const _0x127ce4=_0x5e78f9;logger[_0x127ce4('0xa')](_0x127ce4('0x16'),_0x465b7c);})[_0x5e78f9('0x15')](function(_0x39ee24){const _0x669a5e=_0x5e78f9;logger[_0x669a5e('0xa')](JSON[_0x669a5e('0xc')](_0x39ee24));});});},Migration[_0x276405('0x9')]['addIndex']=function(_0x324b1d,_0xa500d5,_0x6cafc9){const _0x111f96=_0x276405,_0xe36e1f=this;this[_0x111f96('0xf')][_0x111f96('0x13')](function(){const _0xe5ffe7=_0x111f96;return _0xe36e1f[_0xe5ffe7('0xe')]['addIndex'](_0x324b1d,_0xa500d5,{'indexName':_0x6cafc9})[_0xe5ffe7('0x4')](function(){const _0x42b3a5=_0xe5ffe7;logger[_0x42b3a5('0xa')]('addIndex\x20%s\x20%s\x20%s',_0x324b1d,_0xa500d5[_0x42b3a5('0x1')](','),_0x6cafc9);})[_0xe5ffe7('0x15')](function(_0x545fb3){logger['info'](JSON['stringify'](_0x545fb3));});});},Migration['prototype']['query']=function(_0x6d9c7c){const _0x29cbc2=_0x276405,_0x48d27b=this;this[_0x29cbc2('0xf')]['enqueue'](function(){const _0x25bf28=_0x29cbc2;return _0x48d27b[_0x25bf28('0xe')][_0x25bf28('0x10')]['query'](_0x6d9c7c)['then'](function(){const _0x3e7cd2=_0x25bf28;logger[_0x3e7cd2('0xa')](_0x3e7cd2('0xd'),_0x6d9c7c);})[_0x25bf28('0x15')](function(_0x1586f6){const _0x5d1ac7=_0x25bf28;logger[_0x5d1ac7('0xa')](JSON['stringify'](_0x1586f6));});});},Migration['prototype']['removeColumn']=function(_0x2ff9aa,_0x241f23){const _0x537250=_0x276405,_0x45d8a6=this;this[_0x537250('0xf')][_0x537250('0x13')](function(){const _0x2c9d03=_0x537250;return _0x45d8a6[_0x2c9d03('0xe')][_0x2c9d03('0x6')](_0x2ff9aa,_0x241f23)[_0x2c9d03('0x4')](function(){const _0xd3a57e=_0x2c9d03;logger['info'](_0xd3a57e('0x14'),_0x241f23,_0x2ff9aa);})[_0x2c9d03('0x15')](function(_0x4dc379){const _0x1a9be6=_0x2c9d03;logger[_0x1a9be6('0xa')](util[_0x1a9be6('0x3')](_0x4dc379,{'showHidden':![],'depth':null}));});});},Migration[_0x276405('0x9')]['renameColumn']=function(_0xba5932,_0x49b177,_0x324925){const _0x355293=_0x276405,_0x4c27b5=this;this[_0x355293('0xf')][_0x355293('0x13')](function(){const _0x5c5cce=_0x355293;return _0x4c27b5[_0x5c5cce('0xe')][_0x5c5cce('0x17')](_0xba5932,_0x49b177,_0x324925)['then'](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x49b177,_0x324925,_0xba5932);})[_0x5c5cce('0x15')](function(_0x45a543){const _0x48c331=_0x5c5cce;logger[_0x48c331('0xa')](util[_0x48c331('0x3')](_0x45a543,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x276405('0xb')]=function(_0x2045af){const _0x5e283d=_0x276405;this[_0x5e283d('0xf')]['enqueue'](function(){return _0x2045af();});},module['exports']={'up':function(_0x22b319){return new Promise(function(_0x58de47){const _0x186346=new Migration(_0x22b319);_0x186346['final'](_0x58de47);});},'down':function(){}};
\ No newline at end of file