Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.8.js
index e95dbf3..6f55553 100644 (file)
@@ -1 +1 @@
-const a1011_0x13ee=['info','enqueue','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','removeIndex\x20%s\x20%s','join','removeColumn','prototype','renameColumn','indicesType','tail','table\x20dropped\x20%s','then','stringify','queryInterface','finally','addIndex\x20%s\x20%s\x20%s\x20[%s]','changeColumn','removeIndex','Removed\x20column\x20%s\x20from\x20%s','indexName','inspect','dropTable','catch','../config/logger','query\x20%s','util','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','addIndex','sequence'];(function(_0x32d929,_0x13ee8e){const _0x1bffb0=function(_0x573627){while(--_0x573627){_0x32d929['push'](_0x32d929['shift']());}};_0x1bffb0(++_0x13ee8e);}(a1011_0x13ee,0xab));const a1011_0x1bff=function(_0x32d929,_0x13ee8e){_0x32d929=_0x32d929-0x0;let _0x1bffb0=a1011_0x13ee[_0x32d929];return _0x1bffb0;};const _0x3b9a4c=a1011_0x1bff;'use strict';const util=require(_0x3b9a4c('0x10')),logger=require(_0x3b9a4c('0xe'))('migration'),Sequence=function(){};Sequence[_0x3b9a4c('0x1d')][_0x3b9a4c('0x16')]=function(_0x573627){const _0xa7e1e7=_0x3b9a4c;this['tail']=this[_0xa7e1e7('0x0')]?this[_0xa7e1e7('0x0')][_0xa7e1e7('0x5')](_0x573627):_0x573627();};const Migration=function(_0x339474){const _0x6bed1e=_0x3b9a4c;this[_0x6bed1e('0x4')]=_0x339474,this[_0x6bed1e('0x14')]=new Sequence();};Migration['prototype'][_0x3b9a4c('0x7')]=function(_0x439548,_0x19d754,_0x44bf48){const _0x11930f=_0x3b9a4c,_0x4d027c=this;this[_0x11930f('0x14')][_0x11930f('0x16')](function(){const _0x1c16f5=_0x11930f;return _0x4d027c['queryInterface'][_0x1c16f5('0x7')](_0x439548,_0x19d754,_0x44bf48)[_0x1c16f5('0x2')](function(){const _0x53a7c8=_0x1c16f5;logger[_0x53a7c8('0x15')](_0x53a7c8('0x18'),_0x19d754,_0x439548);})[_0x1c16f5('0xd')](function(_0x2188c0){const _0x4e97fd=_0x1c16f5;logger[_0x4e97fd('0x15')](JSON[_0x4e97fd('0x3')](_0x2188c0));});});},Migration[_0x3b9a4c('0x1d')][_0x3b9a4c('0x19')]=function(_0x26567a,_0x40c3d5,_0x4cc597){const _0x3afcfc=_0x3b9a4c,_0x22670f=this;this[_0x3afcfc('0x14')][_0x3afcfc('0x16')](function(){const _0x421ab1=_0x3afcfc;return _0x22670f[_0x421ab1('0x4')]['addColumn'](_0x26567a,_0x40c3d5,_0x4cc597)['then'](function(){const _0x288b90=_0x421ab1;logger[_0x288b90('0x15')](_0x288b90('0x17'),_0x40c3d5,_0x26567a);})[_0x421ab1('0xd')](function(_0x2aad62){const _0x282525=_0x421ab1;logger[_0x282525('0x15')](JSON[_0x282525('0x3')](_0x2aad62));});});},Migration[_0x3b9a4c('0x1d')][_0x3b9a4c('0xc')]=function(_0x3e803a){const _0x3dbc46=_0x3b9a4c,_0x491b32=this;this['sequence'][_0x3dbc46('0x16')](function(){const _0x5dfd06=_0x3dbc46;return _0x491b32['queryInterface'][_0x5dfd06('0xc')](_0x3e803a,{'force':!![]})[_0x5dfd06('0x2')](function(){const _0xa9c059=_0x5dfd06;logger[_0xa9c059('0x15')](_0xa9c059('0x1'),_0x3e803a);})[_0x5dfd06('0xd')](function(_0x39ff89){const _0x16e2cd=_0x5dfd06;logger['info'](JSON[_0x16e2cd('0x3')](_0x39ff89));});});},Migration['prototype'][_0x3b9a4c('0x13')]=function(_0x5230d4,_0x17d0a7,_0x4a9508){const _0x57ffba=_0x3b9a4c,_0x3ee22f=this;this[_0x57ffba('0x14')]['enqueue'](function(){const _0x5e36f8=_0x57ffba;return _0x3ee22f[_0x5e36f8('0x4')][_0x5e36f8('0x13')](_0x5230d4,_0x17d0a7,{'indexName':_0x4a9508[_0x5e36f8('0xa')],'indicesType':_0x4a9508[_0x5e36f8('0x1f')]})[_0x5e36f8('0x2')](function(){const _0x40597b=_0x5e36f8;logger[_0x40597b('0x15')](_0x40597b('0x6'),_0x5230d4,_0x17d0a7[_0x40597b('0x1b')](','),_0x4a9508[_0x40597b('0xa')],_0x4a9508[_0x40597b('0x1f')]);})[_0x5e36f8('0xd')](function(_0x535e1f){const _0x466ee0=_0x5e36f8;logger[_0x466ee0('0x15')](JSON[_0x466ee0('0x3')](_0x535e1f));});});},Migration['prototype']['removeIndex']=function(_0x27128,_0x4040e7){const _0x99c1b0=_0x3b9a4c,_0x2c4139=this;this[_0x99c1b0('0x14')]['enqueue'](function(){const _0xc24cad=_0x99c1b0;return _0x2c4139[_0xc24cad('0x4')][_0xc24cad('0x8')](_0x27128,_0x4040e7)[_0xc24cad('0x2')](function(){const _0x5da5d2=_0xc24cad;logger['info'](_0x5da5d2('0x1a'),_0x27128,_0x4040e7);})[_0xc24cad('0xd')](function(_0x25d461){logger['info'](JSON['stringify'](_0x25d461));});});},Migration[_0x3b9a4c('0x1d')][_0x3b9a4c('0x12')]=function(_0x3fdc18){const _0x5a15ff=_0x3b9a4c,_0x197fe4=this;this[_0x5a15ff('0x14')][_0x5a15ff('0x16')](function(){const _0x3ea0dc=_0x5a15ff;return _0x197fe4['queryInterface']['sequelize'][_0x3ea0dc('0x12')](_0x3fdc18)[_0x3ea0dc('0x2')](function(){const _0x3b8f7f=_0x3ea0dc;logger[_0x3b8f7f('0x15')](_0x3b8f7f('0xf'),_0x3fdc18);})[_0x3ea0dc('0xd')](function(_0x5d07d4){const _0x52d3e1=_0x3ea0dc;logger[_0x52d3e1('0x15')](JSON[_0x52d3e1('0x3')](_0x5d07d4));});});},Migration[_0x3b9a4c('0x1d')][_0x3b9a4c('0x1c')]=function(_0x1330e7,_0x24ca61){const _0x496625=_0x3b9a4c,_0x3b82ba=this;this[_0x496625('0x14')]['enqueue'](function(){const _0x286ce2=_0x496625;return _0x3b82ba['queryInterface']['removeColumn'](_0x1330e7,_0x24ca61)[_0x286ce2('0x2')](function(){const _0x33c1f2=_0x286ce2;logger['info'](_0x33c1f2('0x9'),_0x24ca61,_0x1330e7);})[_0x286ce2('0xd')](function(_0x4f0ef8){const _0x2f271=_0x286ce2;logger[_0x2f271('0x15')](util[_0x2f271('0xb')](_0x4f0ef8,{'showHidden':![],'depth':null}));});});},Migration[_0x3b9a4c('0x1d')][_0x3b9a4c('0x1e')]=function(_0x7cd55a,_0x160fba,_0x138899){const _0x5ed545=_0x3b9a4c,_0x1d790e=this;this[_0x5ed545('0x14')][_0x5ed545('0x16')](function(){const _0x33e10a=_0x5ed545;return _0x1d790e['queryInterface'][_0x33e10a('0x1e')](_0x7cd55a,_0x160fba,_0x138899)['then'](function(){const _0x24db80=_0x33e10a;logger[_0x24db80('0x15')](_0x24db80('0x11'),_0x160fba,_0x138899,_0x7cd55a);})[_0x33e10a('0xd')](function(_0x55edeb){const _0x5c60c1=_0x33e10a;logger[_0x5c60c1('0x15')](util[_0x5c60c1('0xb')](_0x55edeb,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x409ded){const _0x466c05=_0x3b9a4c;this[_0x466c05('0x14')][_0x466c05('0x16')](function(){return _0x409ded();});},module['exports']={'up':function(_0x40d34f){return new Promise(function(_0x225792){const _0x11696b=new Migration(_0x40d34f);_0x11696b['final'](_0x225792);});},'down':function(){}};
\ No newline at end of file
+const a1011_0x26d6=['then','migration','removeIndex','addIndex','addIndex\x20%s\x20%s\x20%s\x20[%s]','stringify','removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','indexName','changeColumn','dropTable','Added\x20column\x20%s\x20to\x20%s','query','queryInterface','Removed\x20column\x20%s\x20from\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','removeColumn','indicesType','tail','info','catch','finally','prototype','join','query\x20%s','final','sequence','util','enqueue'];(function(_0x58284e,_0x26d688){const _0x4f1112=function(_0x48b239){while(--_0x48b239){_0x58284e['push'](_0x58284e['shift']());}};_0x4f1112(++_0x26d688);}(a1011_0x26d6,0x1e9));const a1011_0x4f11=function(_0x58284e,_0x26d688){_0x58284e=_0x58284e-0x0;let _0x4f1112=a1011_0x26d6[_0x58284e];return _0x4f1112;};const _0x4615d7=a1011_0x4f11;'use strict';const util=require(_0x4615d7('0x5')),logger=require('../config/logger')(_0x4615d7('0x8')),Sequence=function(){};Sequence[_0x4615d7('0x0')][_0x4615d7('0x6')]=function(_0x48b239){const _0x10fef7=_0x4615d7;this[_0x10fef7('0x1b')]=this[_0x10fef7('0x1b')]?this[_0x10fef7('0x1b')][_0x10fef7('0x1e')](_0x48b239):_0x48b239();};const Migration=function(_0x521ca9){const _0x16cecf=_0x4615d7;this['queryInterface']=_0x521ca9,this[_0x16cecf('0x4')]=new Sequence();};Migration[_0x4615d7('0x0')][_0x4615d7('0x11')]=function(_0x1ce40e,_0x2a18c7,_0x21c638){const _0x2f4724=_0x4615d7,_0x490a35=this;this[_0x2f4724('0x4')]['enqueue'](function(){const _0x4266a5=_0x2f4724;return _0x490a35[_0x4266a5('0x15')][_0x4266a5('0x11')](_0x1ce40e,_0x2a18c7,_0x21c638)['then'](function(){const _0x2a5e63=_0x4266a5;logger[_0x2a5e63('0x1c')](_0x2a5e63('0x17'),_0x2a18c7,_0x1ce40e);})[_0x4266a5('0x1d')](function(_0x380089){const _0x15ba8a=_0x4266a5;logger[_0x15ba8a('0x1c')](JSON[_0x15ba8a('0xc')](_0x380089));});});},Migration[_0x4615d7('0x0')]['addColumn']=function(_0x50f5e3,_0x5ed799,_0x3ae7fd){const _0x318e03=_0x4615d7,_0x49c977=this;this[_0x318e03('0x4')][_0x318e03('0x6')](function(){const _0x7b2fc5=_0x318e03;return _0x49c977[_0x7b2fc5('0x15')]['addColumn'](_0x50f5e3,_0x5ed799,_0x3ae7fd)[_0x7b2fc5('0x7')](function(){const _0x37c415=_0x7b2fc5;logger['info'](_0x37c415('0x13'),_0x5ed799,_0x50f5e3);})['catch'](function(_0x5e457a){const _0x4c4943=_0x7b2fc5;logger[_0x4c4943('0x1c')](JSON[_0x4c4943('0xc')](_0x5e457a));});});},Migration[_0x4615d7('0x0')][_0x4615d7('0x12')]=function(_0x202cb0){const _0x39bd8d=_0x4615d7,_0x166af0=this;this[_0x39bd8d('0x4')][_0x39bd8d('0x6')](function(){const _0x12a904=_0x39bd8d;return _0x166af0[_0x12a904('0x15')][_0x12a904('0x12')](_0x202cb0,{'force':!![]})[_0x12a904('0x7')](function(){const _0x33bfab=_0x12a904;logger[_0x33bfab('0x1c')](_0x33bfab('0xf'),_0x202cb0);})[_0x12a904('0x1d')](function(_0x37e876){const _0x67a24c=_0x12a904;logger[_0x67a24c('0x1c')](JSON[_0x67a24c('0xc')](_0x37e876));});});},Migration['prototype'][_0x4615d7('0xa')]=function(_0x53bdfb,_0x5eea,_0x193d9b){const _0x2d6065=_0x4615d7,_0x86a79c=this;this[_0x2d6065('0x4')][_0x2d6065('0x6')](function(){const _0x2b2d92=_0x2d6065;return _0x86a79c[_0x2b2d92('0x15')][_0x2b2d92('0xa')](_0x53bdfb,_0x5eea,{'indexName':_0x193d9b[_0x2b2d92('0x10')],'indicesType':_0x193d9b[_0x2b2d92('0x1a')]})[_0x2b2d92('0x7')](function(){const _0x4f01d8=_0x2b2d92;logger[_0x4f01d8('0x1c')](_0x4f01d8('0xb'),_0x53bdfb,_0x5eea[_0x4f01d8('0x1')](','),_0x193d9b['indexName'],_0x193d9b[_0x4f01d8('0x1a')]);})[_0x2b2d92('0x1d')](function(_0x53dd8d){const _0x5c7e81=_0x2b2d92;logger[_0x5c7e81('0x1c')](JSON[_0x5c7e81('0xc')](_0x53dd8d));});});},Migration[_0x4615d7('0x0')][_0x4615d7('0x9')]=function(_0x5a38dd,_0x112528){const _0x56cb7c=_0x4615d7,_0xcde7f6=this;this['sequence'][_0x56cb7c('0x6')](function(){const _0x2345e3=_0x56cb7c;return _0xcde7f6[_0x2345e3('0x15')][_0x2345e3('0x9')](_0x5a38dd,_0x112528)[_0x2345e3('0x7')](function(){const _0x396de4=_0x2345e3;logger[_0x396de4('0x1c')](_0x396de4('0xd'),_0x5a38dd,_0x112528);})[_0x2345e3('0x1d')](function(_0x3379c7){const _0x5af689=_0x2345e3;logger['info'](JSON[_0x5af689('0xc')](_0x3379c7));});});},Migration[_0x4615d7('0x0')][_0x4615d7('0x14')]=function(_0x919fa){const _0x377ba9=_0x4615d7,_0x42f3d6=this;this[_0x377ba9('0x4')][_0x377ba9('0x6')](function(){const _0x50fff6=_0x377ba9;return _0x42f3d6[_0x50fff6('0x15')]['sequelize']['query'](_0x919fa)[_0x50fff6('0x7')](function(){const _0x887a7f=_0x50fff6;logger[_0x887a7f('0x1c')](_0x887a7f('0x2'),_0x919fa);})[_0x50fff6('0x1d')](function(_0x3637c3){const _0x18a59f=_0x50fff6;logger[_0x18a59f('0x1c')](JSON[_0x18a59f('0xc')](_0x3637c3));});});},Migration[_0x4615d7('0x0')][_0x4615d7('0x19')]=function(_0x9effca,_0x5e161b){const _0x28cedc=_0x4615d7,_0x5d6808=this;this[_0x28cedc('0x4')][_0x28cedc('0x6')](function(){const _0x215aa5=_0x28cedc;return _0x5d6808['queryInterface'][_0x215aa5('0x19')](_0x9effca,_0x5e161b)[_0x215aa5('0x7')](function(){const _0x422ab1=_0x215aa5;logger[_0x422ab1('0x1c')](_0x422ab1('0x16'),_0x5e161b,_0x9effca);})[_0x215aa5('0x1d')](function(_0x240835){const _0x51e6d1=_0x215aa5;logger[_0x51e6d1('0x1c')](util['inspect'](_0x240835,{'showHidden':![],'depth':null}));});});},Migration[_0x4615d7('0x0')][_0x4615d7('0x18')]=function(_0x1a8b91,_0x301df5,_0x3841bb){const _0xf4a0ee=_0x4615d7,_0x52abfd=this;this[_0xf4a0ee('0x4')][_0xf4a0ee('0x6')](function(){const _0x3e6d2d=_0xf4a0ee;return _0x52abfd[_0x3e6d2d('0x15')][_0x3e6d2d('0x18')](_0x1a8b91,_0x301df5,_0x3841bb)[_0x3e6d2d('0x7')](function(){const _0x2ed8f7=_0x3e6d2d;logger['info'](_0x2ed8f7('0xe'),_0x301df5,_0x3841bb,_0x1a8b91);})[_0x3e6d2d('0x1d')](function(_0x6af32b){const _0x78ad38=_0x3e6d2d;logger[_0x78ad38('0x1c')](util['inspect'](_0x6af32b,{'showHidden':![],'depth':null}));});});},Migration[_0x4615d7('0x0')][_0x4615d7('0x3')]=function(_0x5473f2){const _0x26e9a1=_0x4615d7;this[_0x26e9a1('0x4')][_0x26e9a1('0x6')](function(){return _0x5473f2();});},module['exports']={'up':function(_0x27b28a){return new Promise(function(_0x133902){const _0x4910a8=a1011_0x4f11,_0x25a050=new Migration(_0x27b28a);_0x25a050[_0x4910a8('0x3')](_0x133902);});},'down':function(){}};
\ No newline at end of file