Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.0.js
index aec7285..1942cc1 100644 (file)
@@ -1 +1 @@
-const a1133_0x49c5=['migration','Changed\x20column\x20%s\x20in\x20table\x20%s','uniqueid','then','join','dropTable','renameColumn','tail','inspect','removeIndex','addColumn','queryInterface','apiKeyNonce','query\x20%s','users','catch','sequence','info','prototype','addIndex','final','apiKeyIat','stringify','Added\x20column\x20%s\x20to\x20%s','enqueue','changeColumn','finally','removeIndex\x20%s\x20%s','util','STRING','removeColumn','query'];(function(_0x2e5c81,_0x5d814b){const _0x49c50c=function(_0xb89d1d){while(--_0xb89d1d){_0x2e5c81['push'](_0x2e5c81['shift']());}};_0x49c50c(++_0x5d814b);}(a1133_0x49c5,0x92));const a1133_0xb89d=function(_0x2e5c81,_0x5d814b){_0x2e5c81=_0x2e5c81-0xa4;let _0x49c50c=a1133_0x49c5[_0x2e5c81];return _0x49c50c;};const a1133_0x2198d1=a1133_0xb89d;'use strict';const util=require(a1133_0x2198d1(0xae)),logger=require('../config/logger')(a1133_0x2198d1(0xb2)),Sequence=function(){};Sequence[a1133_0x2198d1(0xa4)][a1133_0x2198d1(0xaa)]=function(_0x56fca1){const _0x397370=a1133_0x2198d1;this['tail']=this[_0x397370(0xb9)]?this[_0x397370(0xb9)][_0x397370(0xac)](_0x56fca1):_0x56fca1();};const Migration=function(_0x238c11){const _0x2a9043=a1133_0x2198d1;this[_0x2a9043(0xbd)]=_0x238c11,this['sequence']=new Sequence();};Migration[a1133_0x2198d1(0xa4)][a1133_0x2198d1(0xab)]=function(_0x329c21,_0x2da1fa,_0x1a9703){const _0x32ec5a=a1133_0x2198d1,_0x2fb389=this;this['sequence'][_0x32ec5a(0xaa)](function(){const _0x2c079b=_0x32ec5a;return _0x2fb389[_0x2c079b(0xbd)][_0x2c079b(0xab)](_0x329c21,_0x2da1fa,_0x1a9703)[_0x2c079b(0xb5)](function(){const _0x29fe01=_0x2c079b;logger[_0x29fe01(0xc3)](_0x29fe01(0xb3),_0x2da1fa,_0x329c21);})['catch'](function(_0x3e1da2){const _0x1135ae=_0x2c079b;logger[_0x1135ae(0xc3)](JSON[_0x1135ae(0xa8)](_0x3e1da2));});});},Migration[a1133_0x2198d1(0xa4)][a1133_0x2198d1(0xbc)]=function(_0x2e1a19,_0x5dcc46,_0x4a3be3){const _0x389592=a1133_0x2198d1,_0x38d521=this;this[_0x389592(0xc2)][_0x389592(0xaa)](function(){const _0x24f9ef=_0x389592;return _0x38d521['queryInterface'][_0x24f9ef(0xbc)](_0x2e1a19,_0x5dcc46,_0x4a3be3)[_0x24f9ef(0xb5)](function(){const _0x1fe7ad=_0x24f9ef;logger['info'](_0x1fe7ad(0xa9),_0x5dcc46,_0x2e1a19);})['catch'](function(_0x197d11){const _0x5e2105=_0x24f9ef;logger[_0x5e2105(0xc3)](JSON[_0x5e2105(0xa8)](_0x197d11));});});},Migration[a1133_0x2198d1(0xa4)][a1133_0x2198d1(0xb7)]=function(_0x305fc2){const _0xd8926f=a1133_0x2198d1,_0x416e98=this;this[_0xd8926f(0xc2)][_0xd8926f(0xaa)](function(){const _0x5a1052=_0xd8926f;return _0x416e98['queryInterface'][_0x5a1052(0xb7)](_0x305fc2,{'force':!![]})[_0x5a1052(0xb5)](function(){const _0x524171=_0x5a1052;logger[_0x524171(0xc3)]('table\x20dropped\x20%s',_0x305fc2);})[_0x5a1052(0xc1)](function(_0x53082a){const _0x1e7d7c=_0x5a1052;logger[_0x1e7d7c(0xc3)](JSON[_0x1e7d7c(0xa8)](_0x53082a));});});},Migration[a1133_0x2198d1(0xa4)][a1133_0x2198d1(0xa5)]=function(_0x357131,_0xf9c96a,_0x18eeec){const _0x3c37be=a1133_0x2198d1,_0x1d802b=this;this['sequence'][_0x3c37be(0xaa)](function(){const _0x5168a4=_0x3c37be;return _0x1d802b[_0x5168a4(0xbd)][_0x5168a4(0xa5)](_0x357131,_0xf9c96a,{'indexName':_0x18eeec})[_0x5168a4(0xb5)](function(){const _0x37ecd7=_0x5168a4;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x357131,_0xf9c96a[_0x37ecd7(0xb6)](','),_0x18eeec);})['catch'](function(_0x20b9bf){const _0x36c4bf=_0x5168a4;logger['info'](JSON[_0x36c4bf(0xa8)](_0x20b9bf));});});},Migration[a1133_0x2198d1(0xa4)][a1133_0x2198d1(0xbb)]=function(_0x375bb6,_0x13604b){const _0x84bfbe=a1133_0x2198d1,_0x2bcccb=this;this[_0x84bfbe(0xc2)]['enqueue'](function(){const _0x52a9ab=_0x84bfbe;return _0x2bcccb['queryInterface']['removeIndex'](_0x375bb6,_0x13604b)[_0x52a9ab(0xb5)](function(){const _0x59edcd=_0x52a9ab;logger[_0x59edcd(0xc3)](_0x59edcd(0xad),_0x375bb6,_0x13604b);})[_0x52a9ab(0xc1)](function(_0x58a80c){const _0x42e13c=_0x52a9ab;logger[_0x42e13c(0xc3)](JSON[_0x42e13c(0xa8)](_0x58a80c));});});},Migration[a1133_0x2198d1(0xa4)][a1133_0x2198d1(0xb1)]=function(_0x2801f4){const _0x2a8d3d=a1133_0x2198d1,_0x3f05c6=this;this[_0x2a8d3d(0xc2)]['enqueue'](function(){const _0x494f17=_0x2a8d3d;return _0x3f05c6[_0x494f17(0xbd)]['sequelize'][_0x494f17(0xb1)](_0x2801f4)[_0x494f17(0xb5)](function(){const _0x566d15=_0x494f17;logger[_0x566d15(0xc3)](_0x566d15(0xbf),_0x2801f4);})[_0x494f17(0xc1)](function(_0x269660){const _0x4c5b4e=_0x494f17;logger[_0x4c5b4e(0xc3)](JSON[_0x4c5b4e(0xa8)](_0x269660));});});},Migration[a1133_0x2198d1(0xa4)]['removeColumn']=function(_0x3c5eb1,_0x13e334){const _0x271d84=a1133_0x2198d1,_0x2b3ed7=this;this[_0x271d84(0xc2)][_0x271d84(0xaa)](function(){const _0x1c36e8=_0x271d84;return _0x2b3ed7[_0x1c36e8(0xbd)][_0x1c36e8(0xb0)](_0x3c5eb1,_0x13e334)[_0x1c36e8(0xb5)](function(){const _0x2b4f33=_0x1c36e8;logger[_0x2b4f33(0xc3)]('Removed\x20column\x20%s\x20from\x20%s',_0x13e334,_0x3c5eb1);})[_0x1c36e8(0xc1)](function(_0x4c5e48){const _0x23cd66=_0x1c36e8;logger[_0x23cd66(0xc3)](util[_0x23cd66(0xba)](_0x4c5e48,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1133_0x2198d1(0xb8)]=function(_0x51ded4,_0x3c1510,_0x1f1261){const _0x1d9273=a1133_0x2198d1,_0x40658b=this;this[_0x1d9273(0xc2)]['enqueue'](function(){const _0x54dbc8=_0x1d9273;return _0x40658b[_0x54dbc8(0xbd)][_0x54dbc8(0xb8)](_0x51ded4,_0x3c1510,_0x1f1261)[_0x54dbc8(0xb5)](function(){const _0x54b25a=_0x54dbc8;logger[_0x54b25a(0xc3)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3c1510,_0x1f1261,_0x51ded4);})['catch'](function(_0x3921c0){const _0x1cc750=_0x54dbc8;logger[_0x1cc750(0xc3)](util['inspect'](_0x3921c0,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1133_0x2198d1(0xa6)]=function(_0xb4056b){const _0x563202=a1133_0x2198d1;this[_0x563202(0xc2)]['enqueue'](function(){return _0xb4056b();});},module['exports']={'up':function(_0x72b27f,_0x393700){return new Promise(function(_0x1879b9){const _0x482a51=a1133_0xb89d,_0x2a3f34=new Migration(_0x72b27f);_0x2a3f34[_0x482a51(0xbc)](_0x482a51(0xc0),_0x482a51(0xbe),{'type':_0x393700[_0x482a51(0xaf)]}),_0x2a3f34[_0x482a51(0xbc)](_0x482a51(0xc0),_0x482a51(0xa7),{'type':_0x393700[_0x482a51(0xaf)]}),_0x2a3f34[_0x482a51(0xa5)]('report_call',[_0x482a51(0xb4)],_0x482a51(0xb4)),_0x2a3f34['final'](_0x1879b9);});},'down':function(){}};
\ No newline at end of file
+const a1136_0x276a=['STRING','enqueue','renameColumn','sequelize','apiKeyNonce','addIndex','removeColumn','removeIndex','tail','uniqueid','util','apiKeyIat','addColumn','table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','changeColumn','exports','prototype','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','users','query\x20%s','addIndex\x20%s\x20%s\x20%s','migration','Added\x20column\x20%s\x20to\x20%s','report_call','catch','sequence','queryInterface','info','stringify','then','final','inspect','query'];(function(_0x250bd2,_0xdcc17c){const _0x276aaa=function(_0x139a93){while(--_0x139a93){_0x250bd2['push'](_0x250bd2['shift']());}};_0x276aaa(++_0xdcc17c);}(a1136_0x276a,0xc2));const a1136_0x139a=function(_0x250bd2,_0xdcc17c){_0x250bd2=_0x250bd2-0x197;let _0x276aaa=a1136_0x276a[_0x250bd2];return _0x276aaa;};const a1136_0x4414b7=a1136_0x139a;'use strict';const util=require(a1136_0x4414b7(0x1ab)),logger=require('../config/logger')(a1136_0x4414b7(0x1b7)),Sequence=function(){};Sequence[a1136_0x4414b7(0x1b2)][a1136_0x4414b7(0x1a2)]=function(_0x4991d1){const _0x1c7b14=a1136_0x4414b7;this[_0x1c7b14(0x1a9)]=this[_0x1c7b14(0x1a9)]?this[_0x1c7b14(0x1a9)]['finally'](_0x4991d1):_0x4991d1();};const Migration=function(_0x5d3f93){const _0x24e95c=a1136_0x4414b7;this[_0x24e95c(0x19a)]=_0x5d3f93,this[_0x24e95c(0x199)]=new Sequence();};Migration[a1136_0x4414b7(0x1b2)][a1136_0x4414b7(0x1b0)]=function(_0x3dafd4,_0x4df3fe,_0x143ab7){const _0x453967=a1136_0x4414b7,_0x113fba=this;this[_0x453967(0x199)][_0x453967(0x1a2)](function(){const _0x439c3a=_0x453967;return _0x113fba[_0x439c3a(0x19a)]['changeColumn'](_0x3dafd4,_0x4df3fe,_0x143ab7)[_0x439c3a(0x19d)](function(){const _0x5672f6=_0x439c3a;logger[_0x5672f6(0x19b)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4df3fe,_0x3dafd4);})['catch'](function(_0x3440b8){const _0x18334c=_0x439c3a;logger['info'](JSON[_0x18334c(0x19c)](_0x3440b8));});});},Migration[a1136_0x4414b7(0x1b2)][a1136_0x4414b7(0x1ad)]=function(_0x254fa3,_0x1f2d09,_0x3ec057){const _0x49cc5a=a1136_0x4414b7,_0x32a31a=this;this[_0x49cc5a(0x199)][_0x49cc5a(0x1a2)](function(){const _0x43bb3b=_0x49cc5a;return _0x32a31a[_0x43bb3b(0x19a)][_0x43bb3b(0x1ad)](_0x254fa3,_0x1f2d09,_0x3ec057)[_0x43bb3b(0x19d)](function(){const _0x4e0ee5=_0x43bb3b;logger[_0x4e0ee5(0x19b)](_0x4e0ee5(0x1b8),_0x1f2d09,_0x254fa3);})[_0x43bb3b(0x198)](function(_0x3a9e19){const _0x364033=_0x43bb3b;logger[_0x364033(0x19b)](JSON[_0x364033(0x19c)](_0x3a9e19));});});},Migration[a1136_0x4414b7(0x1b2)]['dropTable']=function(_0x2c30fe){const _0x345806=a1136_0x4414b7,_0x5ae3b2=this;this[_0x345806(0x199)][_0x345806(0x1a2)](function(){const _0x510dea=_0x345806;return _0x5ae3b2[_0x510dea(0x19a)]['dropTable'](_0x2c30fe,{'force':!![]})[_0x510dea(0x19d)](function(){const _0x43efa1=_0x510dea;logger[_0x43efa1(0x19b)](_0x43efa1(0x1ae),_0x2c30fe);})[_0x510dea(0x198)](function(_0x7a6e29){const _0x550b52=_0x510dea;logger[_0x550b52(0x19b)](JSON['stringify'](_0x7a6e29));});});},Migration['prototype'][a1136_0x4414b7(0x1a6)]=function(_0x1d005e,_0x16e06c,_0x1bdad0){const _0x1ba689=a1136_0x4414b7,_0x54d77f=this;this[_0x1ba689(0x199)][_0x1ba689(0x1a2)](function(){const _0x4c4b67=_0x1ba689;return _0x54d77f['queryInterface'][_0x4c4b67(0x1a6)](_0x1d005e,_0x16e06c,{'indexName':_0x1bdad0})[_0x4c4b67(0x19d)](function(){const _0x312e0f=_0x4c4b67;logger['info'](_0x312e0f(0x1b6),_0x1d005e,_0x16e06c['join'](','),_0x1bdad0);})[_0x4c4b67(0x198)](function(_0xe2dbdf){const _0x826667=_0x4c4b67;logger[_0x826667(0x19b)](JSON['stringify'](_0xe2dbdf));});});},Migration['prototype'][a1136_0x4414b7(0x1a8)]=function(_0x228559,_0x29e41f){const _0x43f580=a1136_0x4414b7,_0xe5f76f=this;this['sequence'][_0x43f580(0x1a2)](function(){const _0x3d24d5=_0x43f580;return _0xe5f76f['queryInterface']['removeIndex'](_0x228559,_0x29e41f)['then'](function(){logger['info']('removeIndex\x20%s\x20%s',_0x228559,_0x29e41f);})[_0x3d24d5(0x198)](function(_0x511390){const _0x220c0d=_0x3d24d5;logger['info'](JSON[_0x220c0d(0x19c)](_0x511390));});});},Migration['prototype'][a1136_0x4414b7(0x1a0)]=function(_0x25a6f4){const _0x4397b4=a1136_0x4414b7,_0x5aa8cb=this;this['sequence'][_0x4397b4(0x1a2)](function(){const _0x2801ed=_0x4397b4;return _0x5aa8cb[_0x2801ed(0x19a)][_0x2801ed(0x1a4)]['query'](_0x25a6f4)[_0x2801ed(0x19d)](function(){const _0x515028=_0x2801ed;logger['info'](_0x515028(0x1b5),_0x25a6f4);})[_0x2801ed(0x198)](function(_0xb3033b){const _0x1dfbc4=_0x2801ed;logger[_0x1dfbc4(0x19b)](JSON[_0x1dfbc4(0x19c)](_0xb3033b));});});},Migration['prototype'][a1136_0x4414b7(0x1a7)]=function(_0x5ddd17,_0x386696){const _0x4d71da=a1136_0x4414b7,_0x1ca505=this;this[_0x4d71da(0x199)]['enqueue'](function(){const _0x24d5e0=_0x4d71da;return _0x1ca505[_0x24d5e0(0x19a)][_0x24d5e0(0x1a7)](_0x5ddd17,_0x386696)[_0x24d5e0(0x19d)](function(){const _0x4d7683=_0x24d5e0;logger[_0x4d7683(0x19b)](_0x4d7683(0x1af),_0x386696,_0x5ddd17);})['catch'](function(_0x4afbeb){const _0x1e3593=_0x24d5e0;logger[_0x1e3593(0x19b)](util[_0x1e3593(0x19f)](_0x4afbeb,{'showHidden':![],'depth':null}));});});},Migration[a1136_0x4414b7(0x1b2)][a1136_0x4414b7(0x1a3)]=function(_0x44c148,_0x411275,_0x325927){const _0x2db52a=a1136_0x4414b7,_0x32f8bd=this;this[_0x2db52a(0x199)]['enqueue'](function(){const _0x56205c=_0x2db52a;return _0x32f8bd[_0x56205c(0x19a)][_0x56205c(0x1a3)](_0x44c148,_0x411275,_0x325927)[_0x56205c(0x19d)](function(){const _0xcdf8a6=_0x56205c;logger[_0xcdf8a6(0x19b)](_0xcdf8a6(0x1b3),_0x411275,_0x325927,_0x44c148);})['catch'](function(_0x409fda){const _0x5d2dcb=_0x56205c;logger[_0x5d2dcb(0x19b)](util[_0x5d2dcb(0x19f)](_0x409fda,{'showHidden':![],'depth':null}));});});},Migration[a1136_0x4414b7(0x1b2)][a1136_0x4414b7(0x19e)]=function(_0x481c12){const _0x8ebf07=a1136_0x4414b7;this[_0x8ebf07(0x199)][_0x8ebf07(0x1a2)](function(){return _0x481c12();});},module[a1136_0x4414b7(0x1b1)]={'up':function(_0x13e4bb,_0x399f57){return new Promise(function(_0x5003e6){const _0x741329=a1136_0x139a,_0x5aa277=new Migration(_0x13e4bb);_0x5aa277['addColumn']('users',_0x741329(0x1a5),{'type':_0x399f57[_0x741329(0x1a1)]}),_0x5aa277['addColumn'](_0x741329(0x1b4),_0x741329(0x1ac),{'type':_0x399f57[_0x741329(0x1a1)]}),_0x5aa277[_0x741329(0x1a6)](_0x741329(0x197),[_0x741329(0x1aa)],_0x741329(0x1aa)),_0x5aa277[_0x741329(0x19e)](_0x5003e6);});},'down':function(){}};
\ No newline at end of file