Built motion from commit ded33658aad58fc8de845a8299a9db59a88cc353. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.8.js
index 22c2671..c93141b 100644 (file)
@@ -1 +1 @@
-const a1011_0x22c8=['addColumn','util','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','addIndex','final','indicesType','stringify','then','sequence','tail','prototype','dropTable','renameColumn','query','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','inspect','info','changeColumn','sequelize','migration','Added\x20column\x20%s\x20to\x20%s','catch','enqueue','Removed\x20column\x20%s\x20from\x20%s','finally','table\x20dropped\x20%s','queryInterface','indexName','removeIndex'];(function(_0xf28a5a,_0x22c89e){const _0x569322=function(_0x4d66b4){while(--_0x4d66b4){_0xf28a5a['push'](_0xf28a5a['shift']());}};_0x569322(++_0x22c89e);}(a1011_0x22c8,0xed));const a1011_0x5693=function(_0xf28a5a,_0x22c89e){_0xf28a5a=_0xf28a5a-0x0;let _0x569322=a1011_0x22c8[_0xf28a5a];return _0x569322;};const _0x3e1d86=a1011_0x5693;'use strict';const util=require(_0x3e1d86('0x14')),logger=require('../config/logger')(_0x3e1d86('0x9')),Sequence=function(){};Sequence[_0x3e1d86('0x1e')][_0x3e1d86('0xc')]=function(_0x4d66b4){const _0x55b57e=_0x3e1d86;this['tail']=this[_0x55b57e('0x1d')]?this[_0x55b57e('0x1d')][_0x55b57e('0xe')](_0x4d66b4):_0x4d66b4();};const Migration=function(_0x2d4a2c){const _0x340732=_0x3e1d86;this['queryInterface']=_0x2d4a2c,this[_0x340732('0x1c')]=new Sequence();};Migration[_0x3e1d86('0x1e')]['changeColumn']=function(_0x11c41e,_0x3579a4,_0x4bfd60){const _0x51696c=_0x3e1d86,_0x546346=this;this[_0x51696c('0x1c')][_0x51696c('0xc')](function(){const _0x357d50=_0x51696c;return _0x546346[_0x357d50('0x10')][_0x357d50('0x7')](_0x11c41e,_0x3579a4,_0x4bfd60)[_0x357d50('0x1b')](function(){const _0x3efa81=_0x357d50;logger[_0x3efa81('0x6')](_0x3efa81('0x15'),_0x3579a4,_0x11c41e);})[_0x357d50('0xb')](function(_0x5b80a7){const _0x306c58=_0x357d50;logger[_0x306c58('0x6')](JSON[_0x306c58('0x1a')](_0x5b80a7));});});},Migration[_0x3e1d86('0x1e')]['addColumn']=function(_0x466468,_0x25db68,_0x19a8c4){const _0xcb2348=_0x3e1d86,_0x15d539=this;this[_0xcb2348('0x1c')][_0xcb2348('0xc')](function(){const _0x9b3e27=_0xcb2348;return _0x15d539['queryInterface'][_0x9b3e27('0x13')](_0x466468,_0x25db68,_0x19a8c4)[_0x9b3e27('0x1b')](function(){const _0x20ebe8=_0x9b3e27;logger['info'](_0x20ebe8('0xa'),_0x25db68,_0x466468);})[_0x9b3e27('0xb')](function(_0x1432ec){const _0x4b8a8a=_0x9b3e27;logger[_0x4b8a8a('0x6')](JSON[_0x4b8a8a('0x1a')](_0x1432ec));});});},Migration['prototype'][_0x3e1d86('0x1f')]=function(_0x584aad){const _0x45c02a=_0x3e1d86,_0x1d1ec3=this;this[_0x45c02a('0x1c')]['enqueue'](function(){const _0x31be0c=_0x45c02a;return _0x1d1ec3[_0x31be0c('0x10')][_0x31be0c('0x1f')](_0x584aad,{'force':!![]})['then'](function(){const _0x3b97dd=_0x31be0c;logger[_0x3b97dd('0x6')](_0x3b97dd('0xf'),_0x584aad);})[_0x31be0c('0xb')](function(_0xe74fe0){const _0x43e5a4=_0x31be0c;logger[_0x43e5a4('0x6')](JSON[_0x43e5a4('0x1a')](_0xe74fe0));});});},Migration[_0x3e1d86('0x1e')]['addIndex']=function(_0x274803,_0x5135bd,_0x4e08a9){const _0x1c87a9=_0x3e1d86,_0x3c879f=this;this['sequence'][_0x1c87a9('0xc')](function(){const _0x431525=_0x1c87a9;return _0x3c879f[_0x431525('0x10')][_0x431525('0x17')](_0x274803,_0x5135bd,{'indexName':_0x4e08a9[_0x431525('0x11')],'indicesType':_0x4e08a9[_0x431525('0x19')]})[_0x431525('0x1b')](function(){const _0x586ace=_0x431525;logger['info'](_0x586ace('0x16'),_0x274803,_0x5135bd[_0x586ace('0x4')](','),_0x4e08a9[_0x586ace('0x11')],_0x4e08a9[_0x586ace('0x19')]);})[_0x431525('0xb')](function(_0x434d28){const _0x1d794f=_0x431525;logger[_0x1d794f('0x6')](JSON[_0x1d794f('0x1a')](_0x434d28));});});},Migration[_0x3e1d86('0x1e')][_0x3e1d86('0x12')]=function(_0x162f12,_0x16e081){const _0xe43bfe=_0x3e1d86,_0x5ef89c=this;this[_0xe43bfe('0x1c')][_0xe43bfe('0xc')](function(){const _0x545c6f=_0xe43bfe;return _0x5ef89c['queryInterface'][_0x545c6f('0x12')](_0x162f12,_0x16e081)[_0x545c6f('0x1b')](function(){const _0x1d61c0=_0x545c6f;logger[_0x1d61c0('0x6')]('removeIndex\x20%s\x20%s',_0x162f12,_0x16e081);})[_0x545c6f('0xb')](function(_0x5e8ab7){const _0x237c3b=_0x545c6f;logger[_0x237c3b('0x6')](JSON['stringify'](_0x5e8ab7));});});},Migration['prototype'][_0x3e1d86('0x1')]=function(_0x523cbc){const _0x5e2df1=_0x3e1d86,_0x24a6b1=this;this[_0x5e2df1('0x1c')][_0x5e2df1('0xc')](function(){const _0x47bdb3=_0x5e2df1;return _0x24a6b1[_0x47bdb3('0x10')][_0x47bdb3('0x8')][_0x47bdb3('0x1')](_0x523cbc)[_0x47bdb3('0x1b')](function(){const _0x4297f3=_0x47bdb3;logger[_0x4297f3('0x6')]('query\x20%s',_0x523cbc);})[_0x47bdb3('0xb')](function(_0x43499d){const _0x4ca182=_0x47bdb3;logger[_0x4ca182('0x6')](JSON[_0x4ca182('0x1a')](_0x43499d));});});},Migration[_0x3e1d86('0x1e')][_0x3e1d86('0x2')]=function(_0x208f13,_0x3a8c4c){const _0x2107bf=_0x3e1d86,_0x47c23b=this;this[_0x2107bf('0x1c')]['enqueue'](function(){const _0x2b9217=_0x2107bf;return _0x47c23b[_0x2b9217('0x10')][_0x2b9217('0x2')](_0x208f13,_0x3a8c4c)[_0x2b9217('0x1b')](function(){const _0x2689fb=_0x2b9217;logger['info'](_0x2689fb('0xd'),_0x3a8c4c,_0x208f13);})['catch'](function(_0x5e20a5){const _0x383096=_0x2b9217;logger[_0x383096('0x6')](util['inspect'](_0x5e20a5,{'showHidden':![],'depth':null}));});});},Migration[_0x3e1d86('0x1e')][_0x3e1d86('0x0')]=function(_0x4790a6,_0x47dd8b,_0x281271){const _0x4b6768=_0x3e1d86,_0x57ffab=this;this[_0x4b6768('0x1c')][_0x4b6768('0xc')](function(){const _0x1e702d=_0x4b6768;return _0x57ffab['queryInterface'][_0x1e702d('0x0')](_0x4790a6,_0x47dd8b,_0x281271)[_0x1e702d('0x1b')](function(){const _0x26b43c=_0x1e702d;logger[_0x26b43c('0x6')](_0x26b43c('0x3'),_0x47dd8b,_0x281271,_0x4790a6);})['catch'](function(_0x270aa1){const _0x21ea58=_0x1e702d;logger['info'](util[_0x21ea58('0x5')](_0x270aa1,{'showHidden':![],'depth':null}));});});},Migration[_0x3e1d86('0x1e')][_0x3e1d86('0x18')]=function(_0x3f753d){const _0x2f022e=_0x3e1d86;this[_0x2f022e('0x1c')]['enqueue'](function(){return _0x3f753d();});},module['exports']={'up':function(_0x3bec2f){return new Promise(function(_0x5614c3){const _0x1a1b26=a1011_0x5693,_0x5db935=new Migration(_0x3bec2f);_0x5db935[_0x1a1b26('0x18')](_0x5614c3);});},'down':function(){}};
\ No newline at end of file
+const a1011_0x4b98=['sequence','addIndex','indexName','join','addIndex\x20%s\x20%s\x20%s\x20[%s]','prototype','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s','query\x20%s','stringify','exports','info','tail','changeColumn','renameColumn','catch','removeColumn','sequelize','Removed\x20column\x20%s\x20from\x20%s','queryInterface','util','indicesType','removeIndex','dropTable','finally','then','migration','final','../config/logger','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','addColumn','enqueue'];(function(_0x3f34b4,_0x4b98e0){const _0x2a3ae9=function(_0xf1494e){while(--_0xf1494e){_0x3f34b4['push'](_0x3f34b4['shift']());}};_0x2a3ae9(++_0x4b98e0);}(a1011_0x4b98,0x1c6));const a1011_0x2a3a=function(_0x3f34b4,_0x4b98e0){_0x3f34b4=_0x3f34b4-0x0;let _0x2a3ae9=a1011_0x4b98[_0x3f34b4];return _0x2a3ae9;};const _0x3109bd=a1011_0x2a3a;'use strict';const util=require(_0x3109bd('0x1c')),logger=require(_0x3109bd('0x3'))(_0x3109bd('0x1')),Sequence=function(){};Sequence[_0x3109bd('0xd')][_0x3109bd('0x7')]=function(_0xf1494e){const _0x57ecd7=_0x3109bd;this[_0x57ecd7('0x14')]=this[_0x57ecd7('0x14')]?this[_0x57ecd7('0x14')][_0x57ecd7('0x20')](_0xf1494e):_0xf1494e();};const Migration=function(_0x5d74f9){const _0x472ee0=_0x3109bd;this['queryInterface']=_0x5d74f9,this[_0x472ee0('0x8')]=new Sequence();};Migration[_0x3109bd('0xd')][_0x3109bd('0x15')]=function(_0x376d37,_0x3a732e,_0x3b7ea8){const _0x5bb432=_0x3109bd,_0x3ba905=this;this[_0x5bb432('0x8')][_0x5bb432('0x7')](function(){const _0x31b0a5=_0x5bb432;return _0x3ba905[_0x31b0a5('0x1b')][_0x31b0a5('0x15')](_0x376d37,_0x3a732e,_0x3b7ea8)['then'](function(){const _0x4ca808=_0x31b0a5;logger[_0x4ca808('0x13')](_0x4ca808('0xf'),_0x3a732e,_0x376d37);})[_0x31b0a5('0x17')](function(_0x466694){const _0x33e4e9=_0x31b0a5;logger[_0x33e4e9('0x13')](JSON['stringify'](_0x466694));});});},Migration[_0x3109bd('0xd')][_0x3109bd('0x6')]=function(_0x1a2c3c,_0x5a5fcd,_0x3c9895){const _0x5d2434=_0x3109bd,_0x1ed088=this;this['sequence'][_0x5d2434('0x7')](function(){const _0x315572=_0x5d2434;return _0x1ed088[_0x315572('0x1b')][_0x315572('0x6')](_0x1a2c3c,_0x5a5fcd,_0x3c9895)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x5a5fcd,_0x1a2c3c);})['catch'](function(_0xeae4b5){const _0x1aeecd=_0x315572;logger[_0x1aeecd('0x13')](JSON[_0x1aeecd('0x11')](_0xeae4b5));});});},Migration[_0x3109bd('0xd')][_0x3109bd('0x1f')]=function(_0x448888){const _0x4c6c9f=_0x3109bd,_0x24678b=this;this[_0x4c6c9f('0x8')][_0x4c6c9f('0x7')](function(){const _0x548d2d=_0x4c6c9f;return _0x24678b[_0x548d2d('0x1b')][_0x548d2d('0x1f')](_0x448888,{'force':!![]})[_0x548d2d('0x0')](function(){const _0x3b4cde=_0x548d2d;logger[_0x3b4cde('0x13')]('table\x20dropped\x20%s',_0x448888);})[_0x548d2d('0x17')](function(_0x206544){const _0x605ed4=_0x548d2d;logger[_0x605ed4('0x13')](JSON[_0x605ed4('0x11')](_0x206544));});});},Migration['prototype'][_0x3109bd('0x9')]=function(_0x198501,_0x5c35fe,_0xb229e9){const _0x7bd4e=_0x3109bd,_0x43b44d=this;this[_0x7bd4e('0x8')][_0x7bd4e('0x7')](function(){const _0x152784=_0x7bd4e;return _0x43b44d[_0x152784('0x1b')][_0x152784('0x9')](_0x198501,_0x5c35fe,{'indexName':_0xb229e9['indexName'],'indicesType':_0xb229e9[_0x152784('0x1d')]})[_0x152784('0x0')](function(){const _0x430179=_0x152784;logger[_0x430179('0x13')](_0x430179('0xc'),_0x198501,_0x5c35fe[_0x430179('0xb')](','),_0xb229e9[_0x430179('0xa')],_0xb229e9[_0x430179('0x1d')]);})[_0x152784('0x17')](function(_0x49a885){const _0x135f58=_0x152784;logger[_0x135f58('0x13')](JSON[_0x135f58('0x11')](_0x49a885));});});},Migration[_0x3109bd('0xd')]['removeIndex']=function(_0x20f7e7,_0x36a8b6){const _0x7d0407=_0x3109bd,_0x436c79=this;this[_0x7d0407('0x8')][_0x7d0407('0x7')](function(){const _0x359a07=_0x7d0407;return _0x436c79[_0x359a07('0x1b')][_0x359a07('0x1e')](_0x20f7e7,_0x36a8b6)[_0x359a07('0x0')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x20f7e7,_0x36a8b6);})['catch'](function(_0x304149){logger['info'](JSON['stringify'](_0x304149));});});},Migration['prototype']['query']=function(_0x537ad5){const _0x438f91=_0x3109bd,_0x50a593=this;this[_0x438f91('0x8')][_0x438f91('0x7')](function(){const _0x2633c1=_0x438f91;return _0x50a593[_0x2633c1('0x1b')][_0x2633c1('0x19')][_0x2633c1('0x5')](_0x537ad5)['then'](function(){const _0xf283d8=_0x2633c1;logger[_0xf283d8('0x13')](_0xf283d8('0x10'),_0x537ad5);})[_0x2633c1('0x17')](function(_0x3a7c6d){const _0x232c09=_0x2633c1;logger['info'](JSON[_0x232c09('0x11')](_0x3a7c6d));});});},Migration['prototype'][_0x3109bd('0x18')]=function(_0x38e898,_0x2c3aa7){const _0x1421df=_0x3109bd,_0x108e51=this;this[_0x1421df('0x8')][_0x1421df('0x7')](function(){const _0xe6da3b=_0x1421df;return _0x108e51[_0xe6da3b('0x1b')][_0xe6da3b('0x18')](_0x38e898,_0x2c3aa7)[_0xe6da3b('0x0')](function(){const _0x4e4e4c=_0xe6da3b;logger[_0x4e4e4c('0x13')](_0x4e4e4c('0x1a'),_0x2c3aa7,_0x38e898);})[_0xe6da3b('0x17')](function(_0x3c0e7c){logger['info'](util['inspect'](_0x3c0e7c,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3109bd('0x16')]=function(_0x59dc92,_0x401a5c,_0x3dba23){const _0x59a025=_0x3109bd,_0x5f234a=this;this[_0x59a025('0x8')]['enqueue'](function(){const _0x38e5b8=_0x59a025;return _0x5f234a[_0x38e5b8('0x1b')][_0x38e5b8('0x16')](_0x59dc92,_0x401a5c,_0x3dba23)['then'](function(){const _0x25b066=_0x38e5b8;logger[_0x25b066('0x13')](_0x25b066('0x4'),_0x401a5c,_0x3dba23,_0x59dc92);})[_0x38e5b8('0x17')](function(_0x80d41b){const _0x288c9a=_0x38e5b8;logger[_0x288c9a('0x13')](util[_0x288c9a('0xe')](_0x80d41b,{'showHidden':![],'depth':null}));});});},Migration[_0x3109bd('0xd')][_0x3109bd('0x2')]=function(_0x88bda){const _0x367eb6=_0x3109bd;this[_0x367eb6('0x8')]['enqueue'](function(){return _0x88bda();});},module[_0x3109bd('0x12')]={'up':function(_0x5c05e9){return new Promise(function(_0x303800){const _0xe319fd=new Migration(_0x5c05e9);_0xe319fd['final'](_0x303800);});},'down':function(){}};
\ No newline at end of file