Built motion from commit 362b9399b4d0ed5560fbb795af995925d345fc38. Version 3.0.0...
[motion-next.git] / server / migrations / 2.5.8.js
index 213a63b..23c2871 100644 (file)
@@ -1 +1 @@
-const a1185_0x3fb9=['indicesType','stringify','table\x20dropped\x20%s','migration','query','renameColumn','enqueue','util','addColumn','catch','final','sequelize','dropTable','changeColumn','removeColumn','prototype','exports','removeIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','../config/logger','Removed\x20column\x20%s\x20from\x20%s','indexName','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequence','join','addIndex','queryInterface','info','then','inspect'];(function(_0x5467a9,_0x7f2d9a){const _0x3fb9d6=function(_0x360ab2){while(--_0x360ab2){_0x5467a9['push'](_0x5467a9['shift']());}};_0x3fb9d6(++_0x7f2d9a);}(a1185_0x3fb9,0x1c8));const a1185_0x360a=function(_0x5467a9,_0x7f2d9a){_0x5467a9=_0x5467a9-0x1bd;let _0x3fb9d6=a1185_0x3fb9[_0x5467a9];return _0x3fb9d6;};const a1185_0x214fa4=a1185_0x360a;'use strict';const util=require(a1185_0x214fa4(0x1cd)),logger=require(a1185_0x214fa4(0x1da))(a1185_0x214fa4(0x1c9)),Sequence=function(){};Sequence[a1185_0x214fa4(0x1d5)][a1185_0x214fa4(0x1cc)]=function(_0x1d8569){const _0x51b3a6=a1185_0x214fa4;this[_0x51b3a6(0x1d9)]=this[_0x51b3a6(0x1d9)]?this[_0x51b3a6(0x1d9)]['finally'](_0x1d8569):_0x1d8569();};const Migration=function(_0x4a5a1c){const _0x2ec599=a1185_0x214fa4;this[_0x2ec599(0x1c2)]=_0x4a5a1c,this['sequence']=new Sequence();};Migration[a1185_0x214fa4(0x1d5)]['changeColumn']=function(_0x5de73d,_0x471f92,_0x50580b){const _0x4a9edf=a1185_0x214fa4,_0x56f7a5=this;this[_0x4a9edf(0x1bf)][_0x4a9edf(0x1cc)](function(){const _0x513d9a=_0x4a9edf;return _0x56f7a5[_0x513d9a(0x1c2)][_0x513d9a(0x1d3)](_0x5de73d,_0x471f92,_0x50580b)[_0x513d9a(0x1c4)](function(){const _0x31bf4c=_0x513d9a;logger[_0x31bf4c(0x1c3)](_0x31bf4c(0x1d8),_0x471f92,_0x5de73d);})[_0x513d9a(0x1cf)](function(_0x57f4f7){const _0xffca5d=_0x513d9a;logger[_0xffca5d(0x1c3)](JSON[_0xffca5d(0x1c7)](_0x57f4f7));});});},Migration['prototype'][a1185_0x214fa4(0x1ce)]=function(_0x42ddc5,_0x97fee8,_0xa41a90){const _0x2de174=a1185_0x214fa4,_0x304a6d=this;this[_0x2de174(0x1bf)][_0x2de174(0x1cc)](function(){const _0x5e407e=_0x2de174;return _0x304a6d['queryInterface']['addColumn'](_0x42ddc5,_0x97fee8,_0xa41a90)[_0x5e407e(0x1c4)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x97fee8,_0x42ddc5);})[_0x5e407e(0x1cf)](function(_0x3bd47d){const _0x58aa35=_0x5e407e;logger[_0x58aa35(0x1c3)](JSON['stringify'](_0x3bd47d));});});},Migration[a1185_0x214fa4(0x1d5)][a1185_0x214fa4(0x1d2)]=function(_0x181c3){const _0x3197e8=a1185_0x214fa4,_0x46bafe=this;this[_0x3197e8(0x1bf)][_0x3197e8(0x1cc)](function(){const _0x46d94b=_0x3197e8;return _0x46bafe[_0x46d94b(0x1c2)]['dropTable'](_0x181c3,{'force':!![]})[_0x46d94b(0x1c4)](function(){const _0x4891c0=_0x46d94b;logger['info'](_0x4891c0(0x1c8),_0x181c3);})[_0x46d94b(0x1cf)](function(_0x1015d1){const _0x2f58c=_0x46d94b;logger['info'](JSON[_0x2f58c(0x1c7)](_0x1015d1));});});},Migration['prototype'][a1185_0x214fa4(0x1c1)]=function(_0x669b53,_0x548943,_0x5d9196){const _0x4cbe24=this;this['sequence']['enqueue'](function(){const _0x415616=a1185_0x360a;return _0x4cbe24[_0x415616(0x1c2)][_0x415616(0x1c1)](_0x669b53,_0x548943,{'indexName':_0x5d9196[_0x415616(0x1bd)],'indicesType':_0x5d9196[_0x415616(0x1c6)]})[_0x415616(0x1c4)](function(){const _0x416196=_0x415616;logger[_0x416196(0x1c3)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x669b53,_0x548943[_0x416196(0x1c0)](','),_0x5d9196['indexName'],_0x5d9196[_0x416196(0x1c6)]);})[_0x415616(0x1cf)](function(_0x2bce51){const _0x4b4d72=_0x415616;logger[_0x4b4d72(0x1c3)](JSON[_0x4b4d72(0x1c7)](_0x2bce51));});});},Migration[a1185_0x214fa4(0x1d5)][a1185_0x214fa4(0x1d7)]=function(_0x5ad932,_0x10d6f7){const _0x351ed4=a1185_0x214fa4,_0x308684=this;this[_0x351ed4(0x1bf)][_0x351ed4(0x1cc)](function(){const _0x1b719b=_0x351ed4;return _0x308684['queryInterface']['removeIndex'](_0x5ad932,_0x10d6f7)[_0x1b719b(0x1c4)](function(){const _0x1b6526=_0x1b719b;logger[_0x1b6526(0x1c3)]('removeIndex\x20%s\x20%s',_0x5ad932,_0x10d6f7);})[_0x1b719b(0x1cf)](function(_0xe1cd76){const _0x17143f=_0x1b719b;logger[_0x17143f(0x1c3)](JSON['stringify'](_0xe1cd76));});});},Migration[a1185_0x214fa4(0x1d5)][a1185_0x214fa4(0x1ca)]=function(_0x5f2cdf){const _0x49988f=a1185_0x214fa4,_0x4fd988=this;this[_0x49988f(0x1bf)][_0x49988f(0x1cc)](function(){const _0x59ce21=_0x49988f;return _0x4fd988[_0x59ce21(0x1c2)][_0x59ce21(0x1d1)][_0x59ce21(0x1ca)](_0x5f2cdf)['then'](function(){const _0x44419f=_0x59ce21;logger[_0x44419f(0x1c3)]('query\x20%s',_0x5f2cdf);})['catch'](function(_0x5e945b){const _0x2eb395=_0x59ce21;logger[_0x2eb395(0x1c3)](JSON[_0x2eb395(0x1c7)](_0x5e945b));});});},Migration[a1185_0x214fa4(0x1d5)]['removeColumn']=function(_0x19f404,_0x1849ba){const _0x526456=a1185_0x214fa4,_0x3fa61f=this;this[_0x526456(0x1bf)][_0x526456(0x1cc)](function(){const _0x253364=_0x526456;return _0x3fa61f['queryInterface'][_0x253364(0x1d4)](_0x19f404,_0x1849ba)['then'](function(){const _0x211e97=_0x253364;logger['info'](_0x211e97(0x1db),_0x1849ba,_0x19f404);})[_0x253364(0x1cf)](function(_0x4c1864){const _0x4bdc60=_0x253364;logger[_0x4bdc60(0x1c3)](util['inspect'](_0x4c1864,{'showHidden':![],'depth':null}));});});},Migration[a1185_0x214fa4(0x1d5)]['renameColumn']=function(_0x1efc4f,_0x588612,_0x3af1fa){const _0x214652=a1185_0x214fa4,_0x2692a2=this;this[_0x214652(0x1bf)][_0x214652(0x1cc)](function(){const _0x25f555=_0x214652;return _0x2692a2['queryInterface'][_0x25f555(0x1cb)](_0x1efc4f,_0x588612,_0x3af1fa)[_0x25f555(0x1c4)](function(){const _0x540ffe=_0x25f555;logger[_0x540ffe(0x1c3)](_0x540ffe(0x1be),_0x588612,_0x3af1fa,_0x1efc4f);})[_0x25f555(0x1cf)](function(_0x20d729){const _0x1d1ca1=_0x25f555;logger[_0x1d1ca1(0x1c3)](util[_0x1d1ca1(0x1c5)](_0x20d729,{'showHidden':![],'depth':null}));});});},Migration[a1185_0x214fa4(0x1d5)]['final']=function(_0x4ac8ff){const _0x17daff=a1185_0x214fa4;this[_0x17daff(0x1bf)][_0x17daff(0x1cc)](function(){return _0x4ac8ff();});},module[a1185_0x214fa4(0x1d6)]={'up':function(_0x3aaff6){return new Promise(function(_0x26e727){const _0x5f3de7=a1185_0x360a,_0x57f0ee=new Migration(_0x3aaff6);_0x57f0ee[_0x5f3de7(0x1d0)](_0x26e727);});},'down':function(){}};
\ No newline at end of file
+const a1185_0x2654=['join','Added\x20column\x20%s\x20to\x20%s','info','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','indicesType','queryInterface','stringify','migration','../config/logger','addIndex','inspect','removeColumn','query','catch','dropTable','renameColumn','removeIndex','removeIndex\x20%s\x20%s','changeColumn','Removed\x20column\x20%s\x20from\x20%s','exports','addColumn','util','then','sequelize','indexName','addIndex\x20%s\x20%s\x20%s\x20[%s]','enqueue','sequence','prototype','tail'];(function(_0x356d34,_0x5bfbef){const _0x2654e7=function(_0x3a5d59){while(--_0x3a5d59){_0x356d34['push'](_0x356d34['shift']());}};_0x2654e7(++_0x5bfbef);}(a1185_0x2654,0x125));const a1185_0x3a5d=function(_0x356d34,_0x5bfbef){_0x356d34=_0x356d34-0xdc;let _0x2654e7=a1185_0x2654[_0x356d34];return _0x2654e7;};const a1185_0x5e1984=a1185_0x3a5d;'use strict';const util=require(a1185_0x5e1984(0xe4)),logger=require(a1185_0x5e1984(0xf5))(a1185_0x5e1984(0xf4)),Sequence=function(){};Sequence[a1185_0x5e1984(0xeb)]['enqueue']=function(_0x2c15e8){const _0x136194=a1185_0x5e1984;this[_0x136194(0xec)]=this[_0x136194(0xec)]?this['tail']['finally'](_0x2c15e8):_0x2c15e8();};const Migration=function(_0x54aa8a){const _0x219cfa=a1185_0x5e1984;this['queryInterface']=_0x54aa8a,this[_0x219cfa(0xea)]=new Sequence();};Migration[a1185_0x5e1984(0xeb)]['changeColumn']=function(_0x5e7ed8,_0x3bac13,_0x1a5851){const _0x4a861b=a1185_0x5e1984,_0x3838b9=this;this[_0x4a861b(0xea)][_0x4a861b(0xe9)](function(){const _0x1d0956=_0x4a861b;return _0x3838b9[_0x1d0956(0xf2)][_0x1d0956(0xe0)](_0x5e7ed8,_0x3bac13,_0x1a5851)[_0x1d0956(0xe5)](function(){const _0x2dc6ba=_0x1d0956;logger[_0x2dc6ba(0xef)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3bac13,_0x5e7ed8);})['catch'](function(_0x2fc9b2){const _0x1878ea=_0x1d0956;logger[_0x1878ea(0xef)](JSON['stringify'](_0x2fc9b2));});});},Migration[a1185_0x5e1984(0xeb)][a1185_0x5e1984(0xe3)]=function(_0x510b00,_0x56181a,_0x37c49d){const _0x45beeb=a1185_0x5e1984,_0x283195=this;this[_0x45beeb(0xea)]['enqueue'](function(){const _0x5a56c6=_0x45beeb;return _0x283195[_0x5a56c6(0xf2)][_0x5a56c6(0xe3)](_0x510b00,_0x56181a,_0x37c49d)[_0x5a56c6(0xe5)](function(){const _0x4b2d80=_0x5a56c6;logger[_0x4b2d80(0xef)](_0x4b2d80(0xee),_0x56181a,_0x510b00);})[_0x5a56c6(0xfa)](function(_0x24bc0d){const _0x45707b=_0x5a56c6;logger['info'](JSON[_0x45707b(0xf3)](_0x24bc0d));});});},Migration[a1185_0x5e1984(0xeb)][a1185_0x5e1984(0xdc)]=function(_0x123470){const _0x580c46=a1185_0x5e1984,_0x33fa5a=this;this['sequence'][_0x580c46(0xe9)](function(){const _0x3557de=_0x580c46;return _0x33fa5a[_0x3557de(0xf2)][_0x3557de(0xdc)](_0x123470,{'force':!![]})[_0x3557de(0xe5)](function(){const _0x20e2f0=_0x3557de;logger[_0x20e2f0(0xef)]('table\x20dropped\x20%s',_0x123470);})[_0x3557de(0xfa)](function(_0x241903){const _0x2b9807=_0x3557de;logger[_0x2b9807(0xef)](JSON['stringify'](_0x241903));});});},Migration[a1185_0x5e1984(0xeb)][a1185_0x5e1984(0xf6)]=function(_0x474dc9,_0x4ac776,_0x45e5b0){const _0x43c90a=a1185_0x5e1984,_0x26b1bd=this;this[_0x43c90a(0xea)]['enqueue'](function(){const _0x2ab3e9=_0x43c90a;return _0x26b1bd['queryInterface']['addIndex'](_0x474dc9,_0x4ac776,{'indexName':_0x45e5b0[_0x2ab3e9(0xe7)],'indicesType':_0x45e5b0[_0x2ab3e9(0xf1)]})[_0x2ab3e9(0xe5)](function(){const _0x159bd5=_0x2ab3e9;logger[_0x159bd5(0xef)](_0x159bd5(0xe8),_0x474dc9,_0x4ac776[_0x159bd5(0xed)](','),_0x45e5b0[_0x159bd5(0xe7)],_0x45e5b0[_0x159bd5(0xf1)]);})[_0x2ab3e9(0xfa)](function(_0x468aed){const _0x4a69bc=_0x2ab3e9;logger[_0x4a69bc(0xef)](JSON[_0x4a69bc(0xf3)](_0x468aed));});});},Migration[a1185_0x5e1984(0xeb)][a1185_0x5e1984(0xde)]=function(_0x4d7fb9,_0x2dfece){const _0x261993=a1185_0x5e1984,_0x221c07=this;this[_0x261993(0xea)]['enqueue'](function(){const _0x39d410=_0x261993;return _0x221c07[_0x39d410(0xf2)][_0x39d410(0xde)](_0x4d7fb9,_0x2dfece)[_0x39d410(0xe5)](function(){const _0x5df652=_0x39d410;logger[_0x5df652(0xef)](_0x5df652(0xdf),_0x4d7fb9,_0x2dfece);})['catch'](function(_0x2c6f49){const _0x559566=_0x39d410;logger[_0x559566(0xef)](JSON[_0x559566(0xf3)](_0x2c6f49));});});},Migration[a1185_0x5e1984(0xeb)][a1185_0x5e1984(0xf9)]=function(_0x50b7e6){const _0x233966=a1185_0x5e1984,_0x2e9dc8=this;this[_0x233966(0xea)][_0x233966(0xe9)](function(){const _0x34a81d=_0x233966;return _0x2e9dc8[_0x34a81d(0xf2)][_0x34a81d(0xe6)][_0x34a81d(0xf9)](_0x50b7e6)[_0x34a81d(0xe5)](function(){const _0x26f637=_0x34a81d;logger[_0x26f637(0xef)]('query\x20%s',_0x50b7e6);})[_0x34a81d(0xfa)](function(_0x51b563){const _0x3ac3cf=_0x34a81d;logger[_0x3ac3cf(0xef)](JSON[_0x3ac3cf(0xf3)](_0x51b563));});});},Migration[a1185_0x5e1984(0xeb)][a1185_0x5e1984(0xf8)]=function(_0x244477,_0x28558c){const _0x2c0c01=this;this['sequence']['enqueue'](function(){const _0x1cbc68=a1185_0x3a5d;return _0x2c0c01[_0x1cbc68(0xf2)]['removeColumn'](_0x244477,_0x28558c)['then'](function(){const _0x43a840=_0x1cbc68;logger[_0x43a840(0xef)](_0x43a840(0xe1),_0x28558c,_0x244477);})[_0x1cbc68(0xfa)](function(_0x419144){const _0x3b1391=_0x1cbc68;logger[_0x3b1391(0xef)](util[_0x3b1391(0xf7)](_0x419144,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x435b95,_0x2191b3,_0x192fed){const _0x4873a3=a1185_0x5e1984,_0x305259=this;this[_0x4873a3(0xea)][_0x4873a3(0xe9)](function(){const _0x6ed304=_0x4873a3;return _0x305259[_0x6ed304(0xf2)][_0x6ed304(0xdd)](_0x435b95,_0x2191b3,_0x192fed)[_0x6ed304(0xe5)](function(){const _0x1ac632=_0x6ed304;logger[_0x1ac632(0xef)](_0x1ac632(0xf0),_0x2191b3,_0x192fed,_0x435b95);})[_0x6ed304(0xfa)](function(_0x51c211){const _0x2eefeb=_0x6ed304;logger[_0x2eefeb(0xef)](util[_0x2eefeb(0xf7)](_0x51c211,{'showHidden':![],'depth':null}));});});},Migration[a1185_0x5e1984(0xeb)]['final']=function(_0x49ebe7){const _0x390542=a1185_0x5e1984;this[_0x390542(0xea)][_0x390542(0xe9)](function(){return _0x49ebe7();});},module[a1185_0x5e1984(0xe2)]={'up':function(_0x32966b){return new Promise(function(_0xb0cbf3){const _0x5383a8=new Migration(_0x32966b);_0x5383a8['final'](_0xb0cbf3);});},'down':function(){}};
\ No newline at end of file