Built motion from commit ded33658aad58fc8de845a8299a9db59a88cc353. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.1.js
index d9d38cf..7afe5ce 100644 (file)
@@ -1 +1 @@
-const a973_0x46ac=['removeColumn','inspect','queryInterface','../config/logger','enqueue','prototype','stringify','tail','removeIndex','migration','addIndex','changeColumn','dropTable','final','removeIndex\x20%s\x20%s','sequelize','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','addIndex\x20%s\x20%s\x20%s','exports','info','then','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','sequence','util','catch'];(function(_0x41b80b,_0x46ac47){const _0x45f0ae=function(_0xb3f8d0){while(--_0xb3f8d0){_0x41b80b['push'](_0x41b80b['shift']());}};_0x45f0ae(++_0x46ac47);}(a973_0x46ac,0xec));const a973_0x45f0=function(_0x41b80b,_0x46ac47){_0x41b80b=_0x41b80b-0x0;let _0x45f0ae=a973_0x46ac[_0x41b80b];return _0x45f0ae;};const _0x234aeb=a973_0x45f0;'use strict';const util=require(_0x234aeb('0xe')),logger=require(_0x234aeb('0x13'))(_0x234aeb('0x19')),Sequence=function(){};Sequence[_0x234aeb('0x15')][_0x234aeb('0x14')]=function(_0xb3f8d0){const _0x2ec43c=_0x234aeb;this[_0x2ec43c('0x17')]=this[_0x2ec43c('0x17')]?this['tail'][_0x2ec43c('0xc')](_0xb3f8d0):_0xb3f8d0();};const Migration=function(_0xd5ad49){const _0x4b06e5=_0x234aeb;this[_0x4b06e5('0x12')]=_0xd5ad49,this[_0x4b06e5('0xd')]=new Sequence();};Migration[_0x234aeb('0x15')][_0x234aeb('0x1b')]=function(_0x2be167,_0x46b3b4,_0x4d510b){const _0x3a81a2=_0x234aeb,_0x22953e=this;this[_0x3a81a2('0xd')][_0x3a81a2('0x14')](function(){const _0x3c4b35=_0x3a81a2;return _0x22953e[_0x3c4b35('0x12')][_0x3c4b35('0x1b')](_0x2be167,_0x46b3b4,_0x4d510b)[_0x3c4b35('0xa')](function(){const _0x599217=_0x3c4b35;logger[_0x599217('0x9')](_0x599217('0xb'),_0x46b3b4,_0x2be167);})['catch'](function(_0x29e14a){const _0x1f62a6=_0x3c4b35;logger[_0x1f62a6('0x9')](JSON['stringify'](_0x29e14a));});});},Migration['prototype']['addColumn']=function(_0x3f4537,_0x3d1c7a,_0x23969b){const _0x20e9fd=_0x234aeb,_0x276a0f=this;this['sequence'][_0x20e9fd('0x14')](function(){const _0x29dcb7=_0x20e9fd;return _0x276a0f[_0x29dcb7('0x12')]['addColumn'](_0x3f4537,_0x3d1c7a,_0x23969b)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x3d1c7a,_0x3f4537);})[_0x29dcb7('0xf')](function(_0x234b50){const _0xcb2566=_0x29dcb7;logger[_0xcb2566('0x9')](JSON['stringify'](_0x234b50));});});},Migration[_0x234aeb('0x15')][_0x234aeb('0x0')]=function(_0x222171){const _0x79d665=_0x234aeb,_0x2db320=this;this[_0x79d665('0xd')][_0x79d665('0x14')](function(){const _0x19b30e=_0x79d665;return _0x2db320[_0x19b30e('0x12')]['dropTable'](_0x222171,{'force':!![]})[_0x19b30e('0xa')](function(){const _0x115b32=_0x19b30e;logger[_0x115b32('0x9')](_0x115b32('0x6'),_0x222171);})[_0x19b30e('0xf')](function(_0x191c64){const _0x862db8=_0x19b30e;logger[_0x862db8('0x9')](JSON[_0x862db8('0x16')](_0x191c64));});});},Migration[_0x234aeb('0x15')][_0x234aeb('0x1a')]=function(_0x501137,_0x2f3df5,_0x46426e){const _0x4b62de=_0x234aeb,_0x92b361=this;this['sequence'][_0x4b62de('0x14')](function(){const _0x458399=_0x4b62de;return _0x92b361[_0x458399('0x12')][_0x458399('0x1a')](_0x501137,_0x2f3df5,{'indexName':_0x46426e})['then'](function(){const _0x35b593=_0x458399;logger[_0x35b593('0x9')](_0x35b593('0x7'),_0x501137,_0x2f3df5['join'](','),_0x46426e);})[_0x458399('0xf')](function(_0x1e78cc){const _0xe200ec=_0x458399;logger['info'](JSON[_0xe200ec('0x16')](_0x1e78cc));});});},Migration[_0x234aeb('0x15')][_0x234aeb('0x18')]=function(_0x1a4ebd,_0x441836){const _0x5a3321=_0x234aeb,_0x1e606c=this;this['sequence'][_0x5a3321('0x14')](function(){const _0x4543fe=_0x5a3321;return _0x1e606c[_0x4543fe('0x12')][_0x4543fe('0x18')](_0x1a4ebd,_0x441836)[_0x4543fe('0xa')](function(){const _0x18e0d5=_0x4543fe;logger[_0x18e0d5('0x9')](_0x18e0d5('0x2'),_0x1a4ebd,_0x441836);})[_0x4543fe('0xf')](function(_0x2cafe4){const _0x451193=_0x4543fe;logger[_0x451193('0x9')](JSON[_0x451193('0x16')](_0x2cafe4));});});},Migration['prototype'][_0x234aeb('0x4')]=function(_0x54aafa){const _0x28ef07=_0x234aeb,_0x319f25=this;this['sequence'][_0x28ef07('0x14')](function(){const _0x45fdd0=_0x28ef07;return _0x319f25['queryInterface'][_0x45fdd0('0x3')][_0x45fdd0('0x4')](_0x54aafa)[_0x45fdd0('0xa')](function(){const _0x5ba6e4=_0x45fdd0;logger[_0x5ba6e4('0x9')]('query\x20%s',_0x54aafa);})[_0x45fdd0('0xf')](function(_0x23b8d7){const _0x4188f1=_0x45fdd0;logger['info'](JSON[_0x4188f1('0x16')](_0x23b8d7));});});},Migration[_0x234aeb('0x15')][_0x234aeb('0x10')]=function(_0x24e802,_0x342abb){const _0x2ff7b0=_0x234aeb,_0x9469cc=this;this[_0x2ff7b0('0xd')][_0x2ff7b0('0x14')](function(){const _0x33f030=_0x2ff7b0;return _0x9469cc[_0x33f030('0x12')]['removeColumn'](_0x24e802,_0x342abb)['then'](function(){const _0x32d8f1=_0x33f030;logger[_0x32d8f1('0x9')]('Removed\x20column\x20%s\x20from\x20%s',_0x342abb,_0x24e802);})['catch'](function(_0x458750){const _0x36898e=_0x33f030;logger[_0x36898e('0x9')](util[_0x36898e('0x11')](_0x458750,{'showHidden':![],'depth':null}));});});},Migration[_0x234aeb('0x15')]['renameColumn']=function(_0x55229e,_0x588945,_0x39dbea){const _0x2f35b1=this;this['sequence']['enqueue'](function(){const _0x59df6f=a973_0x45f0;return _0x2f35b1[_0x59df6f('0x12')]['renameColumn'](_0x55229e,_0x588945,_0x39dbea)[_0x59df6f('0xa')](function(){const _0x116755=_0x59df6f;logger[_0x116755('0x9')](_0x116755('0x5'),_0x588945,_0x39dbea,_0x55229e);})[_0x59df6f('0xf')](function(_0x4a4790){const _0x2914af=_0x59df6f;logger['info'](util[_0x2914af('0x11')](_0x4a4790,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x234aeb('0x1')]=function(_0x33411c){const _0x3a16d0=_0x234aeb;this[_0x3a16d0('0xd')]['enqueue'](function(){return _0x33411c();});},module[_0x234aeb('0x8')]={'up':function(_0x3e6f4a){return new Promise(function(_0x244531){const _0x13a38d=a973_0x45f0,_0x3ca6a9=new Migration(_0x3e6f4a);_0x3ca6a9[_0x13a38d('0x1')](_0x244531);});},'down':function(){}};
\ No newline at end of file
+const a973_0x1f6c=['inspect','queryInterface','table\x20dropped\x20%s','catch','renameColumn','then','addColumn','Removed\x20column\x20%s\x20from\x20%s','query\x20%s','../config/logger','query','sequelize','enqueue','removeIndex\x20%s\x20%s','migration','removeIndex','tail','addIndex','sequence','final','removeColumn','util','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','stringify','join','Added\x20column\x20%s\x20to\x20%s','finally','prototype','addIndex\x20%s\x20%s\x20%s'];(function(_0x21ee27,_0x1f6cb2){const _0x4bed3b=function(_0x2f8b65){while(--_0x2f8b65){_0x21ee27['push'](_0x21ee27['shift']());}};_0x4bed3b(++_0x1f6cb2);}(a973_0x1f6c,0x77));const a973_0x4bed=function(_0x21ee27,_0x1f6cb2){_0x21ee27=_0x21ee27-0x0;let _0x4bed3b=a973_0x1f6c[_0x21ee27];return _0x4bed3b;};const _0x4b3da7=a973_0x4bed;'use strict';const util=require(_0x4b3da7('0x16')),logger=require(_0x4b3da7('0xa'))(_0x4b3da7('0xf')),Sequence=function(){};Sequence[_0x4b3da7('0x1d')][_0x4b3da7('0xd')]=function(_0x2f8b65){const _0x4c71b5=_0x4b3da7;this[_0x4c71b5('0x11')]=this[_0x4c71b5('0x11')]?this[_0x4c71b5('0x11')][_0x4c71b5('0x1c')](_0x2f8b65):_0x2f8b65();};const Migration=function(_0xf0be54){this['queryInterface']=_0xf0be54,this['sequence']=new Sequence();};Migration[_0x4b3da7('0x1d')]['changeColumn']=function(_0x24cb77,_0x411792,_0x3d3f26){const _0x12e59f=_0x4b3da7,_0x4ac93c=this;this['sequence'][_0x12e59f('0xd')](function(){const _0x436b9e=_0x12e59f;return _0x4ac93c[_0x436b9e('0x2')]['changeColumn'](_0x24cb77,_0x411792,_0x3d3f26)['then'](function(){const _0x2d79b9=_0x436b9e;logger[_0x2d79b9('0x18')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x411792,_0x24cb77);})[_0x436b9e('0x4')](function(_0x29ed18){const _0x38ed51=_0x436b9e;logger[_0x38ed51('0x18')](JSON['stringify'](_0x29ed18));});});},Migration['prototype']['addColumn']=function(_0xadb0ab,_0x5d3213,_0x2d00f4){const _0x158f69=_0x4b3da7,_0x209a65=this;this['sequence'][_0x158f69('0xd')](function(){const _0x3a2f46=_0x158f69;return _0x209a65['queryInterface'][_0x3a2f46('0x7')](_0xadb0ab,_0x5d3213,_0x2d00f4)['then'](function(){const _0x91b0bd=_0x3a2f46;logger[_0x91b0bd('0x18')](_0x91b0bd('0x1b'),_0x5d3213,_0xadb0ab);})[_0x3a2f46('0x4')](function(_0x34d7d9){const _0x2be93b=_0x3a2f46;logger[_0x2be93b('0x18')](JSON['stringify'](_0x34d7d9));});});},Migration['prototype']['dropTable']=function(_0x458679){const _0x43b870=_0x4b3da7,_0x809774=this;this[_0x43b870('0x13')][_0x43b870('0xd')](function(){const _0x7ba98c=_0x43b870;return _0x809774['queryInterface']['dropTable'](_0x458679,{'force':!![]})[_0x7ba98c('0x6')](function(){const _0x4fe83a=_0x7ba98c;logger[_0x4fe83a('0x18')](_0x4fe83a('0x3'),_0x458679);})[_0x7ba98c('0x4')](function(_0x4ae7ca){logger['info'](JSON['stringify'](_0x4ae7ca));});});},Migration['prototype'][_0x4b3da7('0x12')]=function(_0x43fc68,_0x495a3f,_0xeb610c){const _0x21e5c3=_0x4b3da7,_0x41da96=this;this[_0x21e5c3('0x13')][_0x21e5c3('0xd')](function(){const _0x1175c5=_0x21e5c3;return _0x41da96[_0x1175c5('0x2')][_0x1175c5('0x12')](_0x43fc68,_0x495a3f,{'indexName':_0xeb610c})[_0x1175c5('0x6')](function(){const _0x45f040=_0x1175c5;logger[_0x45f040('0x18')](_0x45f040('0x0'),_0x43fc68,_0x495a3f[_0x45f040('0x1a')](','),_0xeb610c);})['catch'](function(_0x36f96b){const _0x58d43c=_0x1175c5;logger[_0x58d43c('0x18')](JSON[_0x58d43c('0x19')](_0x36f96b));});});},Migration[_0x4b3da7('0x1d')]['removeIndex']=function(_0x7e648b,_0x369ccb){const _0x526bb7=_0x4b3da7,_0x477723=this;this[_0x526bb7('0x13')][_0x526bb7('0xd')](function(){const _0x14079a=_0x526bb7;return _0x477723[_0x14079a('0x2')][_0x14079a('0x10')](_0x7e648b,_0x369ccb)[_0x14079a('0x6')](function(){const _0x26efff=_0x14079a;logger['info'](_0x26efff('0xe'),_0x7e648b,_0x369ccb);})[_0x14079a('0x4')](function(_0x4c7db4){const _0xcada82=_0x14079a;logger['info'](JSON[_0xcada82('0x19')](_0x4c7db4));});});},Migration['prototype']['query']=function(_0xff2648){const _0x80f39c=_0x4b3da7,_0xe61e77=this;this[_0x80f39c('0x13')][_0x80f39c('0xd')](function(){const _0x9f8990=_0x80f39c;return _0xe61e77[_0x9f8990('0x2')][_0x9f8990('0xc')][_0x9f8990('0xb')](_0xff2648)[_0x9f8990('0x6')](function(){const _0x1293ff=_0x9f8990;logger[_0x1293ff('0x18')](_0x1293ff('0x9'),_0xff2648);})[_0x9f8990('0x4')](function(_0x595aa7){const _0x32ead9=_0x9f8990;logger[_0x32ead9('0x18')](JSON[_0x32ead9('0x19')](_0x595aa7));});});},Migration[_0x4b3da7('0x1d')][_0x4b3da7('0x15')]=function(_0x4b28bd,_0x52365a){const _0x1043a3=_0x4b3da7,_0x4817fa=this;this[_0x1043a3('0x13')][_0x1043a3('0xd')](function(){const _0x3bc258=_0x1043a3;return _0x4817fa[_0x3bc258('0x2')][_0x3bc258('0x15')](_0x4b28bd,_0x52365a)[_0x3bc258('0x6')](function(){const _0x5034c8=_0x3bc258;logger[_0x5034c8('0x18')](_0x5034c8('0x8'),_0x52365a,_0x4b28bd);})[_0x3bc258('0x4')](function(_0x265028){const _0x1d2dfd=_0x3bc258;logger[_0x1d2dfd('0x18')](util[_0x1d2dfd('0x1')](_0x265028,{'showHidden':![],'depth':null}));});});},Migration[_0x4b3da7('0x1d')][_0x4b3da7('0x5')]=function(_0x3800f5,_0x4b3a37,_0x3a5ac3){const _0x548d6d=_0x4b3da7,_0x20c8f2=this;this[_0x548d6d('0x13')][_0x548d6d('0xd')](function(){const _0x385c55=_0x548d6d;return _0x20c8f2[_0x385c55('0x2')][_0x385c55('0x5')](_0x3800f5,_0x4b3a37,_0x3a5ac3)[_0x385c55('0x6')](function(){const _0x47850d=_0x385c55;logger[_0x47850d('0x18')](_0x47850d('0x17'),_0x4b3a37,_0x3a5ac3,_0x3800f5);})[_0x385c55('0x4')](function(_0x420720){const _0x4db9c7=_0x385c55;logger[_0x4db9c7('0x18')](util[_0x4db9c7('0x1')](_0x420720,{'showHidden':![],'depth':null}));});});},Migration[_0x4b3da7('0x1d')][_0x4b3da7('0x14')]=function(_0x77d231){const _0x2dfd4b=_0x4b3da7;this[_0x2dfd4b('0x13')][_0x2dfd4b('0xd')](function(){return _0x77d231();});},module['exports']={'up':function(_0x53737a){return new Promise(function(_0x4eb995){const _0x34c257=a973_0x4bed,_0x421151=new Migration(_0x53737a);_0x421151[_0x34c257('0x14')](_0x4eb995);});},'down':function(){}};
\ No newline at end of file