Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.5.js
index 2f5bd17..c4ca5c2 100644 (file)
@@ -1 +1 @@
-const a1008_0x4680=['../config/logger','exports','addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','tail','prototype','removeColumn','indicesType','enqueue','inspect','sequelize','indexName','query\x20%s','migration','query','Added\x20column\x20%s\x20to\x20%s','removeIndex','addIndex','util','then','join','addIndex\x20%s\x20%s\x20%s\x20[%s]','catch','dropTable','changeColumn','finally','info','final','sequence','queryInterface','stringify'];(function(_0x432339,_0x4680f6){const _0x59cd24=function(_0x2629b9){while(--_0x2629b9){_0x432339['push'](_0x432339['shift']());}};_0x59cd24(++_0x4680f6);}(a1008_0x4680,0xff));const a1008_0x59cd=function(_0x432339,_0x4680f6){_0x432339=_0x432339-0x0;let _0x59cd24=a1008_0x4680[_0x432339];return _0x59cd24;};const _0x1778bd=a1008_0x59cd;'use strict';const util=require(_0x1778bd('0x14')),logger=require(_0x1778bd('0x1'))(_0x1778bd('0xf')),Sequence=function(){};Sequence[_0x1778bd('0x7')]['enqueue']=function(_0x2629b9){const _0x19ed0a=_0x1778bd;this[_0x19ed0a('0x6')]=this[_0x19ed0a('0x6')]?this['tail'][_0x19ed0a('0x1b')](_0x2629b9):_0x2629b9();};const Migration=function(_0x39210e){const _0x41d819=_0x1778bd;this[_0x41d819('0x1f')]=_0x39210e,this[_0x41d819('0x1e')]=new Sequence();};Migration[_0x1778bd('0x7')]['changeColumn']=function(_0x1aa3c6,_0xd25077,_0x2b0dd2){const _0xf265ed=_0x1778bd,_0x5c40b8=this;this[_0xf265ed('0x1e')][_0xf265ed('0xa')](function(){const _0x4ea4b6=_0xf265ed;return _0x5c40b8[_0x4ea4b6('0x1f')][_0x4ea4b6('0x1a')](_0x1aa3c6,_0xd25077,_0x2b0dd2)[_0x4ea4b6('0x15')](function(){const _0x214d19=_0x4ea4b6;logger[_0x214d19('0x1c')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xd25077,_0x1aa3c6);})[_0x4ea4b6('0x18')](function(_0x5ba392){const _0x1a2ba3=_0x4ea4b6;logger[_0x1a2ba3('0x1c')](JSON[_0x1a2ba3('0x0')](_0x5ba392));});});},Migration[_0x1778bd('0x7')][_0x1778bd('0x3')]=function(_0x3dbd5e,_0x2ddcb3,_0x4366a6){const _0x59d7b3=_0x1778bd,_0x3a2915=this;this[_0x59d7b3('0x1e')][_0x59d7b3('0xa')](function(){const _0x2503d4=_0x59d7b3;return _0x3a2915[_0x2503d4('0x1f')][_0x2503d4('0x3')](_0x3dbd5e,_0x2ddcb3,_0x4366a6)[_0x2503d4('0x15')](function(){const _0x5e6516=_0x2503d4;logger[_0x5e6516('0x1c')](_0x5e6516('0x11'),_0x2ddcb3,_0x3dbd5e);})[_0x2503d4('0x18')](function(_0x1b0b6d){const _0x3f65af=_0x2503d4;logger[_0x3f65af('0x1c')](JSON[_0x3f65af('0x0')](_0x1b0b6d));});});},Migration['prototype'][_0x1778bd('0x19')]=function(_0x310002){const _0x5d4e70=_0x1778bd,_0x233f38=this;this[_0x5d4e70('0x1e')]['enqueue'](function(){const _0x2974d8=_0x5d4e70;return _0x233f38[_0x2974d8('0x1f')][_0x2974d8('0x19')](_0x310002,{'force':!![]})['then'](function(){const _0x50f9f4=_0x2974d8;logger['info'](_0x50f9f4('0x5'),_0x310002);})[_0x2974d8('0x18')](function(_0x4c434f){const _0x561b50=_0x2974d8;logger[_0x561b50('0x1c')](JSON['stringify'](_0x4c434f));});});},Migration[_0x1778bd('0x7')][_0x1778bd('0x13')]=function(_0x117f94,_0x3a57cb,_0x4938cb){const _0x11a2ce=_0x1778bd,_0x2391e4=this;this[_0x11a2ce('0x1e')][_0x11a2ce('0xa')](function(){const _0x42c490=_0x11a2ce;return _0x2391e4['queryInterface'][_0x42c490('0x13')](_0x117f94,_0x3a57cb,{'indexName':_0x4938cb[_0x42c490('0xd')],'indicesType':_0x4938cb[_0x42c490('0x9')]})[_0x42c490('0x15')](function(){const _0x3b8a3c=_0x42c490;logger[_0x3b8a3c('0x1c')](_0x3b8a3c('0x17'),_0x117f94,_0x3a57cb[_0x3b8a3c('0x16')](','),_0x4938cb[_0x3b8a3c('0xd')],_0x4938cb[_0x3b8a3c('0x9')]);})[_0x42c490('0x18')](function(_0x595b6d){const _0x3d91da=_0x42c490;logger['info'](JSON[_0x3d91da('0x0')](_0x595b6d));});});},Migration[_0x1778bd('0x7')][_0x1778bd('0x12')]=function(_0x2a9b74,_0x228e5e){const _0x3608aa=_0x1778bd,_0x56283f=this;this[_0x3608aa('0x1e')]['enqueue'](function(){const _0x29b500=_0x3608aa;return _0x56283f['queryInterface'][_0x29b500('0x12')](_0x2a9b74,_0x228e5e)[_0x29b500('0x15')](function(){const _0x546e6f=_0x29b500;logger[_0x546e6f('0x1c')]('removeIndex\x20%s\x20%s',_0x2a9b74,_0x228e5e);})['catch'](function(_0x2082c6){const _0x977f76=_0x29b500;logger['info'](JSON[_0x977f76('0x0')](_0x2082c6));});});},Migration[_0x1778bd('0x7')][_0x1778bd('0x10')]=function(_0xb7ad27){const _0x353ccb=_0x1778bd,_0x47b1d9=this;this['sequence'][_0x353ccb('0xa')](function(){const _0x2f5e15=_0x353ccb;return _0x47b1d9[_0x2f5e15('0x1f')][_0x2f5e15('0xc')][_0x2f5e15('0x10')](_0xb7ad27)[_0x2f5e15('0x15')](function(){const _0x4c69e3=_0x2f5e15;logger[_0x4c69e3('0x1c')](_0x4c69e3('0xe'),_0xb7ad27);})[_0x2f5e15('0x18')](function(_0x242d53){const _0x4eb652=_0x2f5e15;logger[_0x4eb652('0x1c')](JSON[_0x4eb652('0x0')](_0x242d53));});});},Migration[_0x1778bd('0x7')][_0x1778bd('0x8')]=function(_0x1fb60d,_0x574fcd){const _0x958fd0=_0x1778bd,_0x430ae2=this;this[_0x958fd0('0x1e')][_0x958fd0('0xa')](function(){const _0x38294b=_0x958fd0;return _0x430ae2['queryInterface'][_0x38294b('0x8')](_0x1fb60d,_0x574fcd)[_0x38294b('0x15')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x574fcd,_0x1fb60d);})['catch'](function(_0x3abc31){logger['info'](util['inspect'](_0x3abc31,{'showHidden':![],'depth':null}));});});},Migration[_0x1778bd('0x7')]['renameColumn']=function(_0x5c4296,_0x5cb003,_0x4ff656){const _0x3dcb2b=_0x1778bd,_0x94d047=this;this[_0x3dcb2b('0x1e')]['enqueue'](function(){const _0xf758a8=_0x3dcb2b;return _0x94d047[_0xf758a8('0x1f')]['renameColumn'](_0x5c4296,_0x5cb003,_0x4ff656)['then'](function(){const _0x3a90b9=_0xf758a8;logger[_0x3a90b9('0x1c')](_0x3a90b9('0x4'),_0x5cb003,_0x4ff656,_0x5c4296);})[_0xf758a8('0x18')](function(_0x3a5d4f){const _0x336ee9=_0xf758a8;logger['info'](util[_0x336ee9('0xb')](_0x3a5d4f,{'showHidden':![],'depth':null}));});});},Migration[_0x1778bd('0x7')]['final']=function(_0x226865){const _0x13adee=_0x1778bd;this[_0x13adee('0x1e')][_0x13adee('0xa')](function(){return _0x226865();});},module[_0x1778bd('0x2')]={'up':function(_0x322632){return new Promise(function(_0x5683c7){const _0x52857a=a1008_0x59cd,_0x49ec32=new Migration(_0x322632);_0x49ec32[_0x52857a('0x1d')](_0x5683c7);});},'down':function(){}};
\ No newline at end of file
+const a1008_0x21ac=['catch','query','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn','info','removeColumn','util','then','addIndex\x20%s\x20%s\x20%s\x20[%s]','../config/logger','removeIndex\x20%s\x20%s','queryInterface','query\x20%s','renameColumn','exports','join','finally','sequence','dropTable','Removed\x20column\x20%s\x20from\x20%s','inspect','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','final','removeIndex','prototype','stringify','sequelize'];(function(_0x209596,_0x21ac10){const _0x256cf7=function(_0x35eecf){while(--_0x35eecf){_0x209596['push'](_0x209596['shift']());}};_0x256cf7(++_0x21ac10);}(a1008_0x21ac,0xf1));const a1008_0x256c=function(_0x209596,_0x21ac10){_0x209596=_0x209596-0x0;let _0x256cf7=a1008_0x21ac[_0x209596];return _0x256cf7;};const _0x5603f7=a1008_0x256c;'use strict';const util=require(_0x5603f7('0x1b')),logger=require(_0x5603f7('0x1'))('migration'),Sequence=function(){};Sequence[_0x5603f7('0x11')][_0x5603f7('0xd')]=function(_0x35eecf){const _0x1fbd34=_0x5603f7;this['tail']=this[_0x1fbd34('0x16')]?this[_0x1fbd34('0x16')][_0x1fbd34('0x8')](_0x35eecf):_0x35eecf();};const Migration=function(_0x4557f5){const _0x2fbb9c=_0x5603f7;this[_0x2fbb9c('0x3')]=_0x4557f5,this[_0x2fbb9c('0x9')]=new Sequence();};Migration[_0x5603f7('0x11')]['changeColumn']=function(_0x427a8b,_0x3b2833,_0x384e85){const _0x50975e=_0x5603f7,_0x3677f9=this;this[_0x50975e('0x9')][_0x50975e('0xd')](function(){const _0x3d90dd=_0x50975e;return _0x3677f9[_0x3d90dd('0x3')]['changeColumn'](_0x427a8b,_0x3b2833,_0x384e85)[_0x3d90dd('0x1c')](function(){const _0x255ce1=_0x3d90dd;logger[_0x255ce1('0x19')](_0x255ce1('0xe'),_0x3b2833,_0x427a8b);})[_0x3d90dd('0x14')](function(_0x54e99c){const _0x218f8d=_0x3d90dd;logger[_0x218f8d('0x19')](JSON['stringify'](_0x54e99c));});});},Migration[_0x5603f7('0x11')][_0x5603f7('0x18')]=function(_0x44299d,_0x3f6115,_0x4e6d22){const _0x564b83=_0x5603f7,_0x32ec70=this;this[_0x564b83('0x9')][_0x564b83('0xd')](function(){const _0x36be54=_0x564b83;return _0x32ec70['queryInterface'][_0x36be54('0x18')](_0x44299d,_0x3f6115,_0x4e6d22)[_0x36be54('0x1c')](function(){const _0x41aa3e=_0x36be54;logger[_0x41aa3e('0x19')]('Added\x20column\x20%s\x20to\x20%s',_0x3f6115,_0x44299d);})[_0x36be54('0x14')](function(_0x164774){const _0x3f9d41=_0x36be54;logger[_0x3f9d41('0x19')](JSON[_0x3f9d41('0x12')](_0x164774));});});},Migration[_0x5603f7('0x11')][_0x5603f7('0xa')]=function(_0x6f2e00){const _0x1919da=_0x5603f7,_0x78b693=this;this[_0x1919da('0x9')]['enqueue'](function(){const _0x11fe9a=_0x1919da;return _0x78b693[_0x11fe9a('0x3')][_0x11fe9a('0xa')](_0x6f2e00,{'force':!![]})[_0x11fe9a('0x1c')](function(){logger['info']('table\x20dropped\x20%s',_0x6f2e00);})[_0x11fe9a('0x14')](function(_0xe9f858){const _0x105bb9=_0x11fe9a;logger[_0x105bb9('0x19')](JSON[_0x105bb9('0x12')](_0xe9f858));});});},Migration[_0x5603f7('0x11')]['addIndex']=function(_0x1b7bac,_0x35dcd7,_0x523d5d){const _0x3df38c=_0x5603f7,_0x28b4da=this;this[_0x3df38c('0x9')]['enqueue'](function(){const _0x18f229=_0x3df38c;return _0x28b4da[_0x18f229('0x3')]['addIndex'](_0x1b7bac,_0x35dcd7,{'indexName':_0x523d5d['indexName'],'indicesType':_0x523d5d['indicesType']})[_0x18f229('0x1c')](function(){const _0x35f0d7=_0x18f229;logger['info'](_0x35f0d7('0x0'),_0x1b7bac,_0x35dcd7[_0x35f0d7('0x7')](','),_0x523d5d['indexName'],_0x523d5d['indicesType']);})[_0x18f229('0x14')](function(_0x22665e){const _0xab234b=_0x18f229;logger['info'](JSON[_0xab234b('0x12')](_0x22665e));});});},Migration[_0x5603f7('0x11')][_0x5603f7('0x10')]=function(_0x5593ec,_0x2480f0){const _0x142e21=_0x5603f7,_0x27ade5=this;this[_0x142e21('0x9')]['enqueue'](function(){const _0x1f5228=_0x142e21;return _0x27ade5[_0x1f5228('0x3')][_0x1f5228('0x10')](_0x5593ec,_0x2480f0)[_0x1f5228('0x1c')](function(){const _0x2cf2c1=_0x1f5228;logger[_0x2cf2c1('0x19')](_0x2cf2c1('0x2'),_0x5593ec,_0x2480f0);})[_0x1f5228('0x14')](function(_0x26a6aa){const _0x43b50b=_0x1f5228;logger[_0x43b50b('0x19')](JSON[_0x43b50b('0x12')](_0x26a6aa));});});},Migration[_0x5603f7('0x11')][_0x5603f7('0x15')]=function(_0x2e25a5){const _0xd8ced9=_0x5603f7,_0x5aa008=this;this[_0xd8ced9('0x9')]['enqueue'](function(){const _0x177389=_0xd8ced9;return _0x5aa008['queryInterface'][_0x177389('0x13')]['query'](_0x2e25a5)[_0x177389('0x1c')](function(){const _0x42b79d=_0x177389;logger[_0x42b79d('0x19')](_0x42b79d('0x4'),_0x2e25a5);})[_0x177389('0x14')](function(_0x4e653b){const _0x5f4056=_0x177389;logger[_0x5f4056('0x19')](JSON[_0x5f4056('0x12')](_0x4e653b));});});},Migration[_0x5603f7('0x11')]['removeColumn']=function(_0xace540,_0x7b4694){const _0x596715=_0x5603f7,_0x1652ed=this;this[_0x596715('0x9')][_0x596715('0xd')](function(){const _0x247ba0=_0x596715;return _0x1652ed[_0x247ba0('0x3')][_0x247ba0('0x1a')](_0xace540,_0x7b4694)[_0x247ba0('0x1c')](function(){const _0x3a1523=_0x247ba0;logger['info'](_0x3a1523('0xb'),_0x7b4694,_0xace540);})[_0x247ba0('0x14')](function(_0x7f8d1b){const _0xb9e10d=_0x247ba0;logger[_0xb9e10d('0x19')](util[_0xb9e10d('0xc')](_0x7f8d1b,{'showHidden':![],'depth':null}));});});},Migration[_0x5603f7('0x11')][_0x5603f7('0x5')]=function(_0xdfb665,_0x496de9,_0x15a5a2){const _0xbfdf0d=_0x5603f7,_0x460a06=this;this[_0xbfdf0d('0x9')]['enqueue'](function(){const _0x25e391=_0xbfdf0d;return _0x460a06['queryInterface'][_0x25e391('0x5')](_0xdfb665,_0x496de9,_0x15a5a2)[_0x25e391('0x1c')](function(){const _0x1439d2=_0x25e391;logger[_0x1439d2('0x19')](_0x1439d2('0x17'),_0x496de9,_0x15a5a2,_0xdfb665);})['catch'](function(_0x422d3b){const _0x4784b0=_0x25e391;logger[_0x4784b0('0x19')](util['inspect'](_0x422d3b,{'showHidden':![],'depth':null}));});});},Migration[_0x5603f7('0x11')][_0x5603f7('0xf')]=function(_0x1818f7){const _0x1f0cfe=_0x5603f7;this['sequence'][_0x1f0cfe('0xd')](function(){return _0x1818f7();});},module[_0x5603f7('0x6')]={'up':function(_0x277e55){return new Promise(function(_0x4e9791){const _0x3b32eb=new Migration(_0x277e55);_0x3b32eb['final'](_0x4e9791);});},'down':function(){}};
\ No newline at end of file