Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.6.js
index 51e39d9..5991ac9 100644 (file)
@@ -1 +1 @@
-const a979_0x32c8=['renameColumn','removeColumn','inspect','tail','queryInterface','addIndex\x20%s\x20%s\x20%s\x20[%s]','migration','../config/logger','enqueue','indicesType','indexName','removeIndex','catch','final','stringify','sequelize','then','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\x20%s','join','finally','addIndex','addColumn','query','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequence','Removed\x20column\x20%s\x20from\x20%s','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','dropTable','info'];(function(_0x51de24,_0x32c885){const _0x1be6ab=function(_0x4c82d6){while(--_0x4c82d6){_0x51de24['push'](_0x51de24['shift']());}};_0x1be6ab(++_0x32c885);}(a979_0x32c8,0x1c7));const a979_0x1be6=function(_0x51de24,_0x32c885){_0x51de24=_0x51de24-0x0;let _0x1be6ab=a979_0x32c8[_0x51de24];return _0x1be6ab;};const _0x49617b=a979_0x1be6;'use strict';const util=require('util'),logger=require(_0x49617b('0x0'))(_0x49617b('0x1f')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x4c82d6){const _0x38e8c6=_0x49617b;this['tail']=this[_0x38e8c6('0x1c')]?this[_0x38e8c6('0x1c')][_0x38e8c6('0xd')](_0x4c82d6):_0x4c82d6();};const Migration=function(_0x3b5bce){const _0x38b3af=_0x49617b;this[_0x38b3af('0x1d')]=_0x3b5bce,this[_0x38b3af('0x13')]=new Sequence();};Migration[_0x49617b('0x15')][_0x49617b('0x11')]=function(_0x3e321d,_0x48321f,_0x54377f){const _0x1b6645=_0x49617b,_0x3c6577=this;this[_0x1b6645('0x13')][_0x1b6645('0x1')](function(){const _0x46b776=_0x1b6645;return _0x3c6577['queryInterface'][_0x46b776('0x11')](_0x3e321d,_0x48321f,_0x54377f)[_0x46b776('0x9')](function(){const _0x2907d6=_0x46b776;logger['info'](_0x2907d6('0x16'),_0x48321f,_0x3e321d);})[_0x46b776('0x5')](function(_0x470587){const _0x5ae6d7=_0x46b776;logger['info'](JSON[_0x5ae6d7('0x7')](_0x470587));});});},Migration[_0x49617b('0x15')][_0x49617b('0xf')]=function(_0x5d6799,_0x5e17ef,_0x6215bb){const _0x168408=_0x49617b,_0x63db59=this;this[_0x168408('0x13')][_0x168408('0x1')](function(){const _0x43b117=_0x168408;return _0x63db59[_0x43b117('0x1d')][_0x43b117('0xf')](_0x5d6799,_0x5e17ef,_0x6215bb)[_0x43b117('0x9')](function(){const _0x530d3e=_0x43b117;logger[_0x530d3e('0x18')](_0x530d3e('0xb'),_0x5e17ef,_0x5d6799);})['catch'](function(_0x11082f){logger['info'](JSON['stringify'](_0x11082f));});});},Migration[_0x49617b('0x15')]['dropTable']=function(_0x4892b8){const _0x12fb44=_0x49617b,_0x5a80ea=this;this[_0x12fb44('0x13')][_0x12fb44('0x1')](function(){const _0x25767f=_0x12fb44;return _0x5a80ea['queryInterface'][_0x25767f('0x17')](_0x4892b8,{'force':!![]})[_0x25767f('0x9')](function(){const _0x5dfe38=_0x25767f;logger[_0x5dfe38('0x18')](_0x5dfe38('0xa'),_0x4892b8);})[_0x25767f('0x5')](function(_0x3d1d46){const _0x27a430=_0x25767f;logger[_0x27a430('0x18')](JSON[_0x27a430('0x7')](_0x3d1d46));});});},Migration[_0x49617b('0x15')][_0x49617b('0xe')]=function(_0x333723,_0x42e880,_0x47f2b8){const _0x475ad6=this;this['sequence']['enqueue'](function(){const _0x23212d=a979_0x1be6;return _0x475ad6[_0x23212d('0x1d')][_0x23212d('0xe')](_0x333723,_0x42e880,{'indexName':_0x47f2b8[_0x23212d('0x3')],'indicesType':_0x47f2b8[_0x23212d('0x2')]})['then'](function(){const _0x2c1617=_0x23212d;logger['info'](_0x2c1617('0x1e'),_0x333723,_0x42e880[_0x2c1617('0xc')](','),_0x47f2b8['indexName'],_0x47f2b8[_0x2c1617('0x2')]);})[_0x23212d('0x5')](function(_0x1ae5e7){const _0x430d67=_0x23212d;logger['info'](JSON[_0x430d67('0x7')](_0x1ae5e7));});});},Migration[_0x49617b('0x15')]['removeIndex']=function(_0x44b902,_0x16caf1){const _0x57f19b=_0x49617b,_0x6e2908=this;this[_0x57f19b('0x13')][_0x57f19b('0x1')](function(){const _0x13b05b=_0x57f19b;return _0x6e2908['queryInterface'][_0x13b05b('0x4')](_0x44b902,_0x16caf1)[_0x13b05b('0x9')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x44b902,_0x16caf1);})[_0x13b05b('0x5')](function(_0x56e554){logger['info'](JSON['stringify'](_0x56e554));});});},Migration['prototype'][_0x49617b('0x10')]=function(_0x206c69){const _0xdf9107=_0x49617b,_0x406c92=this;this['sequence'][_0xdf9107('0x1')](function(){const _0x506076=_0xdf9107;return _0x406c92[_0x506076('0x1d')][_0x506076('0x8')]['query'](_0x206c69)['then'](function(){logger['info']('query\x20%s',_0x206c69);})[_0x506076('0x5')](function(_0x3fcb5c){const _0xceca3d=_0x506076;logger[_0xceca3d('0x18')](JSON[_0xceca3d('0x7')](_0x3fcb5c));});});},Migration[_0x49617b('0x15')][_0x49617b('0x1a')]=function(_0x210352,_0x420f24){const _0x6f374a=_0x49617b,_0x7086d=this;this[_0x6f374a('0x13')]['enqueue'](function(){const _0x221f3d=_0x6f374a;return _0x7086d['queryInterface'][_0x221f3d('0x1a')](_0x210352,_0x420f24)[_0x221f3d('0x9')](function(){const _0x348437=_0x221f3d;logger[_0x348437('0x18')](_0x348437('0x14'),_0x420f24,_0x210352);})['catch'](function(_0x1a3d48){const _0x1efe13=_0x221f3d;logger[_0x1efe13('0x18')](util[_0x1efe13('0x1b')](_0x1a3d48,{'showHidden':![],'depth':null}));});});},Migration[_0x49617b('0x15')][_0x49617b('0x19')]=function(_0x3546c5,_0x27ccd2,_0x44d95b){const _0x45ec42=_0x49617b,_0x52d7bc=this;this[_0x45ec42('0x13')][_0x45ec42('0x1')](function(){const _0x25ff34=_0x45ec42;return _0x52d7bc[_0x25ff34('0x1d')][_0x25ff34('0x19')](_0x3546c5,_0x27ccd2,_0x44d95b)[_0x25ff34('0x9')](function(){const _0x7d36df=_0x25ff34;logger[_0x7d36df('0x18')](_0x7d36df('0x12'),_0x27ccd2,_0x44d95b,_0x3546c5);})['catch'](function(_0x32f27e){const _0x575c8a=_0x25ff34;logger[_0x575c8a('0x18')](util[_0x575c8a('0x1b')](_0x32f27e,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x49617b('0x6')]=function(_0x2909ca){const _0x527986=_0x49617b;this[_0x527986('0x13')][_0x527986('0x1')](function(){return _0x2909ca();});},module['exports']={'up':function(_0x1af696){return new Promise(function(_0x490ae4){const _0x108586=a979_0x1be6,_0x3a6f9c=new Migration(_0x1af696);_0x3a6f9c[_0x108586('0x6')](_0x490ae4);});},'down':function(){}};
\ No newline at end of file
+const a979_0x3f67=['then','util','../config/logger','tail','join','sequelize','Removed\x20column\x20%s\x20from\x20%s','enqueue','catch','indexName','renameColumn','addIndex','query','final','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex','changeColumn','Added\x20column\x20%s\x20to\x20%s','removeColumn','dropTable','indicesType','info','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn','queryInterface','table\x20dropped\x20%s','prototype','exports','addIndex\x20%s\x20%s\x20%s\x20[%s]','finally','sequence','stringify','inspect'];(function(_0x46d2c0,_0x3f6731){const _0x551cc3=function(_0x29c510){while(--_0x29c510){_0x46d2c0['push'](_0x46d2c0['shift']());}};_0x551cc3(++_0x3f6731);}(a979_0x3f67,0x17e));const a979_0x551c=function(_0x46d2c0,_0x3f6731){_0x46d2c0=_0x46d2c0-0x0;let _0x551cc3=a979_0x3f67[_0x46d2c0];return _0x551cc3;};const _0xbee40a=a979_0x551c;'use strict';const util=require(_0xbee40a('0xf')),logger=require(_0xbee40a('0x10'))('migration'),Sequence=function(){};Sequence[_0xbee40a('0x7')][_0xbee40a('0x15')]=function(_0x29c510){const _0x20cadf=_0xbee40a;this[_0x20cadf('0x11')]=this[_0x20cadf('0x11')]?this[_0x20cadf('0x11')][_0x20cadf('0xa')](_0x29c510):_0x29c510();};const Migration=function(_0x1ae299){const _0x49e91f=_0xbee40a;this[_0x49e91f('0x5')]=_0x1ae299,this[_0x49e91f('0xb')]=new Sequence();};Migration[_0xbee40a('0x7')][_0xbee40a('0x1e')]=function(_0x1dafd4,_0x3ab995,_0x4d7963){const _0xb56a62=_0xbee40a,_0x43dc6e=this;this[_0xb56a62('0xb')]['enqueue'](function(){const _0x39aabd=_0xb56a62;return _0x43dc6e[_0x39aabd('0x5')][_0x39aabd('0x1e')](_0x1dafd4,_0x3ab995,_0x4d7963)[_0x39aabd('0xe')](function(){const _0x5e0362=_0x39aabd;logger[_0x5e0362('0x2')](_0x5e0362('0x1c'),_0x3ab995,_0x1dafd4);})[_0x39aabd('0x16')](function(_0x20785e){const _0x5ca48f=_0x39aabd;logger[_0x5ca48f('0x2')](JSON[_0x5ca48f('0xc')](_0x20785e));});});},Migration[_0xbee40a('0x7')]['addColumn']=function(_0x2b77d5,_0xd99340,_0xc5c957){const _0x3b2b10=_0xbee40a,_0x42e6eb=this;this[_0x3b2b10('0xb')][_0x3b2b10('0x15')](function(){const _0x30f747=_0x3b2b10;return _0x42e6eb[_0x30f747('0x5')][_0x30f747('0x4')](_0x2b77d5,_0xd99340,_0xc5c957)['then'](function(){const _0x24ee0d=_0x30f747;logger[_0x24ee0d('0x2')](_0x24ee0d('0x1f'),_0xd99340,_0x2b77d5);})[_0x30f747('0x16')](function(_0x2d3201){const _0x1c55e7=_0x30f747;logger[_0x1c55e7('0x2')](JSON['stringify'](_0x2d3201));});});},Migration['prototype']['dropTable']=function(_0x2ecb0c){const _0x10a844=_0xbee40a,_0x4891d1=this;this[_0x10a844('0xb')][_0x10a844('0x15')](function(){const _0x212b33=_0x10a844;return _0x4891d1[_0x212b33('0x5')][_0x212b33('0x0')](_0x2ecb0c,{'force':!![]})['then'](function(){const _0x17a9d6=_0x212b33;logger[_0x17a9d6('0x2')](_0x17a9d6('0x6'),_0x2ecb0c);})[_0x212b33('0x16')](function(_0x598ba1){const _0x2906b3=_0x212b33;logger[_0x2906b3('0x2')](JSON[_0x2906b3('0xc')](_0x598ba1));});});},Migration['prototype'][_0xbee40a('0x19')]=function(_0x4f30be,_0x3eb53d,_0xe909bf){const _0x299fec=_0xbee40a,_0x317f3b=this;this[_0x299fec('0xb')][_0x299fec('0x15')](function(){const _0xee2fed=_0x299fec;return _0x317f3b['queryInterface']['addIndex'](_0x4f30be,_0x3eb53d,{'indexName':_0xe909bf['indexName'],'indicesType':_0xe909bf[_0xee2fed('0x1')]})[_0xee2fed('0xe')](function(){const _0x2d32a7=_0xee2fed;logger[_0x2d32a7('0x2')](_0x2d32a7('0x9'),_0x4f30be,_0x3eb53d[_0x2d32a7('0x12')](','),_0xe909bf[_0x2d32a7('0x17')],_0xe909bf[_0x2d32a7('0x1')]);})[_0xee2fed('0x16')](function(_0x503cbf){const _0x270366=_0xee2fed;logger['info'](JSON[_0x270366('0xc')](_0x503cbf));});});},Migration[_0xbee40a('0x7')][_0xbee40a('0x1d')]=function(_0x50b631,_0x32da05){const _0x345432=_0xbee40a,_0x2d4e83=this;this['sequence'][_0x345432('0x15')](function(){const _0x366078=_0x345432;return _0x2d4e83[_0x366078('0x5')]['removeIndex'](_0x50b631,_0x32da05)[_0x366078('0xe')](function(){const _0x38cf26=_0x366078;logger[_0x38cf26('0x2')]('removeIndex\x20%s\x20%s',_0x50b631,_0x32da05);})[_0x366078('0x16')](function(_0x5569c0){const _0x52e667=_0x366078;logger[_0x52e667('0x2')](JSON[_0x52e667('0xc')](_0x5569c0));});});},Migration[_0xbee40a('0x7')][_0xbee40a('0x1a')]=function(_0x3da162){const _0xa4b025=_0xbee40a,_0x32bf45=this;this['sequence'][_0xa4b025('0x15')](function(){const _0x389061=_0xa4b025;return _0x32bf45[_0x389061('0x5')][_0x389061('0x13')][_0x389061('0x1a')](_0x3da162)[_0x389061('0xe')](function(){logger['info']('query\x20%s',_0x3da162);})['catch'](function(_0x284385){const _0x574a9c=_0x389061;logger[_0x574a9c('0x2')](JSON[_0x574a9c('0xc')](_0x284385));});});},Migration['prototype'][_0xbee40a('0x20')]=function(_0x265fd3,_0x448110){const _0x5074a7=this;this['sequence']['enqueue'](function(){const _0x5148cb=a979_0x551c;return _0x5074a7[_0x5148cb('0x5')][_0x5148cb('0x20')](_0x265fd3,_0x448110)[_0x5148cb('0xe')](function(){const _0x39d23c=_0x5148cb;logger['info'](_0x39d23c('0x14'),_0x448110,_0x265fd3);})[_0x5148cb('0x16')](function(_0x3dd87c){const _0x4dbd56=_0x5148cb;logger[_0x4dbd56('0x2')](util[_0x4dbd56('0xd')](_0x3dd87c,{'showHidden':![],'depth':null}));});});},Migration[_0xbee40a('0x7')][_0xbee40a('0x18')]=function(_0x57b120,_0x4e721e,_0x1c372d){const _0x58351d=_0xbee40a,_0x3285b1=this;this[_0x58351d('0xb')][_0x58351d('0x15')](function(){const _0x306650=_0x58351d;return _0x3285b1['queryInterface'][_0x306650('0x18')](_0x57b120,_0x4e721e,_0x1c372d)[_0x306650('0xe')](function(){const _0x2ba310=_0x306650;logger[_0x2ba310('0x2')](_0x2ba310('0x3'),_0x4e721e,_0x1c372d,_0x57b120);})[_0x306650('0x16')](function(_0x380576){const _0xeb0749=_0x306650;logger[_0xeb0749('0x2')](util['inspect'](_0x380576,{'showHidden':![],'depth':null}));});});},Migration[_0xbee40a('0x7')][_0xbee40a('0x1b')]=function(_0x5ec6df){const _0x10c812=_0xbee40a;this[_0x10c812('0xb')][_0x10c812('0x15')](function(){return _0x5ec6df();});},module[_0xbee40a('0x8')]={'up':function(_0x2edfc6){return new Promise(function(_0x348190){const _0x4965e7=a979_0x551c,_0x34c5aa=new Migration(_0x2edfc6);_0x34c5aa[_0x4965e7('0x1b')](_0x348190);});},'down':function(){}};
\ No newline at end of file