Built motion from commit 973e3e332e1c8e2f84c4b0cd2e5af794131724f5. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.79.js
index b8c586f..6c82b56 100644 (file)
@@ -1 +1 @@
-const a958_0x1e90=['Removed\x20column\x20%s\x20from\x20%s','addIndex','tail','renameColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','sequence','removeIndex\x20%s\x20%s','addColumn','UPDATE\x20dashboard_items\x20SET\x20attrs\x20=\x20REPLACE(attrs,\x27[{\x22name\x22:\x22attrReport\x22\x27,\x27[{\x22name\x22:\x22attrReport\x22,\x22type\x22:\x22custom\x22\x27)\x20WHERE\x20type\x20=\x20\x27web-report\x27\x20AND\x20attrs\x20NOT\x20LIKE\x20\x27%type%\x27','dropTable','query','addIndex\x20%s\x20%s\x20%s','query\x20%s','exports','final','catch','sequelize','then','util','../config/logger','changeColumn','Added\x20column\x20%s\x20to\x20%s','inspect','table\x20dropped\x20%s','info','removeIndex','enqueue','removeColumn','stringify','prototype'];(function(_0x222d50,_0x1e9084){const _0x27877f=function(_0x38b183){while(--_0x38b183){_0x222d50['push'](_0x222d50['shift']());}};_0x27877f(++_0x1e9084);}(a958_0x1e90,0x11a));const a958_0x2787=function(_0x222d50,_0x1e9084){_0x222d50=_0x222d50-0x0;let _0x27877f=a958_0x1e90[_0x222d50];return _0x27877f;};const _0x6bb307=a958_0x2787;'use strict';const util=require(_0x6bb307('0x10')),logger=require(_0x6bb307('0x11'))('migration'),Sequence=function(){};Sequence[_0x6bb307('0x1b')][_0x6bb307('0x18')]=function(_0x38b183){const _0x2c6416=_0x6bb307;this['tail']=this[_0x2c6416('0x1e')]?this[_0x2c6416('0x1e')]['finally'](_0x38b183):_0x38b183();};const Migration=function(_0x30c4de){const _0x43d852=_0x6bb307;this[_0x43d852('0x2')]=_0x30c4de,this[_0x43d852('0x3')]=new Sequence();};Migration[_0x6bb307('0x1b')][_0x6bb307('0x12')]=function(_0xda0dc6,_0xd75f05,_0x34dbe){const _0x450b24=_0x6bb307,_0x339667=this;this[_0x450b24('0x3')][_0x450b24('0x18')](function(){const _0x1c4664=_0x450b24;return _0x339667['queryInterface'][_0x1c4664('0x12')](_0xda0dc6,_0xd75f05,_0x34dbe)[_0x1c4664('0xf')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xd75f05,_0xda0dc6);})[_0x1c4664('0xd')](function(_0x56c618){const _0x2123a5=_0x1c4664;logger[_0x2123a5('0x16')](JSON[_0x2123a5('0x1a')](_0x56c618));});});},Migration[_0x6bb307('0x1b')][_0x6bb307('0x5')]=function(_0x3734e6,_0x3f2ab2,_0x46ca98){const _0x559075=_0x6bb307,_0x183d63=this;this[_0x559075('0x3')][_0x559075('0x18')](function(){const _0x1207fc=_0x559075;return _0x183d63[_0x1207fc('0x2')][_0x1207fc('0x5')](_0x3734e6,_0x3f2ab2,_0x46ca98)[_0x1207fc('0xf')](function(){const _0x27cc10=_0x1207fc;logger['info'](_0x27cc10('0x13'),_0x3f2ab2,_0x3734e6);})[_0x1207fc('0xd')](function(_0x7e5ead){const _0x360430=_0x1207fc;logger[_0x360430('0x16')](JSON['stringify'](_0x7e5ead));});});},Migration[_0x6bb307('0x1b')][_0x6bb307('0x7')]=function(_0x185e6f){const _0x59f74e=_0x6bb307,_0x14943c=this;this['sequence'][_0x59f74e('0x18')](function(){const _0x54f6f1=_0x59f74e;return _0x14943c['queryInterface'][_0x54f6f1('0x7')](_0x185e6f,{'force':!![]})[_0x54f6f1('0xf')](function(){const _0x4a18a3=_0x54f6f1;logger[_0x4a18a3('0x16')](_0x4a18a3('0x15'),_0x185e6f);})[_0x54f6f1('0xd')](function(_0x2f3336){logger['info'](JSON['stringify'](_0x2f3336));});});},Migration[_0x6bb307('0x1b')]['addIndex']=function(_0x168d76,_0x4b239d,_0x167fa5){const _0x4103fd=_0x6bb307,_0x59070e=this;this[_0x4103fd('0x3')][_0x4103fd('0x18')](function(){const _0x43232d=_0x4103fd;return _0x59070e['queryInterface'][_0x43232d('0x1d')](_0x168d76,_0x4b239d,{'indexName':_0x167fa5})[_0x43232d('0xf')](function(){const _0x2e0995=_0x43232d;logger['info'](_0x2e0995('0x9'),_0x168d76,_0x4b239d['join'](','),_0x167fa5);})[_0x43232d('0xd')](function(_0x2e9631){const _0x11cd72=_0x43232d;logger[_0x11cd72('0x16')](JSON[_0x11cd72('0x1a')](_0x2e9631));});});},Migration[_0x6bb307('0x1b')]['removeIndex']=function(_0x492ba1,_0x129c2b){const _0x49bb94=_0x6bb307,_0x1ed164=this;this[_0x49bb94('0x3')]['enqueue'](function(){const _0x29418b=_0x49bb94;return _0x1ed164[_0x29418b('0x2')][_0x29418b('0x17')](_0x492ba1,_0x129c2b)[_0x29418b('0xf')](function(){const _0x44ad9f=_0x29418b;logger[_0x44ad9f('0x16')](_0x44ad9f('0x4'),_0x492ba1,_0x129c2b);})[_0x29418b('0xd')](function(_0x1c3a98){const _0x32fc5a=_0x29418b;logger[_0x32fc5a('0x16')](JSON[_0x32fc5a('0x1a')](_0x1c3a98));});});},Migration[_0x6bb307('0x1b')][_0x6bb307('0x8')]=function(_0x4a4c27){const _0x25fa8f=_0x6bb307,_0x3e1e27=this;this[_0x25fa8f('0x3')][_0x25fa8f('0x18')](function(){const _0x5c645c=_0x25fa8f;return _0x3e1e27[_0x5c645c('0x2')][_0x5c645c('0xe')][_0x5c645c('0x8')](_0x4a4c27)[_0x5c645c('0xf')](function(){const _0x40e65d=_0x5c645c;logger[_0x40e65d('0x16')](_0x40e65d('0xa'),_0x4a4c27);})['catch'](function(_0x1b2519){const _0x3b421a=_0x5c645c;logger[_0x3b421a('0x16')](JSON[_0x3b421a('0x1a')](_0x1b2519));});});},Migration[_0x6bb307('0x1b')][_0x6bb307('0x19')]=function(_0x2230c4,_0x2bfaf9){const _0x1f1dfe=_0x6bb307,_0x2b4252=this;this[_0x1f1dfe('0x3')][_0x1f1dfe('0x18')](function(){const _0x1bffe3=_0x1f1dfe;return _0x2b4252[_0x1bffe3('0x2')]['removeColumn'](_0x2230c4,_0x2bfaf9)[_0x1bffe3('0xf')](function(){const _0xdae2c6=_0x1bffe3;logger[_0xdae2c6('0x16')](_0xdae2c6('0x1c'),_0x2bfaf9,_0x2230c4);})['catch'](function(_0x5cfe3e){const _0x23b212=_0x1bffe3;logger[_0x23b212('0x16')](util['inspect'](_0x5cfe3e,{'showHidden':![],'depth':null}));});});},Migration[_0x6bb307('0x1b')][_0x6bb307('0x0')]=function(_0x27e996,_0x2628b8,_0x3c0202){const _0xc147f5=_0x6bb307,_0xd61360=this;this['sequence'][_0xc147f5('0x18')](function(){const _0x4bf30c=_0xc147f5;return _0xd61360[_0x4bf30c('0x2')][_0x4bf30c('0x0')](_0x27e996,_0x2628b8,_0x3c0202)[_0x4bf30c('0xf')](function(){const _0x24c469=_0x4bf30c;logger[_0x24c469('0x16')](_0x24c469('0x1'),_0x2628b8,_0x3c0202,_0x27e996);})[_0x4bf30c('0xd')](function(_0x353350){const _0xd2ee2f=_0x4bf30c;logger['info'](util[_0xd2ee2f('0x14')](_0x353350,{'showHidden':![],'depth':null}));});});},Migration[_0x6bb307('0x1b')][_0x6bb307('0xc')]=function(_0x1a9d68){const _0x534004=_0x6bb307;this[_0x534004('0x3')][_0x534004('0x18')](function(){return _0x1a9d68();});},module[_0x6bb307('0xb')]={'up':function(_0x1ecb4a){return new Promise(function(_0x25ea39){const _0x5c0e3e=a958_0x2787,_0x2d4e=new Migration(_0x1ecb4a);_0x2d4e[_0x5c0e3e('0x8')](_0x5c0e3e('0x6')),_0x2d4e[_0x5c0e3e('0xc')](_0x25ea39);});},'down':function(){}};
\ No newline at end of file
+const a958_0x299b=['prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','dropTable','Removed\x20column\x20%s\x20from\x20%s','sequence','tail','table\x20dropped\x20%s','finally','removeIndex','stringify','enqueue','migration','changeColumn','removeColumn','then','final','queryInterface','../config/logger','query','join','query\x20%s','info','removeIndex\x20%s\x20%s','renameColumn','catch','util','addIndex','addColumn'];(function(_0x359900,_0x299bf2){const _0x44c029=function(_0x178e5b){while(--_0x178e5b){_0x359900['push'](_0x359900['shift']());}};_0x44c029(++_0x299bf2);}(a958_0x299b,0x173));const a958_0x44c0=function(_0x359900,_0x299bf2){_0x359900=_0x359900-0x0;let _0x44c029=a958_0x299b[_0x359900];return _0x44c029;};const _0x2771a7=a958_0x44c0;'use strict';const util=require(_0x2771a7('0x3')),logger=require(_0x2771a7('0x18'))(_0x2771a7('0x12')),Sequence=function(){};Sequence[_0x2771a7('0x6')]['enqueue']=function(_0x178e5b){const _0x41ff47=_0x2771a7;this[_0x41ff47('0xc')]=this['tail']?this[_0x41ff47('0xc')][_0x41ff47('0xe')](_0x178e5b):_0x178e5b();};const Migration=function(_0xa2836c){const _0x45a1b3=_0x2771a7;this[_0x45a1b3('0x17')]=_0xa2836c,this[_0x45a1b3('0xb')]=new Sequence();};Migration['prototype'][_0x2771a7('0x13')]=function(_0x2d7232,_0x34c877,_0x3a7243){const _0xf1d29a=_0x2771a7,_0x3bc850=this;this[_0xf1d29a('0xb')]['enqueue'](function(){const _0x46058e=_0xf1d29a;return _0x3bc850[_0x46058e('0x17')][_0x46058e('0x13')](_0x2d7232,_0x34c877,_0x3a7243)['then'](function(){const _0x59c4be=_0x46058e;logger[_0x59c4be('0x1c')](_0x59c4be('0x7'),_0x34c877,_0x2d7232);})[_0x46058e('0x2')](function(_0x131282){const _0x4647d8=_0x46058e;logger[_0x4647d8('0x1c')](JSON[_0x4647d8('0x10')](_0x131282));});});},Migration[_0x2771a7('0x6')][_0x2771a7('0x5')]=function(_0x363706,_0x3284ce,_0x394061){const _0x3c0a04=_0x2771a7,_0x59cef2=this;this[_0x3c0a04('0xb')]['enqueue'](function(){const _0x8f8412=_0x3c0a04;return _0x59cef2[_0x8f8412('0x17')][_0x8f8412('0x5')](_0x363706,_0x3284ce,_0x394061)[_0x8f8412('0x15')](function(){const _0x3a4cf1=_0x8f8412;logger[_0x3a4cf1('0x1c')]('Added\x20column\x20%s\x20to\x20%s',_0x3284ce,_0x363706);})[_0x8f8412('0x2')](function(_0x5123f9){const _0x194e22=_0x8f8412;logger[_0x194e22('0x1c')](JSON[_0x194e22('0x10')](_0x5123f9));});});},Migration['prototype'][_0x2771a7('0x9')]=function(_0x4b0b50){const _0x28d375=_0x2771a7,_0x23ab11=this;this['sequence'][_0x28d375('0x11')](function(){const _0x15e39e=_0x28d375;return _0x23ab11['queryInterface'][_0x15e39e('0x9')](_0x4b0b50,{'force':!![]})[_0x15e39e('0x15')](function(){const _0x5abc9c=_0x15e39e;logger['info'](_0x5abc9c('0xd'),_0x4b0b50);})[_0x15e39e('0x2')](function(_0x1889e9){const _0x59e316=_0x15e39e;logger[_0x59e316('0x1c')](JSON[_0x59e316('0x10')](_0x1889e9));});});},Migration[_0x2771a7('0x6')]['addIndex']=function(_0x180ec0,_0x389ae7,_0x3f2d89){const _0x458951=_0x2771a7,_0x4209f6=this;this[_0x458951('0xb')]['enqueue'](function(){const _0x543574=_0x458951;return _0x4209f6[_0x543574('0x17')][_0x543574('0x4')](_0x180ec0,_0x389ae7,{'indexName':_0x3f2d89})['then'](function(){const _0x3e999d=_0x543574;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x180ec0,_0x389ae7[_0x3e999d('0x1a')](','),_0x3f2d89);})[_0x543574('0x2')](function(_0x16930a){const _0x52d14f=_0x543574;logger[_0x52d14f('0x1c')](JSON[_0x52d14f('0x10')](_0x16930a));});});},Migration[_0x2771a7('0x6')]['removeIndex']=function(_0x12dd3e,_0x489402){const _0x339a57=_0x2771a7,_0x366e1a=this;this['sequence'][_0x339a57('0x11')](function(){const _0x369056=_0x339a57;return _0x366e1a[_0x369056('0x17')][_0x369056('0xf')](_0x12dd3e,_0x489402)[_0x369056('0x15')](function(){const _0x37d9f8=_0x369056;logger['info'](_0x37d9f8('0x0'),_0x12dd3e,_0x489402);})[_0x369056('0x2')](function(_0x40a553){logger['info'](JSON['stringify'](_0x40a553));});});},Migration[_0x2771a7('0x6')]['query']=function(_0x31fed5){const _0x16826a=_0x2771a7,_0x24383d=this;this[_0x16826a('0xb')][_0x16826a('0x11')](function(){const _0x276fcf=_0x16826a;return _0x24383d[_0x276fcf('0x17')]['sequelize'][_0x276fcf('0x19')](_0x31fed5)[_0x276fcf('0x15')](function(){const _0x35191f=_0x276fcf;logger[_0x35191f('0x1c')](_0x35191f('0x1b'),_0x31fed5);})[_0x276fcf('0x2')](function(_0x33eb62){const _0x28cbfe=_0x276fcf;logger[_0x28cbfe('0x1c')](JSON[_0x28cbfe('0x10')](_0x33eb62));});});},Migration['prototype'][_0x2771a7('0x14')]=function(_0x51d605,_0x13b875){const _0xb14a8f=_0x2771a7,_0x49aed7=this;this['sequence'][_0xb14a8f('0x11')](function(){const _0x2f950d=_0xb14a8f;return _0x49aed7[_0x2f950d('0x17')]['removeColumn'](_0x51d605,_0x13b875)[_0x2f950d('0x15')](function(){const _0x165c17=_0x2f950d;logger['info'](_0x165c17('0xa'),_0x13b875,_0x51d605);})[_0x2f950d('0x2')](function(_0x50e86e){const _0x4580a5=_0x2f950d;logger[_0x4580a5('0x1c')](util[_0x4580a5('0x8')](_0x50e86e,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x2771a7('0x1')]=function(_0x5e78ac,_0x426587,_0x2836b4){const _0x345c06=_0x2771a7,_0x3f77ae=this;this[_0x345c06('0xb')]['enqueue'](function(){const _0x505e72=_0x345c06;return _0x3f77ae[_0x505e72('0x17')][_0x505e72('0x1')](_0x5e78ac,_0x426587,_0x2836b4)['then'](function(){const _0x5f43e6=_0x505e72;logger[_0x5f43e6('0x1c')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x426587,_0x2836b4,_0x5e78ac);})[_0x505e72('0x2')](function(_0xb5c445){const _0x33c0d0=_0x505e72;logger[_0x33c0d0('0x1c')](util[_0x33c0d0('0x8')](_0xb5c445,{'showHidden':![],'depth':null}));});});},Migration[_0x2771a7('0x6')]['final']=function(_0x35e9f6){const _0x97aad4=_0x2771a7;this[_0x97aad4('0xb')]['enqueue'](function(){return _0x35e9f6();});},module['exports']={'up':function(_0x3a67ab){return new Promise(function(_0x84e51e){const _0x1b054c=a958_0x44c0,_0x3edb36=new Migration(_0x3a67ab);_0x3edb36[_0x1b054c('0x19')]('UPDATE\x20dashboard_items\x20SET\x20attrs\x20=\x20REPLACE(attrs,\x27[{\x22name\x22:\x22attrReport\x22\x27,\x27[{\x22name\x22:\x22attrReport\x22,\x22type\x22:\x22custom\x22\x27)\x20WHERE\x20type\x20=\x20\x27web-report\x27\x20AND\x20attrs\x20NOT\x20LIKE\x20\x27%type%\x27'),_0x3edb36[_0x1b054c('0x16')](_0x84e51e);});},'down':function(){}};
\ No newline at end of file