Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.8.js
index b9d6bf1..0a82e00 100644 (file)
@@ -1 +1 @@
-const a1172_0x3a73=['exports','enqueue','final','addColumn','Removed\x20column\x20%s\x20from\x20%s','then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','util','join','prototype','addIndex','table\x20dropped\x20%s','inspect','indexName','query','dropTable','../config/logger','sequence','addIndex\x20%s\x20%s\x20%s\x20[%s]','renameColumn','tail','indicesType','queryInterface','finally','stringify','info','catch','changeColumn'];(function(_0x9e643a,_0x435706){const _0x3a735c=function(_0x529cab){while(--_0x529cab){_0x9e643a['push'](_0x9e643a['shift']());}};_0x3a735c(++_0x435706);}(a1172_0x3a73,0x1ce));const a1172_0x529c=function(_0x9e643a,_0x435706){_0x9e643a=_0x9e643a-0x139;let _0x3a735c=a1172_0x3a73[_0x9e643a];return _0x3a735c;};const a1172_0x419157=a1172_0x529c;'use strict';const util=require(a1172_0x419157(0x14e)),logger=require(a1172_0x419157(0x13b))('migration'),Sequence=function(){};Sequence['prototype'][a1172_0x419157(0x148)]=function(_0x1a2f70){const _0x3bc024=a1172_0x419157;this[_0x3bc024(0x13f)]=this['tail']?this[_0x3bc024(0x13f)][_0x3bc024(0x142)](_0x1a2f70):_0x1a2f70();};const Migration=function(_0x4a0855){const _0x467b42=a1172_0x419157;this[_0x467b42(0x141)]=_0x4a0855,this[_0x467b42(0x13c)]=new Sequence();};Migration[a1172_0x419157(0x150)][a1172_0x419157(0x146)]=function(_0x1fc61a,_0xd8dc6b,_0x30446f){const _0x61585b=a1172_0x419157,_0x3aa71c=this;this[_0x61585b(0x13c)][_0x61585b(0x148)](function(){const _0x5c7829=_0x61585b;return _0x3aa71c['queryInterface'][_0x5c7829(0x146)](_0x1fc61a,_0xd8dc6b,_0x30446f)['then'](function(){const _0xbd3733=_0x5c7829;logger[_0xbd3733(0x144)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xd8dc6b,_0x1fc61a);})[_0x5c7829(0x145)](function(_0x529e21){const _0x320af8=_0x5c7829;logger[_0x320af8(0x144)](JSON[_0x320af8(0x143)](_0x529e21));});});},Migration[a1172_0x419157(0x150)][a1172_0x419157(0x14a)]=function(_0x1e1b01,_0xf19eeb,_0x48c44a){const _0x38912c=a1172_0x419157,_0x3b7c29=this;this[_0x38912c(0x13c)][_0x38912c(0x148)](function(){const _0x220323=_0x38912c;return _0x3b7c29[_0x220323(0x141)][_0x220323(0x14a)](_0x1e1b01,_0xf19eeb,_0x48c44a)[_0x220323(0x14c)](function(){const _0x366389=_0x220323;logger[_0x366389(0x144)]('Added\x20column\x20%s\x20to\x20%s',_0xf19eeb,_0x1e1b01);})[_0x220323(0x145)](function(_0x11048e){const _0x3ca693=_0x220323;logger[_0x3ca693(0x144)](JSON[_0x3ca693(0x143)](_0x11048e));});});},Migration[a1172_0x419157(0x150)]['dropTable']=function(_0x252ec9){const _0x494ef9=a1172_0x419157,_0x535c9f=this;this[_0x494ef9(0x13c)][_0x494ef9(0x148)](function(){const _0x9776a1=_0x494ef9;return _0x535c9f[_0x9776a1(0x141)][_0x9776a1(0x13a)](_0x252ec9,{'force':!![]})['then'](function(){const _0x3ffd9f=_0x9776a1;logger['info'](_0x3ffd9f(0x152),_0x252ec9);})[_0x9776a1(0x145)](function(_0x1188e5){const _0x4d11ad=_0x9776a1;logger[_0x4d11ad(0x144)](JSON[_0x4d11ad(0x143)](_0x1188e5));});});},Migration[a1172_0x419157(0x150)][a1172_0x419157(0x151)]=function(_0x28e211,_0x223782,_0x2b7244){const _0x5a54eb=a1172_0x419157,_0x6ffc8d=this;this[_0x5a54eb(0x13c)][_0x5a54eb(0x148)](function(){const _0x3594b7=_0x5a54eb;return _0x6ffc8d[_0x3594b7(0x141)][_0x3594b7(0x151)](_0x28e211,_0x223782,{'indexName':_0x2b7244['indexName'],'indicesType':_0x2b7244['indicesType']})['then'](function(){const _0xc68fb5=_0x3594b7;logger[_0xc68fb5(0x144)](_0xc68fb5(0x13d),_0x28e211,_0x223782[_0xc68fb5(0x14f)](','),_0x2b7244[_0xc68fb5(0x154)],_0x2b7244[_0xc68fb5(0x140)]);})[_0x3594b7(0x145)](function(_0xf0b738){const _0x1677c2=_0x3594b7;logger[_0x1677c2(0x144)](JSON[_0x1677c2(0x143)](_0xf0b738));});});},Migration[a1172_0x419157(0x150)]['removeIndex']=function(_0x196c8d,_0x2a8bc8){const _0x101a45=a1172_0x419157,_0x285e58=this;this[_0x101a45(0x13c)][_0x101a45(0x148)](function(){const _0x3412f9=_0x101a45;return _0x285e58[_0x3412f9(0x141)]['removeIndex'](_0x196c8d,_0x2a8bc8)[_0x3412f9(0x14c)](function(){const _0x30f132=_0x3412f9;logger[_0x30f132(0x144)]('removeIndex\x20%s\x20%s',_0x196c8d,_0x2a8bc8);})[_0x3412f9(0x145)](function(_0x7afc7d){const _0x8ca518=_0x3412f9;logger[_0x8ca518(0x144)](JSON[_0x8ca518(0x143)](_0x7afc7d));});});},Migration[a1172_0x419157(0x150)][a1172_0x419157(0x139)]=function(_0x3caf14){const _0x166f3c=a1172_0x419157,_0x54774e=this;this[_0x166f3c(0x13c)][_0x166f3c(0x148)](function(){const _0x1844a3=_0x166f3c;return _0x54774e[_0x1844a3(0x141)]['sequelize'][_0x1844a3(0x139)](_0x3caf14)[_0x1844a3(0x14c)](function(){const _0xe471be=_0x1844a3;logger[_0xe471be(0x144)]('query\x20%s',_0x3caf14);})['catch'](function(_0xefae16){const _0x5d4980=_0x1844a3;logger[_0x5d4980(0x144)](JSON[_0x5d4980(0x143)](_0xefae16));});});},Migration[a1172_0x419157(0x150)]['removeColumn']=function(_0xb33591,_0x4e168c){const _0x11a961=a1172_0x419157,_0x40c9f6=this;this[_0x11a961(0x13c)]['enqueue'](function(){const _0x5ef7de=_0x11a961;return _0x40c9f6['queryInterface']['removeColumn'](_0xb33591,_0x4e168c)['then'](function(){const _0x235e53=a1172_0x529c;logger[_0x235e53(0x144)](_0x235e53(0x14b),_0x4e168c,_0xb33591);})[_0x5ef7de(0x145)](function(_0x3dce0d){const _0x7c33bf=_0x5ef7de;logger[_0x7c33bf(0x144)](util[_0x7c33bf(0x153)](_0x3dce0d,{'showHidden':![],'depth':null}));});});},Migration[a1172_0x419157(0x150)]['renameColumn']=function(_0x152c03,_0x2a251c,_0x3fe7bd){const _0x5bb48e=a1172_0x419157,_0x475b75=this;this[_0x5bb48e(0x13c)][_0x5bb48e(0x148)](function(){const _0x38c1ed=_0x5bb48e;return _0x475b75[_0x38c1ed(0x141)][_0x38c1ed(0x13e)](_0x152c03,_0x2a251c,_0x3fe7bd)['then'](function(){const _0x289940=_0x38c1ed;logger[_0x289940(0x144)](_0x289940(0x14d),_0x2a251c,_0x3fe7bd,_0x152c03);})[_0x38c1ed(0x145)](function(_0x311fed){const _0x2bf634=_0x38c1ed;logger['info'](util[_0x2bf634(0x153)](_0x311fed,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x146ae8){const _0x4feac0=a1172_0x419157;this[_0x4feac0(0x13c)][_0x4feac0(0x148)](function(){return _0x146ae8();});},module[a1172_0x419157(0x147)]={'up':function(_0x839cb2){return new Promise(function(_0x1777ad){const _0x34d340=a1172_0x529c,_0x1f26b0=new Migration(_0x839cb2);_0x1f26b0[_0x34d340(0x149)](_0x1777ad);});},'down':function(){}};
\ No newline at end of file
+const a1175_0x1786=['Removed\x20column\x20%s\x20from\x20%s','catch','queryInterface','finally','Added\x20column\x20%s\x20to\x20%s','removeIndex','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','util','addColumn','dropTable','enqueue','prototype','stringify','info','final','inspect','join','table\x20dropped\x20%s','changeColumn','query','removeColumn','then','tail','migration','indicesType','renameColumn','sequence','indexName'];(function(_0x227ec5,_0x2856f4){const _0x178682=function(_0x3fa1f){while(--_0x3fa1f){_0x227ec5['push'](_0x227ec5['shift']());}};_0x178682(++_0x2856f4);}(a1175_0x1786,0x184));const a1175_0x3fa1=function(_0x227ec5,_0x2856f4){_0x227ec5=_0x227ec5-0x1bb;let _0x178682=a1175_0x1786[_0x227ec5];return _0x178682;};const a1175_0x2ab762=a1175_0x3fa1;'use strict';const util=require(a1175_0x2ab762(0x1d5)),logger=require('../config/logger')(a1175_0x2ab762(0x1c8)),Sequence=function(){};Sequence['prototype'][a1175_0x2ab762(0x1bb)]=function(_0x390ecd){const _0x105e4a=a1175_0x2ab762;this['tail']=this[_0x105e4a(0x1c7)]?this[_0x105e4a(0x1c7)][_0x105e4a(0x1d0)](_0x390ecd):_0x390ecd();};const Migration=function(_0x2d3aab){const _0xee6f1e=a1175_0x2ab762;this[_0xee6f1e(0x1cf)]=_0x2d3aab,this[_0xee6f1e(0x1cb)]=new Sequence();};Migration[a1175_0x2ab762(0x1bc)]['changeColumn']=function(_0xbb9ac0,_0x5a18ca,_0x1c8947){const _0x1b596c=a1175_0x2ab762,_0x1b6ab2=this;this[_0x1b596c(0x1cb)][_0x1b596c(0x1bb)](function(){const _0x3a4796=_0x1b596c;return _0x1b6ab2[_0x3a4796(0x1cf)][_0x3a4796(0x1c3)](_0xbb9ac0,_0x5a18ca,_0x1c8947)['then'](function(){const _0x415d36=_0x3a4796;logger[_0x415d36(0x1be)](_0x415d36(0x1d4),_0x5a18ca,_0xbb9ac0);})[_0x3a4796(0x1ce)](function(_0x564880){logger['info'](JSON['stringify'](_0x564880));});});},Migration[a1175_0x2ab762(0x1bc)][a1175_0x2ab762(0x1d6)]=function(_0x4413f2,_0x2adafd,_0x452271){const _0x141feb=a1175_0x2ab762,_0x2dcfe5=this;this[_0x141feb(0x1cb)][_0x141feb(0x1bb)](function(){const _0x4bd61c=_0x141feb;return _0x2dcfe5[_0x4bd61c(0x1cf)][_0x4bd61c(0x1d6)](_0x4413f2,_0x2adafd,_0x452271)['then'](function(){const _0x1a9a0c=_0x4bd61c;logger[_0x1a9a0c(0x1be)](_0x1a9a0c(0x1d1),_0x2adafd,_0x4413f2);})[_0x4bd61c(0x1ce)](function(_0x15316a){const _0x189907=_0x4bd61c;logger[_0x189907(0x1be)](JSON[_0x189907(0x1bd)](_0x15316a));});});},Migration['prototype'][a1175_0x2ab762(0x1d7)]=function(_0x3d0733){const _0x182f62=a1175_0x2ab762,_0x4caa38=this;this[_0x182f62(0x1cb)][_0x182f62(0x1bb)](function(){const _0x297798=_0x182f62;return _0x4caa38[_0x297798(0x1cf)][_0x297798(0x1d7)](_0x3d0733,{'force':!![]})[_0x297798(0x1c6)](function(){const _0xaa51a8=_0x297798;logger[_0xaa51a8(0x1be)](_0xaa51a8(0x1c2),_0x3d0733);})[_0x297798(0x1ce)](function(_0x4fa0fd){const _0x231cac=_0x297798;logger[_0x231cac(0x1be)](JSON[_0x231cac(0x1bd)](_0x4fa0fd));});});},Migration[a1175_0x2ab762(0x1bc)]['addIndex']=function(_0x28af02,_0x4d4fd2,_0x13e136){const _0x404de2=a1175_0x2ab762,_0x2b22f8=this;this[_0x404de2(0x1cb)]['enqueue'](function(){const _0x51dc33=_0x404de2;return _0x2b22f8[_0x51dc33(0x1cf)]['addIndex'](_0x28af02,_0x4d4fd2,{'indexName':_0x13e136[_0x51dc33(0x1cc)],'indicesType':_0x13e136[_0x51dc33(0x1c9)]})[_0x51dc33(0x1c6)](function(){const _0x5a8adc=_0x51dc33;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x28af02,_0x4d4fd2[_0x5a8adc(0x1c1)](','),_0x13e136[_0x5a8adc(0x1cc)],_0x13e136[_0x5a8adc(0x1c9)]);})['catch'](function(_0x36eb02){const _0x5d391b=_0x51dc33;logger[_0x5d391b(0x1be)](JSON['stringify'](_0x36eb02));});});},Migration['prototype'][a1175_0x2ab762(0x1d2)]=function(_0x306a8b,_0x1b81ac){const _0x105d5d=a1175_0x2ab762,_0x2e8d23=this;this['sequence'][_0x105d5d(0x1bb)](function(){const _0x1b1b04=_0x105d5d;return _0x2e8d23[_0x1b1b04(0x1cf)][_0x1b1b04(0x1d2)](_0x306a8b,_0x1b81ac)['then'](function(){const _0x14842a=_0x1b1b04;logger[_0x14842a(0x1be)]('removeIndex\x20%s\x20%s',_0x306a8b,_0x1b81ac);})[_0x1b1b04(0x1ce)](function(_0x26559f){const _0x2371cf=_0x1b1b04;logger[_0x2371cf(0x1be)](JSON[_0x2371cf(0x1bd)](_0x26559f));});});},Migration[a1175_0x2ab762(0x1bc)][a1175_0x2ab762(0x1c4)]=function(_0x5092be){const _0x5bed1e=a1175_0x2ab762,_0x3d82ac=this;this[_0x5bed1e(0x1cb)]['enqueue'](function(){const _0x349ead=_0x5bed1e;return _0x3d82ac[_0x349ead(0x1cf)][_0x349ead(0x1d3)][_0x349ead(0x1c4)](_0x5092be)[_0x349ead(0x1c6)](function(){logger['info']('query\x20%s',_0x5092be);})[_0x349ead(0x1ce)](function(_0x1a87a5){const _0x77d6e3=_0x349ead;logger[_0x77d6e3(0x1be)](JSON['stringify'](_0x1a87a5));});});},Migration[a1175_0x2ab762(0x1bc)][a1175_0x2ab762(0x1c5)]=function(_0x4899c3,_0x7fc214){const _0xcd09=a1175_0x2ab762,_0x1dc60d=this;this['sequence'][_0xcd09(0x1bb)](function(){const _0x507a6e=_0xcd09;return _0x1dc60d['queryInterface'][_0x507a6e(0x1c5)](_0x4899c3,_0x7fc214)[_0x507a6e(0x1c6)](function(){const _0x5794a1=_0x507a6e;logger[_0x5794a1(0x1be)](_0x5794a1(0x1cd),_0x7fc214,_0x4899c3);})[_0x507a6e(0x1ce)](function(_0x5f1db3){const _0x7dd4a0=_0x507a6e;logger['info'](util[_0x7dd4a0(0x1c0)](_0x5f1db3,{'showHidden':![],'depth':null}));});});},Migration[a1175_0x2ab762(0x1bc)][a1175_0x2ab762(0x1ca)]=function(_0x17a44c,_0xb46642,_0x43a860){const _0x592115=a1175_0x2ab762,_0x2c7159=this;this[_0x592115(0x1cb)][_0x592115(0x1bb)](function(){const _0x122508=_0x592115;return _0x2c7159[_0x122508(0x1cf)][_0x122508(0x1ca)](_0x17a44c,_0xb46642,_0x43a860)[_0x122508(0x1c6)](function(){const _0xac6a9a=_0x122508;logger[_0xac6a9a(0x1be)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0xb46642,_0x43a860,_0x17a44c);})['catch'](function(_0xe85ad2){logger['info'](util['inspect'](_0xe85ad2,{'showHidden':![],'depth':null}));});});},Migration[a1175_0x2ab762(0x1bc)][a1175_0x2ab762(0x1bf)]=function(_0x794e82){const _0x1604d3=a1175_0x2ab762;this[_0x1604d3(0x1cb)][_0x1604d3(0x1bb)](function(){return _0x794e82();});},module['exports']={'up':function(_0x1f794a){return new Promise(function(_0x21f280){const _0x204a9b=a1175_0x3fa1,_0x119f59=new Migration(_0x1f794a);_0x119f59[_0x204a9b(0x1bf)](_0x21f280);});},'down':function(){}};
\ No newline at end of file