Built motion from commit f861bcb808219e66da88ba48b61bddb35224a65e. Version 3.0.0...
[motion-next.git] / server / migrations / 2.5.14.js
1 'use strict';const a1191_0xbe60=['util','info','Added\x20column\x20%s\x20to\x20%s','query\x20%s','indexName','indicesType','23SYVJbb','11YfHNvC','1340937ZzmQtL','inspect','86143VUgOZZ','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequelize','983037iotbug','../config/logger','final','finally','removeIndex\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','enqueue','removeColumn','prototype','stringify','table\x20dropped\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','catch','addIndex','query','sequence','147924fhIijG','renameColumn','queryInterface','32046FstscY','then','join','tail','dropTable','addColumn','resolve','changeColumn','1611826eWHdtO','1349100iWZzUq','exports'];const a1191_0x1835=function(_0xb3448f,_0x166e6a){_0xb3448f=_0xb3448f-0x103;let _0xbe60c6=a1191_0xbe60[_0xb3448f];return _0xbe60c6;};const a1191_0x4ddfdd=a1191_0x1835;(function(_0x2da54b,_0x17beb1){const _0x2fa4ef=a1191_0x1835;while(!![]){try{const _0x3d60d3=-parseInt(_0x2fa4ef(0x12b))+-parseInt(_0x2fa4ef(0x108))+-parseInt(_0x2fa4ef(0x109))+-parseInt(_0x2fa4ef(0x113))+-parseInt(_0x2fa4ef(0x115))*-parseInt(_0x2fa4ef(0x112))+parseInt(_0x2fa4ef(0x118))+parseInt(_0x2fa4ef(0x111))*parseInt(_0x2fa4ef(0x128));if(_0x3d60d3===_0x17beb1)break;else _0x2da54b['push'](_0x2da54b['shift']());}catch(_0x23bfd0){_0x2da54b['push'](_0x2da54b['shift']());}}}(a1191_0xbe60,0xf3e29));const util=require(a1191_0x4ddfdd(0x10b)),logger=require(a1191_0x4ddfdd(0x119))('migration'),Sequence=function(){};Sequence[a1191_0x4ddfdd(0x120)][a1191_0x4ddfdd(0x11e)]=function(_0x22f518){const _0xedb45f=a1191_0x4ddfdd;this[_0xedb45f(0x103)]=this[_0xedb45f(0x103)]?this[_0xedb45f(0x103)][_0xedb45f(0x11b)](_0x22f518):_0x22f518();};const Migration=function(_0x5533bb){const _0x1b8f28=a1191_0x4ddfdd;this[_0x1b8f28(0x12a)]=_0x5533bb,this[_0x1b8f28(0x127)]=new Sequence();};Migration[a1191_0x4ddfdd(0x120)][a1191_0x4ddfdd(0x107)]=function(_0x58cf74,_0x28c9b6,_0x26eb50){const _0x2374e6=a1191_0x4ddfdd,_0x19506a=this;this[_0x2374e6(0x127)]['enqueue'](function(){const _0x4803f8=_0x2374e6;return _0x19506a['queryInterface'][_0x4803f8(0x107)](_0x58cf74,_0x28c9b6,_0x26eb50)[_0x4803f8(0x12c)](function(){const _0x2f9d57=_0x4803f8;logger[_0x2f9d57(0x10c)](_0x2f9d57(0x123),_0x28c9b6,_0x58cf74);})[_0x4803f8(0x124)](function(_0x236186){const _0x131d46=_0x4803f8;logger[_0x131d46(0x10c)](JSON[_0x131d46(0x121)](_0x236186));});});},Migration[a1191_0x4ddfdd(0x120)]['addColumn']=function(_0x5afa15,_0x82e936,_0x4a70db){const _0x6bb935=this;this['sequence']['enqueue'](function(){const _0x45ca2b=a1191_0x1835;return _0x6bb935[_0x45ca2b(0x12a)][_0x45ca2b(0x105)](_0x5afa15,_0x82e936,_0x4a70db)[_0x45ca2b(0x12c)](function(){const _0x321ab8=_0x45ca2b;logger[_0x321ab8(0x10c)](_0x321ab8(0x10d),_0x82e936,_0x5afa15);})[_0x45ca2b(0x124)](function(_0x1c971b){const _0x16a5e8=_0x45ca2b;logger[_0x16a5e8(0x10c)](JSON[_0x16a5e8(0x121)](_0x1c971b));});});},Migration['prototype']['dropTable']=function(_0x1a1880){const _0x1d2a89=a1191_0x4ddfdd,_0x36929e=this;this['sequence'][_0x1d2a89(0x11e)](function(){const _0x159b8e=_0x1d2a89;return _0x36929e[_0x159b8e(0x12a)][_0x159b8e(0x104)](_0x1a1880,{'force':!![]})[_0x159b8e(0x12c)](function(){const _0x387eef=_0x159b8e;logger[_0x387eef(0x10c)](_0x387eef(0x122),_0x1a1880);})[_0x159b8e(0x124)](function(_0x3c8a2a){const _0x169922=_0x159b8e;logger[_0x169922(0x10c)](JSON[_0x169922(0x121)](_0x3c8a2a));});});},Migration[a1191_0x4ddfdd(0x120)]['addIndex']=function(_0x5f37f5,_0x4ee5ee,_0x26f7c4){const _0x33c24c=a1191_0x4ddfdd,_0x5389be=this;this[_0x33c24c(0x127)][_0x33c24c(0x11e)](function(){const _0x51652b=_0x33c24c;return _0x5389be['queryInterface'][_0x51652b(0x125)](_0x5f37f5,_0x4ee5ee,{'indexName':_0x26f7c4[_0x51652b(0x10f)],'indicesType':_0x26f7c4['indicesType']})[_0x51652b(0x12c)](function(){const _0x116678=_0x51652b;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x5f37f5,_0x4ee5ee[_0x116678(0x12d)](','),_0x26f7c4[_0x116678(0x10f)],_0x26f7c4[_0x116678(0x110)]);})[_0x51652b(0x124)](function(_0x2f3e52){const _0x586a48=_0x51652b;logger['info'](JSON[_0x586a48(0x121)](_0x2f3e52));});});},Migration[a1191_0x4ddfdd(0x120)]['removeIndex']=function(_0x529d22,_0x24bd7b){const _0x3bed00=a1191_0x4ddfdd,_0x580023=this;this[_0x3bed00(0x127)][_0x3bed00(0x11e)](function(){const _0x5a4c6f=_0x3bed00;return _0x580023[_0x5a4c6f(0x12a)]['removeIndex'](_0x529d22,_0x24bd7b)['then'](function(){const _0x3b00c4=_0x5a4c6f;logger[_0x3b00c4(0x10c)](_0x3b00c4(0x11c),_0x529d22,_0x24bd7b);})[_0x5a4c6f(0x124)](function(_0x51db74){const _0x39d2ed=_0x5a4c6f;logger[_0x39d2ed(0x10c)](JSON[_0x39d2ed(0x121)](_0x51db74));});});},Migration[a1191_0x4ddfdd(0x120)]['query']=function(_0x2798ce){const _0x3b08bd=a1191_0x4ddfdd,_0x5e159b=this;this[_0x3b08bd(0x127)]['enqueue'](function(){const _0x455964=_0x3b08bd;return _0x5e159b['queryInterface'][_0x455964(0x117)][_0x455964(0x126)](_0x2798ce)[_0x455964(0x12c)](function(){const _0x2eb265=_0x455964;logger[_0x2eb265(0x10c)](_0x2eb265(0x10e),_0x2798ce);})['catch'](function(_0x89eaf3){const _0x1e6c23=_0x455964;logger[_0x1e6c23(0x10c)](JSON[_0x1e6c23(0x121)](_0x89eaf3));});});},Migration[a1191_0x4ddfdd(0x120)][a1191_0x4ddfdd(0x11f)]=function(_0x2d6c67,_0x15b2fe){const _0x389ca3=a1191_0x4ddfdd,_0x1f9a08=this;this[_0x389ca3(0x127)]['enqueue'](function(){const _0x35c8b2=_0x389ca3;return _0x1f9a08['queryInterface'][_0x35c8b2(0x11f)](_0x2d6c67,_0x15b2fe)[_0x35c8b2(0x12c)](function(){const _0x13027d=_0x35c8b2;logger[_0x13027d(0x10c)](_0x13027d(0x11d),_0x15b2fe,_0x2d6c67);})['catch'](function(_0x197d21){const _0x143ee2=_0x35c8b2;logger[_0x143ee2(0x10c)](util[_0x143ee2(0x114)](_0x197d21,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1191_0x4ddfdd(0x129)]=function(_0x51d960,_0x34fab1,_0x442de5){const _0x49ea41=a1191_0x4ddfdd,_0x3b8f08=this;this[_0x49ea41(0x127)][_0x49ea41(0x11e)](function(){const _0x3dc29a=_0x49ea41;return _0x3b8f08[_0x3dc29a(0x12a)][_0x3dc29a(0x129)](_0x51d960,_0x34fab1,_0x442de5)[_0x3dc29a(0x12c)](function(){const _0x295038=_0x3dc29a;logger['info'](_0x295038(0x116),_0x34fab1,_0x442de5,_0x51d960);})['catch'](function(_0x17dc1c){const _0x522605=_0x3dc29a;logger[_0x522605(0x10c)](util[_0x522605(0x114)](_0x17dc1c,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x407893){const _0x457e01=a1191_0x4ddfdd;this[_0x457e01(0x127)][_0x457e01(0x11e)](function(){return _0x407893();});},module[a1191_0x4ddfdd(0x10a)]={'up':function(_0x281d1e){return new Promise(function(_0x8233ce){const _0x53e933=a1191_0x1835,_0x200a5a=new Migration(_0x281d1e);_0x200a5a[_0x53e933(0x11a)](_0x8233ce);});},'down':function(){const _0x5cdacf=a1191_0x4ddfdd;return Promise[_0x5cdacf(0x106)]();}};