Built motion from commit e493b9a4954b50a8ee6d0034ba3601cd210d989d. Version 3.0.0...
[motion-next.git] / server / migrations / 2.5.3.js
index 3b5d4f2..f19f8cb 100644 (file)
@@ -1 +1 @@
-const a1180_0x49f4=['final','catch','prototype','then','color_button','chat_websites','stringify','STRING','removeIndex','renameColumn','indicesType','Removed\x20column\x20%s\x20from\x20%s','enqueue','query','removeIndex\x20%s\x20%s','inspect','changeColumn','dropTable','tail','indexName','util','info','addIndex','join','addIndex\x20%s\x20%s\x20%s\x20[%s]','removeColumn','queryInterface','migration','color','sequence','#011F6A','sequelize','table\x20dropped\x20%s'];(function(_0x59326b,_0x5d3cf1){const _0x49f4ab=function(_0x5bebe5){while(--_0x5bebe5){_0x59326b['push'](_0x59326b['shift']());}};_0x49f4ab(++_0x5d3cf1);}(a1180_0x49f4,0xcb));const a1180_0x5beb=function(_0x59326b,_0x5d3cf1){_0x59326b=_0x59326b-0x1e8;let _0x49f4ab=a1180_0x49f4[_0x59326b];return _0x49f4ab;};const a1180_0x1c21bc=a1180_0x5beb;'use strict';const util=require(a1180_0x1c21bc(0x1f7)),logger=require('../config/logger')(a1180_0x1c21bc(0x1fe)),Sequence=function(){};Sequence[a1180_0x1c21bc(0x206)]['enqueue']=function(_0x9bdb7c){const _0x6e0b77=a1180_0x1c21bc;this['tail']=this[_0x6e0b77(0x1f5)]?this[_0x6e0b77(0x1f5)]['finally'](_0x9bdb7c):_0x9bdb7c();};const Migration=function(_0x590fd2){const _0xc06775=a1180_0x1c21bc;this[_0xc06775(0x1fd)]=_0x590fd2,this[_0xc06775(0x200)]=new Sequence();};Migration[a1180_0x1c21bc(0x206)][a1180_0x1c21bc(0x1f3)]=function(_0x4c6902,_0x61cf87,_0x1bdc96){const _0x3be5f7=a1180_0x1c21bc,_0x5c5f61=this;this[_0x3be5f7(0x200)][_0x3be5f7(0x1ef)](function(){const _0x3f95e6=_0x3be5f7;return _0x5c5f61[_0x3f95e6(0x1fd)][_0x3f95e6(0x1f3)](_0x4c6902,_0x61cf87,_0x1bdc96)[_0x3f95e6(0x207)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x61cf87,_0x4c6902);})['catch'](function(_0x4ca74a){const _0x2256d5=_0x3f95e6;logger[_0x2256d5(0x1f8)](JSON[_0x2256d5(0x1e9)](_0x4ca74a));});});},Migration[a1180_0x1c21bc(0x206)]['addColumn']=function(_0x2a2b81,_0x2ed648,_0x47ef93){const _0x492f82=a1180_0x1c21bc,_0x4dea4f=this;this['sequence'][_0x492f82(0x1ef)](function(){const _0x427218=_0x492f82;return _0x4dea4f[_0x427218(0x1fd)]['addColumn'](_0x2a2b81,_0x2ed648,_0x47ef93)[_0x427218(0x207)](function(){const _0x374cde=_0x427218;logger[_0x374cde(0x1f8)]('Added\x20column\x20%s\x20to\x20%s',_0x2ed648,_0x2a2b81);})['catch'](function(_0x4406d2){const _0x10a7ee=_0x427218;logger[_0x10a7ee(0x1f8)](JSON[_0x10a7ee(0x1e9)](_0x4406d2));});});},Migration[a1180_0x1c21bc(0x206)][a1180_0x1c21bc(0x1f4)]=function(_0xc168c7){const _0x4833ba=a1180_0x1c21bc,_0x1015eb=this;this[_0x4833ba(0x200)][_0x4833ba(0x1ef)](function(){const _0x2ce8e4=_0x4833ba;return _0x1015eb[_0x2ce8e4(0x1fd)]['dropTable'](_0xc168c7,{'force':!![]})[_0x2ce8e4(0x207)](function(){const _0x489350=_0x2ce8e4;logger[_0x489350(0x1f8)](_0x489350(0x203),_0xc168c7);})[_0x2ce8e4(0x205)](function(_0x18db6d){logger['info'](JSON['stringify'](_0x18db6d));});});},Migration[a1180_0x1c21bc(0x206)][a1180_0x1c21bc(0x1f9)]=function(_0x4c197f,_0x5e7371,_0x3b4198){const _0x107eb5=a1180_0x1c21bc,_0x40e08d=this;this[_0x107eb5(0x200)]['enqueue'](function(){const _0x4fea3e=_0x107eb5;return _0x40e08d[_0x4fea3e(0x1fd)]['addIndex'](_0x4c197f,_0x5e7371,{'indexName':_0x3b4198[_0x4fea3e(0x1f6)],'indicesType':_0x3b4198[_0x4fea3e(0x1ed)]})[_0x4fea3e(0x207)](function(){const _0x269bd3=_0x4fea3e;logger[_0x269bd3(0x1f8)](_0x269bd3(0x1fb),_0x4c197f,_0x5e7371[_0x269bd3(0x1fa)](','),_0x3b4198[_0x269bd3(0x1f6)],_0x3b4198[_0x269bd3(0x1ed)]);})[_0x4fea3e(0x205)](function(_0x2c947b){const _0x5905ce=_0x4fea3e;logger[_0x5905ce(0x1f8)](JSON[_0x5905ce(0x1e9)](_0x2c947b));});});},Migration[a1180_0x1c21bc(0x206)]['removeIndex']=function(_0x853deb,_0x49f20d){const _0x4aafa0=a1180_0x1c21bc,_0x3c173f=this;this['sequence'][_0x4aafa0(0x1ef)](function(){const _0x2ada8f=_0x4aafa0;return _0x3c173f[_0x2ada8f(0x1fd)][_0x2ada8f(0x1eb)](_0x853deb,_0x49f20d)[_0x2ada8f(0x207)](function(){const _0x1d6f02=_0x2ada8f;logger[_0x1d6f02(0x1f8)](_0x1d6f02(0x1f1),_0x853deb,_0x49f20d);})[_0x2ada8f(0x205)](function(_0x4f45c3){const _0x201637=_0x2ada8f;logger[_0x201637(0x1f8)](JSON[_0x201637(0x1e9)](_0x4f45c3));});});},Migration['prototype'][a1180_0x1c21bc(0x1f0)]=function(_0x444980){const _0xb1e480=a1180_0x1c21bc,_0x21b021=this;this['sequence'][_0xb1e480(0x1ef)](function(){const _0x9b6452=_0xb1e480;return _0x21b021[_0x9b6452(0x1fd)][_0x9b6452(0x202)][_0x9b6452(0x1f0)](_0x444980)[_0x9b6452(0x207)](function(){const _0xcadc90=_0x9b6452;logger[_0xcadc90(0x1f8)]('query\x20%s',_0x444980);})[_0x9b6452(0x205)](function(_0x3064b8){const _0x3f5294=_0x9b6452;logger[_0x3f5294(0x1f8)](JSON[_0x3f5294(0x1e9)](_0x3064b8));});});},Migration[a1180_0x1c21bc(0x206)][a1180_0x1c21bc(0x1fc)]=function(_0x358399,_0x357289){const _0x3250e5=a1180_0x1c21bc,_0x1ce783=this;this[_0x3250e5(0x200)][_0x3250e5(0x1ef)](function(){const _0x6692a4=_0x3250e5;return _0x1ce783[_0x6692a4(0x1fd)][_0x6692a4(0x1fc)](_0x358399,_0x357289)[_0x6692a4(0x207)](function(){const _0x1909d1=_0x6692a4;logger[_0x1909d1(0x1f8)](_0x1909d1(0x1ee),_0x357289,_0x358399);})[_0x6692a4(0x205)](function(_0x4e7341){const _0x58eed8=_0x6692a4;logger[_0x58eed8(0x1f8)](util[_0x58eed8(0x1f2)](_0x4e7341,{'showHidden':![],'depth':null}));});});},Migration[a1180_0x1c21bc(0x206)][a1180_0x1c21bc(0x1ec)]=function(_0x374acd,_0xa7fe7d,_0x93151c){const _0x4a5385=a1180_0x1c21bc,_0x78c03c=this;this['sequence'][_0x4a5385(0x1ef)](function(){const _0x58c970=_0x4a5385;return _0x78c03c['queryInterface']['renameColumn'](_0x374acd,_0xa7fe7d,_0x93151c)['then'](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0xa7fe7d,_0x93151c,_0x374acd);})[_0x58c970(0x205)](function(_0xb0a9){const _0x30fc7d=_0x58c970;logger['info'](util[_0x30fc7d(0x1f2)](_0xb0a9,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1180_0x1c21bc(0x204)]=function(_0x59305d){const _0x298c30=a1180_0x1c21bc;this[_0x298c30(0x200)][_0x298c30(0x1ef)](function(){return _0x59305d();});},module['exports']={'up':function(_0x264269,_0x377903){return new Promise(function(_0x41290f){const _0x3998fc=a1180_0x5beb,_0x4081c8=new Migration(_0x264269);_0x4081c8[_0x3998fc(0x1f3)](_0x3998fc(0x1e8),_0x3998fc(0x1ff),{'type':_0x377903[_0x3998fc(0x1ea)],'allowNull':![],'defaultValue':_0x3998fc(0x201),'validate':{'notEmpty':!![]}}),_0x4081c8[_0x3998fc(0x1f3)](_0x3998fc(0x1e8),_0x3998fc(0x208),{'type':_0x377903[_0x3998fc(0x1ea)],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}}),_0x4081c8[_0x3998fc(0x204)](_0x41290f);});},'down':function(){}};
\ No newline at end of file
+'use strict';const a1195_0x584b=['1018874meNyRU','query','join','addIndex','438430RephnU','renameColumn','enqueue','table\x20dropped\x20%s','query\x20%s','5rhFUWP','then','indicesType','exports','removeIndex\x20%s\x20%s','STRING','205366BvvLxc','final','addIndex\x20%s\x20%s\x20%s\x20[%s]','catch','indexName','sequence','prototype','chat_websites','5JWEIxw','1xPeRDt','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','#011F6A','stringify','990715IYSPaZ','info','Changed\x20column\x20%s\x20in\x20table\x20%s','migration','queryInterface','110169pCxrUJ','inspect','color','15058IPMOfF','color_button','util','removeColumn','tail','removeIndex','addColumn','changeColumn','resolve','629983dJwytB','finally','1gUhyLr'];const a1195_0x1484=function(_0x10f1e3,_0x11a2d3){_0x10f1e3=_0x10f1e3-0x16b;let _0x584b2e=a1195_0x584b[_0x10f1e3];return _0x584b2e;};const a1195_0x2a3fee=a1195_0x1484;(function(_0x4207b6,_0x52d57f){const _0xac85f5=a1195_0x1484;while(!![]){try{const _0x296584=-parseInt(_0xac85f5(0x175))+-parseInt(_0xac85f5(0x186))+-parseInt(_0xac85f5(0x18d))+parseInt(_0xac85f5(0x17d))*parseInt(_0xac85f5(0x171))+-parseInt(_0xac85f5(0x198))*-parseInt(_0xac85f5(0x170))+-parseInt(_0xac85f5(0x188))*-parseInt(_0xac85f5(0x189))+parseInt(_0xac85f5(0x17a))*parseInt(_0xac85f5(0x192));if(_0x296584===_0x52d57f)break;else _0x4207b6['push'](_0x4207b6['shift']());}catch(_0x53773a){_0x4207b6['push'](_0x4207b6['shift']());}}}(a1195_0x584b,0x86e1f));const util=require(a1195_0x2a3fee(0x17f)),logger=require('@config/logger')(a1195_0x2a3fee(0x178)),Sequence=function(){};Sequence[a1195_0x2a3fee(0x16e)][a1195_0x2a3fee(0x18f)]=function(_0x5a1a35){const _0x21a85d=a1195_0x2a3fee;this[_0x21a85d(0x181)]=this[_0x21a85d(0x181)]?this[_0x21a85d(0x181)][_0x21a85d(0x187)](_0x5a1a35):_0x5a1a35();};const Migration=function(_0x1fd546){const _0x4ac944=a1195_0x2a3fee;this['queryInterface']=_0x1fd546,this[_0x4ac944(0x16d)]=new Sequence();};Migration[a1195_0x2a3fee(0x16e)]['changeColumn']=function(_0x5a4580,_0x2aa54d,_0xa713ed){const _0x298679=a1195_0x2a3fee,_0x4024ab=this;this[_0x298679(0x16d)][_0x298679(0x18f)](function(){const _0x22115f=_0x298679;return _0x4024ab[_0x22115f(0x179)]['changeColumn'](_0x5a4580,_0x2aa54d,_0xa713ed)[_0x22115f(0x193)](function(){const _0x50543e=_0x22115f;logger['info'](_0x50543e(0x177),_0x2aa54d,_0x5a4580);})['catch'](function(_0x23678a){const _0x3caff5=_0x22115f;logger[_0x3caff5(0x176)](JSON[_0x3caff5(0x174)](_0x23678a));});});},Migration[a1195_0x2a3fee(0x16e)][a1195_0x2a3fee(0x183)]=function(_0x677efd,_0x468115,_0xdec768){const _0x260e91=a1195_0x2a3fee,_0x38cf08=this;this[_0x260e91(0x16d)][_0x260e91(0x18f)](function(){const _0x3f0064=_0x260e91;return _0x38cf08['queryInterface'][_0x3f0064(0x183)](_0x677efd,_0x468115,_0xdec768)[_0x3f0064(0x193)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x468115,_0x677efd);})[_0x3f0064(0x16b)](function(_0x2de1be){const _0x3cabb2=_0x3f0064;logger[_0x3cabb2(0x176)](JSON[_0x3cabb2(0x174)](_0x2de1be));});});},Migration[a1195_0x2a3fee(0x16e)]['dropTable']=function(_0x34d17f){const _0xe107fe=a1195_0x2a3fee,_0x16328d=this;this[_0xe107fe(0x16d)][_0xe107fe(0x18f)](function(){const _0x3c7925=_0xe107fe;return _0x16328d[_0x3c7925(0x179)]['dropTable'](_0x34d17f,{'force':!![]})[_0x3c7925(0x193)](function(){const _0x33e18d=_0x3c7925;logger[_0x33e18d(0x176)](_0x33e18d(0x190),_0x34d17f);})['catch'](function(_0x844ce3){const _0x4a8aa3=_0x3c7925;logger[_0x4a8aa3(0x176)](JSON[_0x4a8aa3(0x174)](_0x844ce3));});});},Migration[a1195_0x2a3fee(0x16e)][a1195_0x2a3fee(0x18c)]=function(_0x162571,_0x285f6f,_0x3cc379){const _0x45c77f=a1195_0x2a3fee,_0x387303=this;this[_0x45c77f(0x16d)][_0x45c77f(0x18f)](function(){const _0x3f0b0f=_0x45c77f;return _0x387303[_0x3f0b0f(0x179)][_0x3f0b0f(0x18c)](_0x162571,_0x285f6f,{'indexName':_0x3cc379[_0x3f0b0f(0x16c)],'indicesType':_0x3cc379[_0x3f0b0f(0x194)]})[_0x3f0b0f(0x193)](function(){const _0x3adc90=_0x3f0b0f;logger[_0x3adc90(0x176)](_0x3adc90(0x19a),_0x162571,_0x285f6f[_0x3adc90(0x18b)](','),_0x3cc379[_0x3adc90(0x16c)],_0x3cc379[_0x3adc90(0x194)]);})['catch'](function(_0x25f90d){const _0x3aa550=_0x3f0b0f;logger['info'](JSON[_0x3aa550(0x174)](_0x25f90d));});});},Migration[a1195_0x2a3fee(0x16e)]['removeIndex']=function(_0x564fe4,_0x2bb452){const _0x52a6b1=a1195_0x2a3fee,_0xded3a9=this;this['sequence'][_0x52a6b1(0x18f)](function(){const _0x597cc9=_0x52a6b1;return _0xded3a9[_0x597cc9(0x179)][_0x597cc9(0x182)](_0x564fe4,_0x2bb452)[_0x597cc9(0x193)](function(){const _0xc34415=_0x597cc9;logger[_0xc34415(0x176)](_0xc34415(0x196),_0x564fe4,_0x2bb452);})['catch'](function(_0x567285){const _0x598fb2=_0x597cc9;logger[_0x598fb2(0x176)](JSON['stringify'](_0x567285));});});},Migration[a1195_0x2a3fee(0x16e)][a1195_0x2a3fee(0x18a)]=function(_0x188f4c){const _0x8621c8=a1195_0x2a3fee,_0x47f13a=this;this[_0x8621c8(0x16d)]['enqueue'](function(){const _0x2f1a36=_0x8621c8;return _0x47f13a['queryInterface']['sequelize'][_0x2f1a36(0x18a)](_0x188f4c)['then'](function(){const _0x59c2df=_0x2f1a36;logger[_0x59c2df(0x176)](_0x59c2df(0x191),_0x188f4c);})[_0x2f1a36(0x16b)](function(_0x50d517){const _0x9e411e=_0x2f1a36;logger['info'](JSON[_0x9e411e(0x174)](_0x50d517));});});},Migration[a1195_0x2a3fee(0x16e)][a1195_0x2a3fee(0x180)]=function(_0x9dc3b7,_0x1c9c5d){const _0x2c5488=a1195_0x2a3fee,_0x7e4b60=this;this[_0x2c5488(0x16d)][_0x2c5488(0x18f)](function(){const _0xf2c6c4=_0x2c5488;return _0x7e4b60[_0xf2c6c4(0x179)][_0xf2c6c4(0x180)](_0x9dc3b7,_0x1c9c5d)[_0xf2c6c4(0x193)](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x1c9c5d,_0x9dc3b7);})[_0xf2c6c4(0x16b)](function(_0x36f3ce){const _0x2055a3=_0xf2c6c4;logger[_0x2055a3(0x176)](util[_0x2055a3(0x17b)](_0x36f3ce,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1195_0x2a3fee(0x18e)]=function(_0x442fa5,_0x231957,_0x15787f){const _0xc45699=a1195_0x2a3fee,_0xef0cb7=this;this['sequence'][_0xc45699(0x18f)](function(){const _0x52bdf1=_0xc45699;return _0xef0cb7[_0x52bdf1(0x179)]['renameColumn'](_0x442fa5,_0x231957,_0x15787f)['then'](function(){const _0x557949=_0x52bdf1;logger[_0x557949(0x176)](_0x557949(0x172),_0x231957,_0x15787f,_0x442fa5);})[_0x52bdf1(0x16b)](function(_0xec47e4){const _0x336da3=_0x52bdf1;logger[_0x336da3(0x176)](util[_0x336da3(0x17b)](_0xec47e4,{'showHidden':![],'depth':null}));});});},Migration[a1195_0x2a3fee(0x16e)]['final']=function(_0x27e080){const _0x535313=a1195_0x2a3fee;this[_0x535313(0x16d)]['enqueue'](function(){return _0x27e080();});},module[a1195_0x2a3fee(0x195)]={'up':function(_0x1c5497,_0x3c7614){return new Promise(function(_0x856a02){const _0x339550=a1195_0x1484,_0x1dc22e=new Migration(_0x1c5497);_0x1dc22e[_0x339550(0x184)](_0x339550(0x16f),_0x339550(0x17c),{'type':_0x3c7614[_0x339550(0x197)],'allowNull':![],'defaultValue':_0x339550(0x173),'validate':{'notEmpty':!![]}}),_0x1dc22e[_0x339550(0x184)](_0x339550(0x16f),_0x339550(0x17e),{'type':_0x3c7614[_0x339550(0x197)],'allowNull':![],'defaultValue':_0x339550(0x173),'validate':{'notEmpty':!![]}}),_0x1dc22e[_0x339550(0x199)](_0x856a02);});},'down':function(){const _0x399681=a1195_0x2a3fee;return Promise[_0x399681(0x185)]();}};
\ No newline at end of file