Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / migrations / 2.2.1.js
index 3cba4ff..eaac413 100644 (file)
@@ -1 +1 @@
-const a966_0x14d8=['dropTable','then','sequelize','finally','prototype','catch','../config/logger','removeIndex','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','queryInterface','renameColumn','addColumn','exports','final','sequence','query','inspect','migration','util','addIndex','Removed\x20column\x20%s\x20from\x20%s','addIndex\x20%s\x20%s\x20%s','stringify','changeColumn','enqueue','join','info','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn'];(function(_0x308ab0,_0x14d839){const _0x17ff68=function(_0x17bf25){while(--_0x17bf25){_0x308ab0['push'](_0x308ab0['shift']());}};_0x17ff68(++_0x14d839);}(a966_0x14d8,0x79));const a966_0x17ff=function(_0x308ab0,_0x14d839){_0x308ab0=_0x308ab0-0x0;let _0x17ff68=a966_0x14d8[_0x308ab0];return _0x17ff68;};const _0x58c35=a966_0x17ff;'use strict';const util=require(_0x58c35('0x12')),logger=require(_0x58c35('0x5'))(_0x58c35('0x11')),Sequence=function(){};Sequence[_0x58c35('0x3')][_0x58c35('0x18')]=function(_0x17bf25){const _0x22b013=_0x58c35;this['tail']=this['tail']?this['tail'][_0x22b013('0x2')](_0x17bf25):_0x17bf25();};const Migration=function(_0x2d3d3d){const _0xe23ec3=_0x58c35;this[_0xe23ec3('0x9')]=_0x2d3d3d,this[_0xe23ec3('0xe')]=new Sequence();};Migration['prototype'][_0x58c35('0x17')]=function(_0x10222f,_0x7b50c7,_0xc299a1){const _0x138817=_0x58c35,_0x3fafd9=this;this[_0x138817('0xe')]['enqueue'](function(){const _0x486159=_0x138817;return _0x3fafd9[_0x486159('0x9')]['changeColumn'](_0x10222f,_0x7b50c7,_0xc299a1)[_0x486159('0x0')](function(){const _0x4bf27e=_0x486159;logger[_0x4bf27e('0x1a')](_0x4bf27e('0x1b'),_0x7b50c7,_0x10222f);})[_0x486159('0x4')](function(_0x3b23fd){const _0x1235c2=_0x486159;logger[_0x1235c2('0x1a')](JSON[_0x1235c2('0x16')](_0x3b23fd));});});},Migration['prototype'][_0x58c35('0xb')]=function(_0xa640d2,_0x55924c,_0x211982){const _0x483442=_0x58c35,_0x32c4b0=this;this[_0x483442('0xe')][_0x483442('0x18')](function(){const _0x31b7a3=_0x483442;return _0x32c4b0[_0x31b7a3('0x9')][_0x31b7a3('0xb')](_0xa640d2,_0x55924c,_0x211982)[_0x31b7a3('0x0')](function(){const _0x5b42ff=_0x31b7a3;logger[_0x5b42ff('0x1a')]('Added\x20column\x20%s\x20to\x20%s',_0x55924c,_0xa640d2);})[_0x31b7a3('0x4')](function(_0x3b2310){const _0x36d048=_0x31b7a3;logger[_0x36d048('0x1a')](JSON[_0x36d048('0x16')](_0x3b2310));});});},Migration['prototype'][_0x58c35('0x1d')]=function(_0x1a27ec){const _0x16ff0f=_0x58c35,_0x23ccf0=this;this[_0x16ff0f('0xe')][_0x16ff0f('0x18')](function(){const _0x5cbbf7=_0x16ff0f;return _0x23ccf0['queryInterface'][_0x5cbbf7('0x1d')](_0x1a27ec,{'force':!![]})[_0x5cbbf7('0x0')](function(){const _0x58e71f=_0x5cbbf7;logger[_0x58e71f('0x1a')](_0x58e71f('0x7'),_0x1a27ec);})[_0x5cbbf7('0x4')](function(_0x5797d9){const _0x17166b=_0x5cbbf7;logger[_0x17166b('0x1a')](JSON[_0x17166b('0x16')](_0x5797d9));});});},Migration['prototype']['addIndex']=function(_0x1e6161,_0xef9f0f,_0x2e3c0f){const _0x451707=_0x58c35,_0x5d8645=this;this[_0x451707('0xe')][_0x451707('0x18')](function(){const _0x80a38b=_0x451707;return _0x5d8645[_0x80a38b('0x9')][_0x80a38b('0x13')](_0x1e6161,_0xef9f0f,{'indexName':_0x2e3c0f})[_0x80a38b('0x0')](function(){const _0x54c005=_0x80a38b;logger[_0x54c005('0x1a')](_0x54c005('0x15'),_0x1e6161,_0xef9f0f[_0x54c005('0x19')](','),_0x2e3c0f);})[_0x80a38b('0x4')](function(_0x27da47){const _0x35b991=_0x80a38b;logger[_0x35b991('0x1a')](JSON['stringify'](_0x27da47));});});},Migration[_0x58c35('0x3')][_0x58c35('0x6')]=function(_0x58c18a,_0x4e2ad0){const _0x440550=_0x58c35,_0x5d67bb=this;this[_0x440550('0xe')][_0x440550('0x18')](function(){const _0x3db75d=_0x440550;return _0x5d67bb[_0x3db75d('0x9')][_0x3db75d('0x6')](_0x58c18a,_0x4e2ad0)[_0x3db75d('0x0')](function(){const _0x121014=_0x3db75d;logger['info'](_0x121014('0x8'),_0x58c18a,_0x4e2ad0);})[_0x3db75d('0x4')](function(_0x195d2a){const _0x48695e=_0x3db75d;logger[_0x48695e('0x1a')](JSON[_0x48695e('0x16')](_0x195d2a));});});},Migration[_0x58c35('0x3')][_0x58c35('0xf')]=function(_0x3086dc){const _0xbb5502=_0x58c35,_0xc918aa=this;this[_0xbb5502('0xe')][_0xbb5502('0x18')](function(){const _0x3aceff=_0xbb5502;return _0xc918aa[_0x3aceff('0x9')][_0x3aceff('0x1')]['query'](_0x3086dc)[_0x3aceff('0x0')](function(){const _0x4dfc38=_0x3aceff;logger[_0x4dfc38('0x1a')]('query\x20%s',_0x3086dc);})['catch'](function(_0x3970a7){logger['info'](JSON['stringify'](_0x3970a7));});});},Migration[_0x58c35('0x3')][_0x58c35('0x1c')]=function(_0x514468,_0x2a30bb){const _0x180b70=_0x58c35,_0x5652cd=this;this[_0x180b70('0xe')][_0x180b70('0x18')](function(){const _0x477e95=_0x180b70;return _0x5652cd['queryInterface'][_0x477e95('0x1c')](_0x514468,_0x2a30bb)['then'](function(){const _0x3dfde7=_0x477e95;logger[_0x3dfde7('0x1a')](_0x3dfde7('0x14'),_0x2a30bb,_0x514468);})[_0x477e95('0x4')](function(_0xa3d4b9){const _0x38c683=_0x477e95;logger[_0x38c683('0x1a')](util[_0x38c683('0x10')](_0xa3d4b9,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x5698ac,_0x5971c9,_0x10c74b){const _0x312c16=_0x58c35,_0x3f8414=this;this[_0x312c16('0xe')][_0x312c16('0x18')](function(){const _0x265907=_0x312c16;return _0x3f8414['queryInterface'][_0x265907('0xa')](_0x5698ac,_0x5971c9,_0x10c74b)[_0x265907('0x0')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5971c9,_0x10c74b,_0x5698ac);})['catch'](function(_0x21f5f3){const _0x51ad30=_0x265907;logger[_0x51ad30('0x1a')](util[_0x51ad30('0x10')](_0x21f5f3,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x58c35('0xd')]=function(_0x527726){const _0x57e0e2=_0x58c35;this[_0x57e0e2('0xe')][_0x57e0e2('0x18')](function(){return _0x527726();});},module[_0x58c35('0xc')]={'up':function(_0x3a832c){return new Promise(function(_0x500190){const _0x56fcda=new Migration(_0x3a832c);_0x56fcda['final'](_0x500190);});},'down':function(){}};
\ No newline at end of file
+const a966_0x189d=['sequelize','migration','enqueue','sequence','prototype','then','stringify','join','query','removeIndex\x20%s\x20%s','queryInterface','util','tail','addIndex\x20%s\x20%s\x20%s','inspect','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','changeColumn','info','../config/logger','renameColumn','addColumn','catch','Removed\x20column\x20%s\x20from\x20%s','removeIndex','exports','addIndex','final'];(function(_0x309c1a,_0x189df6){const _0x167886=function(_0x23f1e6){while(--_0x23f1e6){_0x309c1a['push'](_0x309c1a['shift']());}};_0x167886(++_0x189df6);}(a966_0x189d,0xd0));const a966_0x1678=function(_0x309c1a,_0x189df6){_0x309c1a=_0x309c1a-0x0;let _0x167886=a966_0x189d[_0x309c1a];return _0x167886;};const _0x1ce8ac=a966_0x1678;'use strict';const util=require(_0x1ce8ac('0x1b')),logger=require(_0x1ce8ac('0x7'))(_0x1ce8ac('0x11')),Sequence=function(){};Sequence[_0x1ce8ac('0x14')][_0x1ce8ac('0x12')]=function(_0x23f1e6){const _0x4d3d40=_0x1ce8ac;this[_0x4d3d40('0x0')]=this['tail']?this[_0x4d3d40('0x0')]['finally'](_0x23f1e6):_0x23f1e6();};const Migration=function(_0x27cc05){const _0x19531a=_0x1ce8ac;this[_0x19531a('0x1a')]=_0x27cc05,this[_0x19531a('0x13')]=new Sequence();};Migration[_0x1ce8ac('0x14')]['changeColumn']=function(_0x340a8e,_0x5bdfe8,_0x21e58b){const _0x410cf5=_0x1ce8ac,_0x2f112f=this;this['sequence'][_0x410cf5('0x12')](function(){const _0x18c017=_0x410cf5;return _0x2f112f['queryInterface'][_0x18c017('0x5')](_0x340a8e,_0x5bdfe8,_0x21e58b)[_0x18c017('0x15')](function(){const _0x29fd87=_0x18c017;logger[_0x29fd87('0x6')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x5bdfe8,_0x340a8e);})[_0x18c017('0xa')](function(_0x5c0883){const _0x55d0e2=_0x18c017;logger[_0x55d0e2('0x6')](JSON['stringify'](_0x5c0883));});});},Migration[_0x1ce8ac('0x14')][_0x1ce8ac('0x9')]=function(_0x3af973,_0x39017b,_0x22dcd5){const _0x90580e=_0x1ce8ac,_0x17e9d4=this;this[_0x90580e('0x13')][_0x90580e('0x12')](function(){const _0x18d4fb=_0x90580e;return _0x17e9d4[_0x18d4fb('0x1a')]['addColumn'](_0x3af973,_0x39017b,_0x22dcd5)[_0x18d4fb('0x15')](function(){const _0x214b78=_0x18d4fb;logger[_0x214b78('0x6')]('Added\x20column\x20%s\x20to\x20%s',_0x39017b,_0x3af973);})['catch'](function(_0x2f7d7e){logger['info'](JSON['stringify'](_0x2f7d7e));});});},Migration[_0x1ce8ac('0x14')]['dropTable']=function(_0x183e6b){const _0x50548b=_0x1ce8ac,_0x27d21b=this;this[_0x50548b('0x13')][_0x50548b('0x12')](function(){const _0x3a20c7=_0x50548b;return _0x27d21b['queryInterface']['dropTable'](_0x183e6b,{'force':!![]})[_0x3a20c7('0x15')](function(){const _0x270837=_0x3a20c7;logger[_0x270837('0x6')]('table\x20dropped\x20%s',_0x183e6b);})[_0x3a20c7('0xa')](function(_0x19f157){const _0x5300b0=_0x3a20c7;logger[_0x5300b0('0x6')](JSON['stringify'](_0x19f157));});});},Migration[_0x1ce8ac('0x14')][_0x1ce8ac('0xe')]=function(_0x54109d,_0x544ede,_0x115d36){const _0x3b7479=_0x1ce8ac,_0x52753a=this;this[_0x3b7479('0x13')]['enqueue'](function(){const _0x3b96ab=_0x3b7479;return _0x52753a['queryInterface'][_0x3b96ab('0xe')](_0x54109d,_0x544ede,{'indexName':_0x115d36})[_0x3b96ab('0x15')](function(){const _0x547b9b=_0x3b96ab;logger['info'](_0x547b9b('0x1'),_0x54109d,_0x544ede[_0x547b9b('0x17')](','),_0x115d36);})[_0x3b96ab('0xa')](function(_0x5b4762){const _0x22c0cd=_0x3b96ab;logger[_0x22c0cd('0x6')](JSON['stringify'](_0x5b4762));});});},Migration[_0x1ce8ac('0x14')][_0x1ce8ac('0xc')]=function(_0x49606,_0xcd8b7b){const _0x3353=_0x1ce8ac,_0x32f266=this;this[_0x3353('0x13')]['enqueue'](function(){const _0x149d0a=_0x3353;return _0x32f266[_0x149d0a('0x1a')][_0x149d0a('0xc')](_0x49606,_0xcd8b7b)[_0x149d0a('0x15')](function(){const _0x2ba459=_0x149d0a;logger[_0x2ba459('0x6')](_0x2ba459('0x19'),_0x49606,_0xcd8b7b);})[_0x149d0a('0xa')](function(_0x4d193b){const _0x33dfc9=_0x149d0a;logger['info'](JSON[_0x33dfc9('0x16')](_0x4d193b));});});},Migration[_0x1ce8ac('0x14')][_0x1ce8ac('0x18')]=function(_0x315560){const _0x165976=_0x1ce8ac,_0x23599b=this;this['sequence'][_0x165976('0x12')](function(){const _0x2d8eb1=_0x165976;return _0x23599b[_0x2d8eb1('0x1a')][_0x2d8eb1('0x10')][_0x2d8eb1('0x18')](_0x315560)[_0x2d8eb1('0x15')](function(){logger['info']('query\x20%s',_0x315560);})[_0x2d8eb1('0xa')](function(_0x545dd7){const _0x2029de=_0x2d8eb1;logger[_0x2029de('0x6')](JSON['stringify'](_0x545dd7));});});},Migration[_0x1ce8ac('0x14')][_0x1ce8ac('0x4')]=function(_0x1f9153,_0x3c7d0f){const _0x31d566=_0x1ce8ac,_0x5e3a1c=this;this[_0x31d566('0x13')][_0x31d566('0x12')](function(){const _0x3a1ff4=_0x31d566;return _0x5e3a1c[_0x3a1ff4('0x1a')]['removeColumn'](_0x1f9153,_0x3c7d0f)['then'](function(){const _0x22565f=_0x3a1ff4;logger[_0x22565f('0x6')](_0x22565f('0xb'),_0x3c7d0f,_0x1f9153);})['catch'](function(_0x200db5){const _0x3af5b2=_0x3a1ff4;logger[_0x3af5b2('0x6')](util[_0x3af5b2('0x2')](_0x200db5,{'showHidden':![],'depth':null}));});});},Migration[_0x1ce8ac('0x14')][_0x1ce8ac('0x8')]=function(_0x2899a2,_0x3d653e,_0x52da9c){const _0x2eca21=_0x1ce8ac,_0x3b135d=this;this[_0x2eca21('0x13')][_0x2eca21('0x12')](function(){const _0x2a4478=_0x2eca21;return _0x3b135d[_0x2a4478('0x1a')][_0x2a4478('0x8')](_0x2899a2,_0x3d653e,_0x52da9c)[_0x2a4478('0x15')](function(){const _0x708de7=_0x2a4478;logger[_0x708de7('0x6')](_0x708de7('0x3'),_0x3d653e,_0x52da9c,_0x2899a2);})['catch'](function(_0x117421){const _0x16cc66=_0x2a4478;logger[_0x16cc66('0x6')](util['inspect'](_0x117421,{'showHidden':![],'depth':null}));});});},Migration[_0x1ce8ac('0x14')][_0x1ce8ac('0xf')]=function(_0x4fc3f4){const _0x22aecf=_0x1ce8ac;this['sequence'][_0x22aecf('0x12')](function(){return _0x4fc3f4();});},module[_0x1ce8ac('0xd')]={'up':function(_0x328f31){return new Promise(function(_0x3edd01){const _0x3cd1f7=a966_0x1678,_0x1db334=new Migration(_0x328f31);_0x1db334[_0x3cd1f7('0xf')](_0x3edd01);});},'down':function(){}};
\ No newline at end of file