Built motion from commit aab208717af8d15f4fa224cdb6a202877019af9b. Version 3.0.0...
[motion-next.git] / server / migrations / 2.2.1.js
index 2ce9396..6f7d464 100644 (file)
@@ -1 +1 @@
-const a965_0xd227=['removeColumn','tail','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','catch','join','info','renameColumn','changeColumn','then','final','removeIndex','queryInterface','migration','exports','dropTable','Removed\x20column\x20%s\x20from\x20%s','addIndex\x20%s\x20%s\x20%s','query','addIndex','inspect','removeIndex\x20%s\x20%s','stringify','prototype','../config/logger','util','query\x20%s','sequence','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn'];(function(_0x1a5fea,_0xd22743){const _0x314685=function(_0xc01c9f){while(--_0xc01c9f){_0x1a5fea['push'](_0x1a5fea['shift']());}};_0x314685(++_0xd22743);}(a965_0xd227,0x1b8));const a965_0x3146=function(_0x1a5fea,_0xd22743){_0x1a5fea=_0x1a5fea-0x0;let _0x314685=a965_0xd227[_0x1a5fea];return _0x314685;};const _0x4534b1=a965_0x3146;'use strict';const util=require(_0x4534b1('0x14')),logger=require(_0x4534b1('0x13'))(_0x4534b1('0x8')),Sequence=function(){};Sequence['prototype'][_0x4534b1('0x1b')]=function(_0xc01c9f){const _0x3bcd50=_0x4534b1;this[_0x3bcd50('0x1a')]=this[_0x3bcd50('0x1a')]?this[_0x3bcd50('0x1a')]['finally'](_0xc01c9f):_0xc01c9f();};const Migration=function(_0x85b970){const _0x1843a1=_0x4534b1;this[_0x1843a1('0x7')]=_0x85b970,this['sequence']=new Sequence();};Migration[_0x4534b1('0x12')]['changeColumn']=function(_0x19e4ec,_0x16144f,_0x11a3a4){const _0x4f5e04=_0x4534b1,_0x5f2a6f=this;this['sequence'][_0x4f5e04('0x1b')](function(){const _0x263870=_0x4f5e04;return _0x5f2a6f[_0x263870('0x7')][_0x263870('0x3')](_0x19e4ec,_0x16144f,_0x11a3a4)[_0x263870('0x4')](function(){const _0x32ddc4=_0x263870;logger[_0x32ddc4('0x1')](_0x32ddc4('0x1c'),_0x16144f,_0x19e4ec);})[_0x263870('0x1e')](function(_0x4f6b2f){logger['info'](JSON['stringify'](_0x4f6b2f));});});},Migration[_0x4534b1('0x12')][_0x4534b1('0x18')]=function(_0x2e4902,_0x3fad11,_0x3e1e87){const _0x3f9fc0=_0x4534b1,_0x568f80=this;this[_0x3f9fc0('0x16')][_0x3f9fc0('0x1b')](function(){const _0x5b5fc2=_0x3f9fc0;return _0x568f80[_0x5b5fc2('0x7')]['addColumn'](_0x2e4902,_0x3fad11,_0x3e1e87)[_0x5b5fc2('0x4')](function(){const _0x3daed7=_0x5b5fc2;logger[_0x3daed7('0x1')]('Added\x20column\x20%s\x20to\x20%s',_0x3fad11,_0x2e4902);})[_0x5b5fc2('0x1e')](function(_0x2af3f5){const _0x4a6142=_0x5b5fc2;logger[_0x4a6142('0x1')](JSON['stringify'](_0x2af3f5));});});},Migration[_0x4534b1('0x12')][_0x4534b1('0xa')]=function(_0x482919){const _0x52b72d=_0x4534b1,_0x472ed7=this;this[_0x52b72d('0x16')][_0x52b72d('0x1b')](function(){const _0x183e16=_0x52b72d;return _0x472ed7[_0x183e16('0x7')][_0x183e16('0xa')](_0x482919,{'force':!![]})[_0x183e16('0x4')](function(){const _0x1c81dc=_0x183e16;logger['info'](_0x1c81dc('0x1d'),_0x482919);})[_0x183e16('0x1e')](function(_0x8f52d4){const _0x4b1825=_0x183e16;logger[_0x4b1825('0x1')](JSON[_0x4b1825('0x11')](_0x8f52d4));});});},Migration[_0x4534b1('0x12')][_0x4534b1('0xe')]=function(_0x18eaaf,_0xad221c,_0x1fd69a){const _0x478c1c=_0x4534b1,_0x274bd9=this;this[_0x478c1c('0x16')][_0x478c1c('0x1b')](function(){const _0x3179b7=_0x478c1c;return _0x274bd9['queryInterface'][_0x3179b7('0xe')](_0x18eaaf,_0xad221c,{'indexName':_0x1fd69a})[_0x3179b7('0x4')](function(){const _0x74f9be=_0x3179b7;logger[_0x74f9be('0x1')](_0x74f9be('0xc'),_0x18eaaf,_0xad221c[_0x74f9be('0x0')](','),_0x1fd69a);})[_0x3179b7('0x1e')](function(_0x1833c8){const _0x53ca9a=_0x3179b7;logger[_0x53ca9a('0x1')](JSON[_0x53ca9a('0x11')](_0x1833c8));});});},Migration['prototype'][_0x4534b1('0x6')]=function(_0x20d413,_0x5da473){const _0x4a8e63=_0x4534b1,_0x3fa704=this;this[_0x4a8e63('0x16')][_0x4a8e63('0x1b')](function(){const _0x313680=_0x4a8e63;return _0x3fa704['queryInterface']['removeIndex'](_0x20d413,_0x5da473)[_0x313680('0x4')](function(){const _0x197f0c=_0x313680;logger['info'](_0x197f0c('0x10'),_0x20d413,_0x5da473);})[_0x313680('0x1e')](function(_0x551c00){const _0x87ab7f=_0x313680;logger[_0x87ab7f('0x1')](JSON['stringify'](_0x551c00));});});},Migration['prototype'][_0x4534b1('0xd')]=function(_0x4c7c19){const _0x4ec355=_0x4534b1,_0x3b675a=this;this[_0x4ec355('0x16')][_0x4ec355('0x1b')](function(){const _0x804c45=_0x4ec355;return _0x3b675a[_0x804c45('0x7')]['sequelize'][_0x804c45('0xd')](_0x4c7c19)[_0x804c45('0x4')](function(){const _0x5f4170=_0x804c45;logger['info'](_0x5f4170('0x15'),_0x4c7c19);})[_0x804c45('0x1e')](function(_0x54a7a7){const _0x4c09ec=_0x804c45;logger[_0x4c09ec('0x1')](JSON[_0x4c09ec('0x11')](_0x54a7a7));});});},Migration['prototype'][_0x4534b1('0x19')]=function(_0x5757bc,_0x43c4c6){const _0x2d5306=this;this['sequence']['enqueue'](function(){const _0x3c11d5=a965_0x3146;return _0x2d5306[_0x3c11d5('0x7')][_0x3c11d5('0x19')](_0x5757bc,_0x43c4c6)[_0x3c11d5('0x4')](function(){const _0x4636ae=_0x3c11d5;logger[_0x4636ae('0x1')](_0x4636ae('0xb'),_0x43c4c6,_0x5757bc);})[_0x3c11d5('0x1e')](function(_0x1a10d6){const _0x541a6e=_0x3c11d5;logger[_0x541a6e('0x1')](util['inspect'](_0x1a10d6,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4534b1('0x2')]=function(_0x322ca0,_0x2dcc4a,_0x4b20cb){const _0x305746=_0x4534b1,_0x51d334=this;this[_0x305746('0x16')][_0x305746('0x1b')](function(){const _0x645924=_0x305746;return _0x51d334[_0x645924('0x7')][_0x645924('0x2')](_0x322ca0,_0x2dcc4a,_0x4b20cb)[_0x645924('0x4')](function(){const _0x1de8fe=_0x645924;logger[_0x1de8fe('0x1')](_0x1de8fe('0x17'),_0x2dcc4a,_0x4b20cb,_0x322ca0);})['catch'](function(_0x13f869){const _0xd3ccc1=_0x645924;logger[_0xd3ccc1('0x1')](util[_0xd3ccc1('0xf')](_0x13f869,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4534b1('0x5')]=function(_0x400718){const _0x211ee3=_0x4534b1;this[_0x211ee3('0x16')][_0x211ee3('0x1b')](function(){return _0x400718();});},module[_0x4534b1('0x9')]={'up':function(_0xb8f308){return new Promise(function(_0x467bd8){const _0x41a111=a965_0x3146,_0x41fe19=new Migration(_0xb8f308);_0x41fe19[_0x41a111('0x5')](_0x467bd8);});},'down':function(){}};
\ No newline at end of file
+const a965_0x272b=['catch','then','addColumn','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence','dropTable','addIndex\x20%s\x20%s\x20%s','table\x20dropped\x20%s','exports','tail','join','prototype','sequelize','addIndex','queryInterface','changeColumn','query\x20%s','util','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s','renameColumn','info','final','migration','enqueue','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x4795b0,_0x272b6f){const _0x3d5ef0=function(_0x1a17f6){while(--_0x1a17f6){_0x4795b0['push'](_0x4795b0['shift']());}};_0x3d5ef0(++_0x272b6f);}(a965_0x272b,0x184));const a965_0x3d5e=function(_0x4795b0,_0x272b6f){_0x4795b0=_0x4795b0-0x0;let _0x3d5ef0=a965_0x272b[_0x4795b0];return _0x3d5ef0;};const _0x41f5d7=a965_0x3d5e;'use strict';const util=require(_0x41f5d7('0x16')),logger=require('../config/logger')(_0x41f5d7('0x0')),Sequence=function(){};Sequence[_0x41f5d7('0x10')][_0x41f5d7('0x1')]=function(_0x1a17f6){const _0x2c3e66=_0x41f5d7;this['tail']=this['tail']?this[_0x2c3e66('0xe')]['finally'](_0x1a17f6):_0x1a17f6();};const Migration=function(_0x1a0284){const _0x1e7c5d=_0x41f5d7;this[_0x1e7c5d('0x13')]=_0x1a0284,this[_0x1e7c5d('0x9')]=new Sequence();};Migration[_0x41f5d7('0x10')]['changeColumn']=function(_0x4ef67b,_0x5a4e8d,_0x36ac2f){const _0x29bb9e=this;this['sequence']['enqueue'](function(){const _0x10d24c=a965_0x3d5e;return _0x29bb9e['queryInterface'][_0x10d24c('0x14')](_0x4ef67b,_0x5a4e8d,_0x36ac2f)[_0x10d24c('0x5')](function(){const _0x4793cf=_0x10d24c;logger[_0x4793cf('0x1a')](_0x4793cf('0x8'),_0x5a4e8d,_0x4ef67b);})[_0x10d24c('0x4')](function(_0x43015e){const _0x1f6c0d=_0x10d24c;logger[_0x1f6c0d('0x1a')](JSON[_0x1f6c0d('0x2')](_0x43015e));});});},Migration[_0x41f5d7('0x10')][_0x41f5d7('0x6')]=function(_0x54d5b0,_0x4ed981,_0x55508f){const _0x7140d4=_0x41f5d7,_0x395d32=this;this[_0x7140d4('0x9')][_0x7140d4('0x1')](function(){const _0x2da6f8=_0x7140d4;return _0x395d32[_0x2da6f8('0x13')]['addColumn'](_0x54d5b0,_0x4ed981,_0x55508f)[_0x2da6f8('0x5')](function(){const _0x1128f3=_0x2da6f8;logger[_0x1128f3('0x1a')]('Added\x20column\x20%s\x20to\x20%s',_0x4ed981,_0x54d5b0);})[_0x2da6f8('0x4')](function(_0x1b6114){const _0x3d00a7=_0x2da6f8;logger[_0x3d00a7('0x1a')](JSON[_0x3d00a7('0x2')](_0x1b6114));});});},Migration['prototype']['dropTable']=function(_0x4a696c){const _0x18e93c=_0x41f5d7,_0x37578c=this;this[_0x18e93c('0x9')][_0x18e93c('0x1')](function(){const _0x37e2af=_0x18e93c;return _0x37578c['queryInterface'][_0x37e2af('0xa')](_0x4a696c,{'force':!![]})['then'](function(){const _0x43e36e=_0x37e2af;logger[_0x43e36e('0x1a')](_0x43e36e('0xc'),_0x4a696c);})[_0x37e2af('0x4')](function(_0x348a39){const _0x6cbd67=_0x37e2af;logger[_0x6cbd67('0x1a')](JSON[_0x6cbd67('0x2')](_0x348a39));});});},Migration[_0x41f5d7('0x10')]['addIndex']=function(_0x581277,_0x165f8c,_0x24accc){const _0x4c6a46=_0x41f5d7,_0xa4c455=this;this[_0x4c6a46('0x9')]['enqueue'](function(){const _0x46bf92=_0x4c6a46;return _0xa4c455[_0x46bf92('0x13')][_0x46bf92('0x12')](_0x581277,_0x165f8c,{'indexName':_0x24accc})['then'](function(){const _0x2c5dc5=_0x46bf92;logger['info'](_0x2c5dc5('0xb'),_0x581277,_0x165f8c[_0x2c5dc5('0xf')](','),_0x24accc);})['catch'](function(_0x39a47d){const _0x8965a4=_0x46bf92;logger[_0x8965a4('0x1a')](JSON['stringify'](_0x39a47d));});});},Migration[_0x41f5d7('0x10')]['removeIndex']=function(_0x488172,_0x272be0){const _0x5b8417=_0x41f5d7,_0x578a41=this;this[_0x5b8417('0x9')]['enqueue'](function(){const _0x296a16=_0x5b8417;return _0x578a41[_0x296a16('0x13')]['removeIndex'](_0x488172,_0x272be0)[_0x296a16('0x5')](function(){const _0x2d1977=_0x296a16;logger[_0x2d1977('0x1a')](_0x2d1977('0x18'),_0x488172,_0x272be0);})[_0x296a16('0x4')](function(_0x806f86){const _0xb120f4=_0x296a16;logger[_0xb120f4('0x1a')](JSON[_0xb120f4('0x2')](_0x806f86));});});},Migration[_0x41f5d7('0x10')]['query']=function(_0x3612d2){const _0x4d6d6f=_0x41f5d7,_0x2a3792=this;this[_0x4d6d6f('0x9')][_0x4d6d6f('0x1')](function(){const _0x1e4074=_0x4d6d6f;return _0x2a3792[_0x1e4074('0x13')][_0x1e4074('0x11')]['query'](_0x3612d2)[_0x1e4074('0x5')](function(){const _0x3c5b35=_0x1e4074;logger[_0x3c5b35('0x1a')](_0x3c5b35('0x15'),_0x3612d2);})[_0x1e4074('0x4')](function(_0x44898d){const _0x2ab037=_0x1e4074;logger[_0x2ab037('0x1a')](JSON[_0x2ab037('0x2')](_0x44898d));});});},Migration[_0x41f5d7('0x10')]['removeColumn']=function(_0x46b1ae,_0x1d505){const _0x2edc60=_0x41f5d7,_0x3262a8=this;this['sequence'][_0x2edc60('0x1')](function(){const _0x46dd94=_0x2edc60;return _0x3262a8[_0x46dd94('0x13')]['removeColumn'](_0x46b1ae,_0x1d505)[_0x46dd94('0x5')](function(){const _0x4ffc7e=_0x46dd94;logger[_0x4ffc7e('0x1a')](_0x4ffc7e('0x17'),_0x1d505,_0x46b1ae);})[_0x46dd94('0x4')](function(_0x31a2db){const _0x270984=_0x46dd94;logger['info'](util[_0x270984('0x7')](_0x31a2db,{'showHidden':![],'depth':null}));});});},Migration[_0x41f5d7('0x10')][_0x41f5d7('0x19')]=function(_0x511406,_0x421dd9,_0x549f74){const _0x3061cc=_0x41f5d7,_0x5421e5=this;this['sequence'][_0x3061cc('0x1')](function(){const _0x55ac1e=_0x3061cc;return _0x5421e5[_0x55ac1e('0x13')][_0x55ac1e('0x19')](_0x511406,_0x421dd9,_0x549f74)[_0x55ac1e('0x5')](function(){const _0x155cd2=_0x55ac1e;logger[_0x155cd2('0x1a')](_0x155cd2('0x3'),_0x421dd9,_0x549f74,_0x511406);})[_0x55ac1e('0x4')](function(_0x4fd593){const _0x3024a0=_0x55ac1e;logger[_0x3024a0('0x1a')](util[_0x3024a0('0x7')](_0x4fd593,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x41f5d7('0x1b')]=function(_0x3dedfb){const _0x381072=_0x41f5d7;this[_0x381072('0x9')][_0x381072('0x1')](function(){return _0x3dedfb();});},module[_0x41f5d7('0xd')]={'up':function(_0x5a9b08){return new Promise(function(_0x3d263c){const _0x5ba494=a965_0x3d5e,_0x54f4bd=new Migration(_0x5a9b08);_0x54f4bd[_0x5ba494('0x1b')](_0x3d263c);});},'down':function(){}};
\ No newline at end of file