Built motion from commit 82a371561bcdbc7605c801e5e414f4032ba9e7ad. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.21.js
index 9bf5eff..bf629d1 100644 (file)
@@ -1 +1 @@
-const a1005_0x2408=['addIndex','enqueue','changeColumn','addColumn','info','../config/logger','removeIndex\x20%s\x20%s','query','queryInterface','join','exports','tail','indexName','final','inspect','sequelize','catch','query\x20%s','prototype','sequence','addIndex\x20%s\x20%s\x20%s\x20[%s]','Removed\x20column\x20%s\x20from\x20%s','then','finally','dropTable','Added\x20column\x20%s\x20to\x20%s','removeColumn','removeIndex','stringify','indicesType'];(function(_0x4da50b,_0x240869){const _0x1cb70e=function(_0xbd3839){while(--_0xbd3839){_0x4da50b['push'](_0x4da50b['shift']());}};_0x1cb70e(++_0x240869);}(a1005_0x2408,0xdb));const a1005_0x1cb7=function(_0x4da50b,_0x240869){_0x4da50b=_0x4da50b-0x0;let _0x1cb70e=a1005_0x2408[_0x4da50b];return _0x1cb70e;};const _0x3ef9ea=a1005_0x1cb7;'use strict';const util=require('util'),logger=require(_0x3ef9ea('0x1a'))('migration'),Sequence=function(){};Sequence[_0x3ef9ea('0x9')][_0x3ef9ea('0x16')]=function(_0xbd3839){const _0x478d70=_0x3ef9ea;this[_0x478d70('0x2')]=this[_0x478d70('0x2')]?this[_0x478d70('0x2')][_0x478d70('0xe')](_0xbd3839):_0xbd3839();};const Migration=function(_0x2a6c70){const _0x3265eb=_0x3ef9ea;this[_0x3265eb('0x1d')]=_0x2a6c70,this[_0x3265eb('0xa')]=new Sequence();};Migration[_0x3ef9ea('0x9')][_0x3ef9ea('0x17')]=function(_0x37d11a,_0x1a1025,_0x55d8a3){const _0x12029b=_0x3ef9ea,_0x34584d=this;this[_0x12029b('0xa')]['enqueue'](function(){const _0x1c12dc=_0x12029b;return _0x34584d['queryInterface']['changeColumn'](_0x37d11a,_0x1a1025,_0x55d8a3)[_0x1c12dc('0xd')](function(){const _0x434e29=_0x1c12dc;logger[_0x434e29('0x19')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1a1025,_0x37d11a);})[_0x1c12dc('0x7')](function(_0x3e9a4e){const _0x411a84=_0x1c12dc;logger[_0x411a84('0x19')](JSON[_0x411a84('0x13')](_0x3e9a4e));});});},Migration['prototype'][_0x3ef9ea('0x18')]=function(_0x36b2e4,_0x4731dd,_0x2d5134){const _0x32ae5b=_0x3ef9ea,_0x19c0c0=this;this['sequence'][_0x32ae5b('0x16')](function(){const _0x594fe4=_0x32ae5b;return _0x19c0c0[_0x594fe4('0x1d')]['addColumn'](_0x36b2e4,_0x4731dd,_0x2d5134)[_0x594fe4('0xd')](function(){const _0x22f127=_0x594fe4;logger['info'](_0x22f127('0x10'),_0x4731dd,_0x36b2e4);})[_0x594fe4('0x7')](function(_0x5177d6){const _0x421c35=_0x594fe4;logger[_0x421c35('0x19')](JSON[_0x421c35('0x13')](_0x5177d6));});});},Migration['prototype'][_0x3ef9ea('0xf')]=function(_0x31f4f3){const _0x908b6a=_0x3ef9ea,_0x5bd2f6=this;this[_0x908b6a('0xa')]['enqueue'](function(){const _0x1a1c47=_0x908b6a;return _0x5bd2f6[_0x1a1c47('0x1d')][_0x1a1c47('0xf')](_0x31f4f3,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x31f4f3);})[_0x1a1c47('0x7')](function(_0xd7ea7f){const _0x13372f=_0x1a1c47;logger[_0x13372f('0x19')](JSON[_0x13372f('0x13')](_0xd7ea7f));});});},Migration[_0x3ef9ea('0x9')][_0x3ef9ea('0x15')]=function(_0x50810c,_0x28103c,_0x2b213b){const _0x4f9b7e=_0x3ef9ea,_0x5d634d=this;this[_0x4f9b7e('0xa')]['enqueue'](function(){const _0x4bb33d=_0x4f9b7e;return _0x5d634d['queryInterface'][_0x4bb33d('0x15')](_0x50810c,_0x28103c,{'indexName':_0x2b213b[_0x4bb33d('0x3')],'indicesType':_0x2b213b['indicesType']})['then'](function(){const _0x586356=_0x4bb33d;logger[_0x586356('0x19')](_0x586356('0xb'),_0x50810c,_0x28103c[_0x586356('0x0')](','),_0x2b213b[_0x586356('0x3')],_0x2b213b[_0x586356('0x14')]);})['catch'](function(_0x5f5918){const _0x4a9170=_0x4bb33d;logger[_0x4a9170('0x19')](JSON[_0x4a9170('0x13')](_0x5f5918));});});},Migration['prototype'][_0x3ef9ea('0x12')]=function(_0x226870,_0xc3932){const _0x4d3912=_0x3ef9ea,_0x3e5acb=this;this[_0x4d3912('0xa')][_0x4d3912('0x16')](function(){const _0x374aa2=_0x4d3912;return _0x3e5acb['queryInterface']['removeIndex'](_0x226870,_0xc3932)[_0x374aa2('0xd')](function(){const _0x117310=_0x374aa2;logger[_0x117310('0x19')](_0x117310('0x1b'),_0x226870,_0xc3932);})[_0x374aa2('0x7')](function(_0xec4d8b){const _0x8872bf=_0x374aa2;logger[_0x8872bf('0x19')](JSON[_0x8872bf('0x13')](_0xec4d8b));});});},Migration['prototype'][_0x3ef9ea('0x1c')]=function(_0xc69d4b){const _0x2a1c27=_0x3ef9ea,_0xa4413d=this;this[_0x2a1c27('0xa')][_0x2a1c27('0x16')](function(){const _0x330911=_0x2a1c27;return _0xa4413d[_0x330911('0x1d')][_0x330911('0x6')][_0x330911('0x1c')](_0xc69d4b)[_0x330911('0xd')](function(){const _0x3cf626=_0x330911;logger['info'](_0x3cf626('0x8'),_0xc69d4b);})[_0x330911('0x7')](function(_0x3ba82c){const _0x216ed5=_0x330911;logger[_0x216ed5('0x19')](JSON['stringify'](_0x3ba82c));});});},Migration[_0x3ef9ea('0x9')][_0x3ef9ea('0x11')]=function(_0x2e2a0e,_0x8fede1){const _0x562847=_0x3ef9ea,_0x26d616=this;this[_0x562847('0xa')]['enqueue'](function(){const _0x195099=_0x562847;return _0x26d616[_0x195099('0x1d')][_0x195099('0x11')](_0x2e2a0e,_0x8fede1)[_0x195099('0xd')](function(){const _0x3fcb73=_0x195099;logger[_0x3fcb73('0x19')](_0x3fcb73('0xc'),_0x8fede1,_0x2e2a0e);})['catch'](function(_0x21f584){const _0x2721f7=_0x195099;logger[_0x2721f7('0x19')](util['inspect'](_0x21f584,{'showHidden':![],'depth':null}));});});},Migration[_0x3ef9ea('0x9')]['renameColumn']=function(_0x44309e,_0x1cdc5d,_0x2c646d){const _0x58bd7c=_0x3ef9ea,_0x2d5f39=this;this[_0x58bd7c('0xa')]['enqueue'](function(){const _0x4c397c=_0x58bd7c;return _0x2d5f39['queryInterface']['renameColumn'](_0x44309e,_0x1cdc5d,_0x2c646d)['then'](function(){const _0x170915=a1005_0x1cb7;logger[_0x170915('0x19')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x1cdc5d,_0x2c646d,_0x44309e);})[_0x4c397c('0x7')](function(_0x50071e){const _0x2a5e7f=_0x4c397c;logger[_0x2a5e7f('0x19')](util[_0x2a5e7f('0x5')](_0x50071e,{'showHidden':![],'depth':null}));});});},Migration[_0x3ef9ea('0x9')][_0x3ef9ea('0x4')]=function(_0x12de6f){const _0x182e9b=_0x3ef9ea;this[_0x182e9b('0xa')][_0x182e9b('0x16')](function(){return _0x12de6f();});},module[_0x3ef9ea('0x1')]={'up':function(_0x1b2556){return new Promise(function(_0x5e1e5b){const _0x151e56=a1005_0x1cb7,_0xcd1502=new Migration(_0x1b2556);_0xcd1502[_0x151e56('0x4')](_0x5e1e5b);});},'down':function(){}};
\ No newline at end of file
+const a1005_0x2ee9=['indexName','renameColumn','prototype','exports','addIndex','finally','catch','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','final','removeColumn','queryInterface','removeIndex','stringify','inspect','enqueue','sequence','addColumn','table\x20dropped\x20%s','changeColumn','query','then','util','../config/logger','dropTable','query\x20%s','info','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x1ab02f,_0x2ee930){const _0x4443fe=function(_0x4f2bf7){while(--_0x4f2bf7){_0x1ab02f['push'](_0x1ab02f['shift']());}};_0x4443fe(++_0x2ee930);}(a1005_0x2ee9,0x1f1));const a1005_0x4443=function(_0x1ab02f,_0x2ee930){_0x1ab02f=_0x1ab02f-0x0;let _0x4443fe=a1005_0x2ee9[_0x1ab02f];return _0x4443fe;};const _0x5d3ed1=a1005_0x4443;'use strict';const util=require(_0x5d3ed1('0x13')),logger=require(_0x5d3ed1('0x14'))('migration'),Sequence=function(){};Sequence[_0x5d3ed1('0x1b')]['enqueue']=function(_0x4f2bf7){const _0x6ee680=_0x5d3ed1;this[_0x6ee680('0x5')]=this[_0x6ee680('0x5')]?this[_0x6ee680('0x5')][_0x6ee680('0x1')](_0x4f2bf7):_0x4f2bf7();};const Migration=function(_0x12222d){this['queryInterface']=_0x12222d,this['sequence']=new Sequence();};Migration[_0x5d3ed1('0x1b')][_0x5d3ed1('0x10')]=function(_0x578f7a,_0x3a06c3,_0x53936b){const _0x495df7=_0x5d3ed1,_0x34fc23=this;this[_0x495df7('0xd')][_0x495df7('0xc')](function(){const _0x4a5fae=_0x495df7;return _0x34fc23[_0x4a5fae('0x8')]['changeColumn'](_0x578f7a,_0x3a06c3,_0x53936b)[_0x4a5fae('0x12')](function(){const _0x628f4b=_0x4a5fae;logger[_0x628f4b('0x17')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3a06c3,_0x578f7a);})['catch'](function(_0x1c29c6){const _0x519158=_0x4a5fae;logger[_0x519158('0x17')](JSON[_0x519158('0xa')](_0x1c29c6));});});},Migration[_0x5d3ed1('0x1b')][_0x5d3ed1('0xe')]=function(_0x343dea,_0xe8144f,_0x5751ef){const _0x57edbb=_0x5d3ed1,_0x40248f=this;this[_0x57edbb('0xd')][_0x57edbb('0xc')](function(){const _0x250fab=_0x57edbb;return _0x40248f[_0x250fab('0x8')][_0x250fab('0xe')](_0x343dea,_0xe8144f,_0x5751ef)[_0x250fab('0x12')](function(){const _0x52ccac=_0x250fab;logger[_0x52ccac('0x17')](_0x52ccac('0x3'),_0xe8144f,_0x343dea);})[_0x250fab('0x2')](function(_0x21c125){const _0x4296d1=_0x250fab;logger[_0x4296d1('0x17')](JSON[_0x4296d1('0xa')](_0x21c125));});});},Migration[_0x5d3ed1('0x1b')]['dropTable']=function(_0x3cbd7f){const _0x45b07f=_0x5d3ed1,_0x2a8c4d=this;this[_0x45b07f('0xd')][_0x45b07f('0xc')](function(){const _0xc52e24=_0x45b07f;return _0x2a8c4d['queryInterface'][_0xc52e24('0x15')](_0x3cbd7f,{'force':!![]})[_0xc52e24('0x12')](function(){const _0xa6dcf6=_0xc52e24;logger[_0xa6dcf6('0x17')](_0xa6dcf6('0xf'),_0x3cbd7f);})[_0xc52e24('0x2')](function(_0x3aedf1){const _0x496c11=_0xc52e24;logger[_0x496c11('0x17')](JSON['stringify'](_0x3aedf1));});});},Migration[_0x5d3ed1('0x1b')]['addIndex']=function(_0x4d78cd,_0x692f0,_0x9ec142){const _0x5ef50f=_0x5d3ed1,_0x543cd3=this;this[_0x5ef50f('0xd')][_0x5ef50f('0xc')](function(){const _0x37f983=_0x5ef50f;return _0x543cd3[_0x37f983('0x8')][_0x37f983('0x0')](_0x4d78cd,_0x692f0,{'indexName':_0x9ec142[_0x37f983('0x19')],'indicesType':_0x9ec142['indicesType']})[_0x37f983('0x12')](function(){const _0x9065dc=_0x37f983;logger[_0x9065dc('0x17')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x4d78cd,_0x692f0['join'](','),_0x9ec142[_0x9065dc('0x19')],_0x9ec142['indicesType']);})[_0x37f983('0x2')](function(_0x5ebc1a){const _0xd23879=_0x37f983;logger[_0xd23879('0x17')](JSON[_0xd23879('0xa')](_0x5ebc1a));});});},Migration['prototype'][_0x5d3ed1('0x9')]=function(_0x48fbb9,_0x2bb419){const _0x345b4f=_0x5d3ed1,_0x194792=this;this['sequence'][_0x345b4f('0xc')](function(){const _0x35ee97=_0x345b4f;return _0x194792['queryInterface'][_0x35ee97('0x9')](_0x48fbb9,_0x2bb419)[_0x35ee97('0x12')](function(){const _0xb62e53=_0x35ee97;logger[_0xb62e53('0x17')]('removeIndex\x20%s\x20%s',_0x48fbb9,_0x2bb419);})[_0x35ee97('0x2')](function(_0x5eaebd){const _0x1f191e=_0x35ee97;logger[_0x1f191e('0x17')](JSON[_0x1f191e('0xa')](_0x5eaebd));});});},Migration[_0x5d3ed1('0x1b')][_0x5d3ed1('0x11')]=function(_0x297915){const _0xdfbb33=_0x5d3ed1,_0x48edaf=this;this[_0xdfbb33('0xd')][_0xdfbb33('0xc')](function(){const _0x366dad=_0xdfbb33;return _0x48edaf[_0x366dad('0x8')]['sequelize'][_0x366dad('0x11')](_0x297915)[_0x366dad('0x12')](function(){const _0x34a496=_0x366dad;logger[_0x34a496('0x17')](_0x34a496('0x16'),_0x297915);})[_0x366dad('0x2')](function(_0x8e929b){const _0x1c0444=_0x366dad;logger['info'](JSON[_0x1c0444('0xa')](_0x8e929b));});});},Migration['prototype'][_0x5d3ed1('0x7')]=function(_0xba82ef,_0x3dc536){const _0x59d1d2=_0x5d3ed1,_0x1ee81d=this;this['sequence'][_0x59d1d2('0xc')](function(){const _0x365d6a=_0x59d1d2;return _0x1ee81d[_0x365d6a('0x8')][_0x365d6a('0x7')](_0xba82ef,_0x3dc536)[_0x365d6a('0x12')](function(){const _0x519e8c=_0x365d6a;logger[_0x519e8c('0x17')](_0x519e8c('0x18'),_0x3dc536,_0xba82ef);})['catch'](function(_0x4845af){const _0x4b33b9=_0x365d6a;logger[_0x4b33b9('0x17')](util[_0x4b33b9('0xb')](_0x4845af,{'showHidden':![],'depth':null}));});});},Migration[_0x5d3ed1('0x1b')][_0x5d3ed1('0x1a')]=function(_0x38beac,_0x5e174b,_0x3c6622){const _0x4364a7=_0x5d3ed1,_0x3a4686=this;this[_0x4364a7('0xd')][_0x4364a7('0xc')](function(){const _0x2b75f8=_0x4364a7;return _0x3a4686['queryInterface']['renameColumn'](_0x38beac,_0x5e174b,_0x3c6622)[_0x2b75f8('0x12')](function(){const _0x5d1491=_0x2b75f8;logger[_0x5d1491('0x17')](_0x5d1491('0x4'),_0x5e174b,_0x3c6622,_0x38beac);})[_0x2b75f8('0x2')](function(_0x581616){const _0x1e3dcc=_0x2b75f8;logger[_0x1e3dcc('0x17')](util[_0x1e3dcc('0xb')](_0x581616,{'showHidden':![],'depth':null}));});});},Migration[_0x5d3ed1('0x1b')][_0x5d3ed1('0x6')]=function(_0x20887a){const _0x5bc861=_0x5d3ed1;this['sequence'][_0x5bc861('0xc')](function(){return _0x20887a();});},module[_0x5d3ed1('0x1c')]={'up':function(_0x32d231){return new Promise(function(_0x48137a){const _0x5bc973=a1005_0x4443,_0x1ca47f=new Migration(_0x32d231);_0x1ca47f[_0x5bc973('0x6')](_0x48137a);});},'down':function(){}};
\ No newline at end of file