Built motion from commit 4a18b36e645f5fa4a517d36f9783bde259878164. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.74.js
index 9f2af46..b3d189e 100644 (file)
@@ -1 +1 @@
-const a953_0x2c2d=['join','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','stringify','exports','final','addIndex\x20%s\x20%s\x20%s','queryInterface','query','info','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequence','addColumn','Removed\x20column\x20%s\x20from\x20%s','addIndex','migration','table\x20dropped\x20%s','inspect','removeIndex','enqueue','changeColumn','tail','renameColumn','finally','then','catch','util'];(function(_0x42c820,_0x2c2dbd){const _0x196919=function(_0x3b237e){while(--_0x3b237e){_0x42c820['push'](_0x42c820['shift']());}};_0x196919(++_0x2c2dbd);}(a953_0x2c2d,0x102));const a953_0x1969=function(_0x42c820,_0x2c2dbd){_0x42c820=_0x42c820-0x0;let _0x196919=a953_0x2c2d[_0x42c820];return _0x196919;};const _0x21ce03=a953_0x1969;'use strict';const util=require(_0x21ce03('0x15')),logger=require('../config/logger')(_0x21ce03('0xa')),Sequence=function(){};Sequence[_0x21ce03('0x18')][_0x21ce03('0xe')]=function(_0x3b237e){const _0x2548cf=_0x21ce03;this[_0x2548cf('0x10')]=this[_0x2548cf('0x10')]?this[_0x2548cf('0x10')][_0x2548cf('0x12')](_0x3b237e):_0x3b237e();};const Migration=function(_0x3681c9){const _0x764814=_0x21ce03;this[_0x764814('0x1')]=_0x3681c9,this['sequence']=new Sequence();};Migration[_0x21ce03('0x18')][_0x21ce03('0xf')]=function(_0x59613f,_0x47fc84,_0x4a4a1c){const _0x355e39=_0x21ce03,_0x535171=this;this[_0x355e39('0x6')][_0x355e39('0xe')](function(){const _0xecfb1=_0x355e39;return _0x535171[_0xecfb1('0x1')]['changeColumn'](_0x59613f,_0x47fc84,_0x4a4a1c)['then'](function(){const _0x2c1cc6=_0xecfb1;logger[_0x2c1cc6('0x3')](_0x2c1cc6('0x17'),_0x47fc84,_0x59613f);})[_0xecfb1('0x14')](function(_0x4660db){const _0x4c2806=_0xecfb1;logger[_0x4c2806('0x3')](JSON['stringify'](_0x4660db));});});},Migration[_0x21ce03('0x18')][_0x21ce03('0x7')]=function(_0x480164,_0x3f235d,_0x452d48){const _0x2906c4=_0x21ce03,_0x44969f=this;this[_0x2906c4('0x6')][_0x2906c4('0xe')](function(){const _0x58a08b=_0x2906c4;return _0x44969f[_0x58a08b('0x1')][_0x58a08b('0x7')](_0x480164,_0x3f235d,_0x452d48)[_0x58a08b('0x13')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x3f235d,_0x480164);})[_0x58a08b('0x14')](function(_0x5c75ae){const _0xa3b93f=_0x58a08b;logger[_0xa3b93f('0x3')](JSON[_0xa3b93f('0x19')](_0x5c75ae));});});},Migration[_0x21ce03('0x18')]['dropTable']=function(_0x58a844){const _0x49b3aa=_0x21ce03,_0x206a63=this;this['sequence'][_0x49b3aa('0xe')](function(){const _0xd26405=_0x49b3aa;return _0x206a63['queryInterface']['dropTable'](_0x58a844,{'force':!![]})['then'](function(){const _0x546539=a953_0x1969;logger[_0x546539('0x3')](_0x546539('0xb'),_0x58a844);})[_0xd26405('0x14')](function(_0x3879e9){const _0x4b5e1c=_0xd26405;logger[_0x4b5e1c('0x3')](JSON['stringify'](_0x3879e9));});});},Migration['prototype'][_0x21ce03('0x9')]=function(_0x406593,_0x3d9380,_0x2b6eb6){const _0x2c7723=_0x21ce03,_0x13db85=this;this[_0x2c7723('0x6')][_0x2c7723('0xe')](function(){const _0x24bf9a=_0x2c7723;return _0x13db85[_0x24bf9a('0x1')][_0x24bf9a('0x9')](_0x406593,_0x3d9380,{'indexName':_0x2b6eb6})[_0x24bf9a('0x13')](function(){const _0x4803f1=_0x24bf9a;logger[_0x4803f1('0x3')](_0x4803f1('0x0'),_0x406593,_0x3d9380[_0x4803f1('0x16')](','),_0x2b6eb6);})['catch'](function(_0x53cf9e){const _0x93d701=_0x24bf9a;logger[_0x93d701('0x3')](JSON[_0x93d701('0x19')](_0x53cf9e));});});},Migration[_0x21ce03('0x18')][_0x21ce03('0xd')]=function(_0x183a5d,_0x4a1c03){const _0x9a3bdd=_0x21ce03,_0x82cbca=this;this[_0x9a3bdd('0x6')][_0x9a3bdd('0xe')](function(){const _0x51e50d=_0x9a3bdd;return _0x82cbca[_0x51e50d('0x1')][_0x51e50d('0xd')](_0x183a5d,_0x4a1c03)['then'](function(){const _0xf230a3=_0x51e50d;logger[_0xf230a3('0x3')]('removeIndex\x20%s\x20%s',_0x183a5d,_0x4a1c03);})[_0x51e50d('0x14')](function(_0x26099e){const _0x11e860=_0x51e50d;logger['info'](JSON[_0x11e860('0x19')](_0x26099e));});});},Migration[_0x21ce03('0x18')]['query']=function(_0x4d5b49){const _0x124382=_0x21ce03,_0x26b74a=this;this[_0x124382('0x6')][_0x124382('0xe')](function(){const _0x458afc=_0x124382;return _0x26b74a[_0x458afc('0x1')]['sequelize'][_0x458afc('0x2')](_0x4d5b49)[_0x458afc('0x13')](function(){const _0x4d10c7=_0x458afc;logger[_0x4d10c7('0x3')]('query\x20%s',_0x4d5b49);})['catch'](function(_0x52a03b){const _0x532ba6=_0x458afc;logger[_0x532ba6('0x3')](JSON[_0x532ba6('0x19')](_0x52a03b));});});},Migration[_0x21ce03('0x18')][_0x21ce03('0x4')]=function(_0x4ffd19,_0x285b49){const _0x445fb9=_0x21ce03,_0x10f4ab=this;this[_0x445fb9('0x6')][_0x445fb9('0xe')](function(){const _0x2aa1ea=_0x445fb9;return _0x10f4ab['queryInterface'][_0x2aa1ea('0x4')](_0x4ffd19,_0x285b49)[_0x2aa1ea('0x13')](function(){const _0x3f8080=_0x2aa1ea;logger['info'](_0x3f8080('0x8'),_0x285b49,_0x4ffd19);})['catch'](function(_0x52d894){const _0x36e3ae=_0x2aa1ea;logger[_0x36e3ae('0x3')](util[_0x36e3ae('0xc')](_0x52d894,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x159252,_0x2c7e50,_0x34b819){const _0x44c440=_0x21ce03,_0x30dcea=this;this[_0x44c440('0x6')][_0x44c440('0xe')](function(){const _0x163cc1=_0x44c440;return _0x30dcea[_0x163cc1('0x1')][_0x163cc1('0x11')](_0x159252,_0x2c7e50,_0x34b819)[_0x163cc1('0x13')](function(){const _0x25ff46=_0x163cc1;logger[_0x25ff46('0x3')](_0x25ff46('0x5'),_0x2c7e50,_0x34b819,_0x159252);})[_0x163cc1('0x14')](function(_0x43b0ee){logger['info'](util['inspect'](_0x43b0ee,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x1c80af){const _0xeae42a=_0x21ce03;this['sequence'][_0xeae42a('0xe')](function(){return _0x1c80af();});},module[_0x21ce03('0x1a')]={'up':function(_0x211ab1){return new Promise(function(_0x5d03bc){const _0x2869ae=a953_0x1969,_0x5e375d=new Migration(_0x211ab1);_0x5e375d[_0x2869ae('0x1b')](_0x5d03bc);});},'down':function(){}};
\ No newline at end of file
+const a952_0x5e57=['then','sequence','addIndex\x20%s\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','addColumn','removeColumn','enqueue','final','inspect','dropTable','stringify','join','removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex','tail','util','info','queryInterface','finally','exports','sequelize','catch','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','table\x20dropped\x20%s','query\x20%s'];(function(_0x19d818,_0x5e57d4){const _0x56b40a=function(_0x85132f){while(--_0x85132f){_0x19d818['push'](_0x19d818['shift']());}};_0x56b40a(++_0x5e57d4);}(a952_0x5e57,0x1cd));const a952_0x56b4=function(_0x19d818,_0x5e57d4){_0x19d818=_0x19d818-0x0;let _0x56b40a=a952_0x5e57[_0x19d818];return _0x56b40a;};const _0xbe61c4=a952_0x56b4;'use strict';const util=require(_0xbe61c4('0x14')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0xbe61c4('0x1b')]['enqueue']=function(_0x85132f){const _0x53a100=_0xbe61c4;this['tail']=this[_0x53a100('0x13')]?this['tail'][_0x53a100('0x17')](_0x85132f):_0x85132f();};const Migration=function(_0x3ecd5c){const _0x55a7f6=_0xbe61c4;this[_0x55a7f6('0x16')]=_0x3ecd5c,this[_0x55a7f6('0x4')]=new Sequence();};Migration[_0xbe61c4('0x1b')]['changeColumn']=function(_0x378fce,_0x56ea1c,_0x3c59dc){const _0x1253ac=_0xbe61c4,_0x8a15f8=this;this[_0x1253ac('0x4')]['enqueue'](function(){const _0x12cbf2=_0x1253ac;return _0x8a15f8[_0x12cbf2('0x16')]['changeColumn'](_0x378fce,_0x56ea1c,_0x3c59dc)[_0x12cbf2('0x3')](function(){const _0x21c2ff=_0x12cbf2;logger[_0x21c2ff('0x15')](_0x21c2ff('0x1c'),_0x56ea1c,_0x378fce);})[_0x12cbf2('0x1a')](function(_0x1671e3){const _0x44af21=_0x12cbf2;logger[_0x44af21('0x15')](JSON[_0x44af21('0xe')](_0x1671e3));});});},Migration[_0xbe61c4('0x1b')][_0xbe61c4('0x8')]=function(_0x2e10b7,_0x35c08f,_0xc9d883){const _0x4e13fe=_0xbe61c4,_0x19214c=this;this[_0x4e13fe('0x4')]['enqueue'](function(){const _0x9576da=_0x4e13fe;return _0x19214c[_0x9576da('0x16')][_0x9576da('0x8')](_0x2e10b7,_0x35c08f,_0xc9d883)[_0x9576da('0x3')](function(){const _0x4000a6=_0x9576da;logger['info'](_0x4000a6('0x6'),_0x35c08f,_0x2e10b7);})[_0x9576da('0x1a')](function(_0x3c2773){const _0xb9ad20=_0x9576da;logger[_0xb9ad20('0x15')](JSON['stringify'](_0x3c2773));});});},Migration[_0xbe61c4('0x1b')][_0xbe61c4('0xd')]=function(_0x3da8ca){const _0xd3331c=_0xbe61c4,_0xce18a5=this;this[_0xd3331c('0x4')]['enqueue'](function(){const _0x52621b=_0xd3331c;return _0xce18a5[_0x52621b('0x16')]['dropTable'](_0x3da8ca,{'force':!![]})['then'](function(){const _0x33ce19=_0x52621b;logger[_0x33ce19('0x15')](_0x33ce19('0x1'),_0x3da8ca);})['catch'](function(_0x155278){const _0x58bd06=_0x52621b;logger[_0x58bd06('0x15')](JSON['stringify'](_0x155278));});});},Migration[_0xbe61c4('0x1b')]['addIndex']=function(_0x1c7a91,_0x5937ee,_0x94e625){const _0x419707=_0xbe61c4,_0x322c5f=this;this[_0x419707('0x4')][_0x419707('0xa')](function(){const _0x2e0640=_0x419707;return _0x322c5f[_0x2e0640('0x16')]['addIndex'](_0x1c7a91,_0x5937ee,{'indexName':_0x94e625})[_0x2e0640('0x3')](function(){const _0x2b3571=_0x2e0640;logger[_0x2b3571('0x15')](_0x2b3571('0x5'),_0x1c7a91,_0x5937ee[_0x2b3571('0xf')](','),_0x94e625);})[_0x2e0640('0x1a')](function(_0x2dafe8){const _0x1da2ff=_0x2e0640;logger['info'](JSON[_0x1da2ff('0xe')](_0x2dafe8));});});},Migration[_0xbe61c4('0x1b')][_0xbe61c4('0x12')]=function(_0x19a5f2,_0x3199e7){const _0x357012=_0xbe61c4,_0x5919cd=this;this[_0x357012('0x4')][_0x357012('0xa')](function(){const _0x78ddb=_0x357012;return _0x5919cd[_0x78ddb('0x16')][_0x78ddb('0x12')](_0x19a5f2,_0x3199e7)[_0x78ddb('0x3')](function(){const _0x1d8b3d=_0x78ddb;logger[_0x1d8b3d('0x15')](_0x1d8b3d('0x10'),_0x19a5f2,_0x3199e7);})[_0x78ddb('0x1a')](function(_0x30906d){const _0x336a13=_0x78ddb;logger['info'](JSON[_0x336a13('0xe')](_0x30906d));});});},Migration[_0xbe61c4('0x1b')]['query']=function(_0x490544){const _0x348043=_0xbe61c4,_0x5e4526=this;this[_0x348043('0x4')][_0x348043('0xa')](function(){const _0x41a48e=_0x348043;return _0x5e4526[_0x41a48e('0x16')][_0x41a48e('0x19')]['query'](_0x490544)[_0x41a48e('0x3')](function(){const _0x240be0=_0x41a48e;logger[_0x240be0('0x15')](_0x240be0('0x2'),_0x490544);})[_0x41a48e('0x1a')](function(_0x3ee527){const _0x29685c=_0x41a48e;logger[_0x29685c('0x15')](JSON[_0x29685c('0xe')](_0x3ee527));});});},Migration['prototype'][_0xbe61c4('0x9')]=function(_0xbb7668,_0x4909a1){const _0x4980cf=this;this['sequence']['enqueue'](function(){const _0x55fe34=a952_0x56b4;return _0x4980cf[_0x55fe34('0x16')][_0x55fe34('0x9')](_0xbb7668,_0x4909a1)[_0x55fe34('0x3')](function(){const _0xc0d747=_0x55fe34;logger[_0xc0d747('0x15')](_0xc0d747('0x7'),_0x4909a1,_0xbb7668);})[_0x55fe34('0x1a')](function(_0x3905f7){const _0x5cda41=_0x55fe34;logger[_0x5cda41('0x15')](util[_0x5cda41('0xc')](_0x3905f7,{'showHidden':![],'depth':null}));});});},Migration[_0xbe61c4('0x1b')]['renameColumn']=function(_0x37aa53,_0x12901d,_0x469e6c){const _0xd3e7a7=_0xbe61c4,_0x16c18a=this;this['sequence'][_0xd3e7a7('0xa')](function(){const _0x55c0cc=_0xd3e7a7;return _0x16c18a[_0x55c0cc('0x16')][_0x55c0cc('0x0')](_0x37aa53,_0x12901d,_0x469e6c)['then'](function(){const _0x2838af=_0x55c0cc;logger[_0x2838af('0x15')](_0x2838af('0x11'),_0x12901d,_0x469e6c,_0x37aa53);})[_0x55c0cc('0x1a')](function(_0x250942){const _0x59441f=_0x55c0cc;logger[_0x59441f('0x15')](util['inspect'](_0x250942,{'showHidden':![],'depth':null}));});});},Migration[_0xbe61c4('0x1b')][_0xbe61c4('0xb')]=function(_0x2ba060){this['sequence']['enqueue'](function(){return _0x2ba060();});},module[_0xbe61c4('0x18')]={'up':function(_0x39af94){return new Promise(function(_0xfcb1c9){const _0x352fb0=a952_0x56b4,_0x16f72a=new Migration(_0x39af94);_0x16f72a[_0x352fb0('0xb')](_0xfcb1c9);});},'down':function(){}};
\ No newline at end of file