Built motion from commit ded33658aad58fc8de845a8299a9db59a88cc353. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.5.js
index c747d00..80ff817 100644 (file)
@@ -1 +1 @@
-const a978_0x1337=['query\x20%s','then','join','catch','util','indexName','info','addIndex','query','sequelize','addColumn','enqueue','prototype','exports','Changed\x20column\x20%s\x20in\x20table\x20%s','final','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s','sequence','../config/logger','removeColumn','tail','inspect','addIndex\x20%s\x20%s\x20%s\x20[%s]','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex','renameColumn','changeColumn','indicesType','migration','queryInterface','stringify'];(function(_0x4cb3d9,_0x1337fa){const _0x3458fb=function(_0x55d12b){while(--_0x55d12b){_0x4cb3d9['push'](_0x4cb3d9['shift']());}};_0x3458fb(++_0x1337fa);}(a978_0x1337,0x6f));const a978_0x3458=function(_0x4cb3d9,_0x1337fa){_0x4cb3d9=_0x4cb3d9-0x0;let _0x3458fb=a978_0x1337[_0x4cb3d9];return _0x3458fb;};const _0xb09ae0=a978_0x3458;'use strict';const util=require(_0xb09ae0('0x15')),logger=require(_0xb09ae0('0x4'))(_0xb09ae0('0xe')),Sequence=function(){};Sequence[_0xb09ae0('0x1d')][_0xb09ae0('0x1c')]=function(_0x55d12b){const _0x1b0f2d=_0xb09ae0;this['tail']=this[_0x1b0f2d('0x6')]?this[_0x1b0f2d('0x6')]['finally'](_0x55d12b):_0x55d12b();};const Migration=function(_0x46873a){const _0x27b972=_0xb09ae0;this['queryInterface']=_0x46873a,this[_0x27b972('0x3')]=new Sequence();};Migration[_0xb09ae0('0x1d')][_0xb09ae0('0xc')]=function(_0x560828,_0x1fd3a3,_0xa68fe1){const _0x1324e4=_0xb09ae0,_0x4a632a=this;this[_0x1324e4('0x3')][_0x1324e4('0x1c')](function(){const _0x90aad4=_0x1324e4;return _0x4a632a[_0x90aad4('0xf')]['changeColumn'](_0x560828,_0x1fd3a3,_0xa68fe1)[_0x90aad4('0x12')](function(){const _0xab6863=_0x90aad4;logger['info'](_0xab6863('0x1f'),_0x1fd3a3,_0x560828);})['catch'](function(_0x2d9d96){const _0x424885=_0x90aad4;logger[_0x424885('0x17')](JSON[_0x424885('0x10')](_0x2d9d96));});});},Migration[_0xb09ae0('0x1d')][_0xb09ae0('0x1b')]=function(_0x27e86e,_0x69af18,_0x5f0b7b){const _0x27ab84=_0xb09ae0,_0x34e1c3=this;this[_0x27ab84('0x3')][_0x27ab84('0x1c')](function(){const _0x63ad66=_0x27ab84;return _0x34e1c3[_0x63ad66('0xf')][_0x63ad66('0x1b')](_0x27e86e,_0x69af18,_0x5f0b7b)[_0x63ad66('0x12')](function(){const _0x12a876=_0x63ad66;logger[_0x12a876('0x17')]('Added\x20column\x20%s\x20to\x20%s',_0x69af18,_0x27e86e);})[_0x63ad66('0x14')](function(_0x364d3d){const _0x150f68=_0x63ad66;logger[_0x150f68('0x17')](JSON['stringify'](_0x364d3d));});});},Migration[_0xb09ae0('0x1d')]['dropTable']=function(_0x582f55){const _0x380b65=_0xb09ae0,_0x497d70=this;this[_0x380b65('0x3')][_0x380b65('0x1c')](function(){const _0x548f3f=_0x380b65;return _0x497d70[_0x548f3f('0xf')]['dropTable'](_0x582f55,{'force':!![]})[_0x548f3f('0x12')](function(){const _0x44a6d5=_0x548f3f;logger[_0x44a6d5('0x17')]('table\x20dropped\x20%s',_0x582f55);})[_0x548f3f('0x14')](function(_0x4967c6){const _0x405952=_0x548f3f;logger[_0x405952('0x17')](JSON[_0x405952('0x10')](_0x4967c6));});});},Migration[_0xb09ae0('0x1d')][_0xb09ae0('0x18')]=function(_0x4ad9b6,_0x301850,_0x198923){const _0x2f4eeb=this;this['sequence']['enqueue'](function(){const _0x4ad389=a978_0x3458;return _0x2f4eeb[_0x4ad389('0xf')][_0x4ad389('0x18')](_0x4ad9b6,_0x301850,{'indexName':_0x198923[_0x4ad389('0x16')],'indicesType':_0x198923[_0x4ad389('0xd')]})['then'](function(){const _0x26f538=_0x4ad389;logger['info'](_0x26f538('0x8'),_0x4ad9b6,_0x301850[_0x26f538('0x13')](','),_0x198923['indexName'],_0x198923[_0x26f538('0xd')]);})[_0x4ad389('0x14')](function(_0x42c56e){const _0x2322ce=_0x4ad389;logger[_0x2322ce('0x17')](JSON[_0x2322ce('0x10')](_0x42c56e));});});},Migration['prototype'][_0xb09ae0('0xa')]=function(_0x5b4a8f,_0x42735f){const _0x263837=_0xb09ae0,_0x2401fb=this;this['sequence'][_0x263837('0x1c')](function(){const _0x3c9136=_0x263837;return _0x2401fb[_0x3c9136('0xf')][_0x3c9136('0xa')](_0x5b4a8f,_0x42735f)[_0x3c9136('0x12')](function(){const _0x13e294=_0x3c9136;logger['info'](_0x13e294('0x2'),_0x5b4a8f,_0x42735f);})[_0x3c9136('0x14')](function(_0x868b91){const _0x4a972e=_0x3c9136;logger[_0x4a972e('0x17')](JSON[_0x4a972e('0x10')](_0x868b91));});});},Migration['prototype'][_0xb09ae0('0x19')]=function(_0x49c8d5){const _0x36ec58=_0xb09ae0,_0x58f788=this;this[_0x36ec58('0x3')][_0x36ec58('0x1c')](function(){const _0x2696f8=_0x36ec58;return _0x58f788[_0x2696f8('0xf')][_0x2696f8('0x1a')][_0x2696f8('0x19')](_0x49c8d5)[_0x2696f8('0x12')](function(){const _0x717861=_0x2696f8;logger[_0x717861('0x17')](_0x717861('0x11'),_0x49c8d5);})['catch'](function(_0x359a93){const _0x5779d8=_0x2696f8;logger[_0x5779d8('0x17')](JSON[_0x5779d8('0x10')](_0x359a93));});});},Migration[_0xb09ae0('0x1d')][_0xb09ae0('0x5')]=function(_0x3960ce,_0x32b2fb){const _0x5814b1=_0xb09ae0,_0x1f662d=this;this[_0x5814b1('0x3')][_0x5814b1('0x1c')](function(){const _0x4ef55f=_0x5814b1;return _0x1f662d[_0x4ef55f('0xf')][_0x4ef55f('0x5')](_0x3960ce,_0x32b2fb)[_0x4ef55f('0x12')](function(){const _0x27087a=_0x4ef55f;logger[_0x27087a('0x17')](_0x27087a('0x1'),_0x32b2fb,_0x3960ce);})[_0x4ef55f('0x14')](function(_0xd49a47){const _0x144937=_0x4ef55f;logger[_0x144937('0x17')](util[_0x144937('0x7')](_0xd49a47,{'showHidden':![],'depth':null}));});});},Migration[_0xb09ae0('0x1d')][_0xb09ae0('0xb')]=function(_0x5974e2,_0x5e55a8,_0x217e48){const _0x3682cb=_0xb09ae0,_0x3cf4e3=this;this[_0x3682cb('0x3')]['enqueue'](function(){const _0x4834ea=_0x3682cb;return _0x3cf4e3['queryInterface'][_0x4834ea('0xb')](_0x5974e2,_0x5e55a8,_0x217e48)['then'](function(){const _0x564b53=_0x4834ea;logger[_0x564b53('0x17')](_0x564b53('0x9'),_0x5e55a8,_0x217e48,_0x5974e2);})[_0x4834ea('0x14')](function(_0x55ef43){logger['info'](util['inspect'](_0x55ef43,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x1181d4){const _0x253cc4=_0xb09ae0;this[_0x253cc4('0x3')]['enqueue'](function(){return _0x1181d4();});},module[_0xb09ae0('0x1e')]={'up':function(_0x2b2aab){return new Promise(function(_0x4d19ac){const _0x462a08=a978_0x3458,_0x5d8314=new Migration(_0x2b2aab);_0x5d8314[_0x462a08('0x0')](_0x4d19ac);});},'down':function(){}};
\ No newline at end of file
+const a978_0x41ca=['prototype','sequence','tail','query\x20%s','migration','then','inspect','stringify','addIndex\x20%s\x20%s\x20%s\x20[%s]','Changed\x20column\x20%s\x20in\x20table\x20%s','indexName','queryInterface','renameColumn','enqueue','dropTable','indicesType','info','Removed\x20column\x20%s\x20from\x20%s','removeColumn','finally','join','../config/logger','addIndex','addColumn','table\x20dropped\x20%s','query','final','catch'];(function(_0xf914c7,_0x41ca54){const _0x26257f=function(_0x4e380f){while(--_0x4e380f){_0xf914c7['push'](_0xf914c7['shift']());}};_0x26257f(++_0x41ca54);}(a978_0x41ca,0xd8));const a978_0x2625=function(_0xf914c7,_0x41ca54){_0xf914c7=_0xf914c7-0x0;let _0x26257f=a978_0x41ca[_0xf914c7];return _0x26257f;};const _0x5ee4ab=a978_0x2625;'use strict';const util=require('util'),logger=require(_0x5ee4ab('0x1'))(_0x5ee4ab('0xc')),Sequence=function(){};Sequence[_0x5ee4ab('0x8')][_0x5ee4ab('0x15')]=function(_0x4e380f){const _0x40e845=_0x5ee4ab;this[_0x40e845('0xa')]=this[_0x40e845('0xa')]?this[_0x40e845('0xa')][_0x40e845('0x1b')](_0x4e380f):_0x4e380f();};const Migration=function(_0x3cf169){const _0x53bf4f=_0x5ee4ab;this['queryInterface']=_0x3cf169,this[_0x53bf4f('0x9')]=new Sequence();};Migration[_0x5ee4ab('0x8')]['changeColumn']=function(_0x4ce25b,_0x5cb7ee,_0x55d59c){const _0x2b8be7=_0x5ee4ab,_0x5d26f4=this;this[_0x2b8be7('0x9')][_0x2b8be7('0x15')](function(){const _0x5c42b3=_0x2b8be7;return _0x5d26f4['queryInterface']['changeColumn'](_0x4ce25b,_0x5cb7ee,_0x55d59c)[_0x5c42b3('0xd')](function(){const _0x517eb8=_0x5c42b3;logger[_0x517eb8('0x18')](_0x517eb8('0x11'),_0x5cb7ee,_0x4ce25b);})['catch'](function(_0x2602c9){const _0x2dec05=_0x5c42b3;logger[_0x2dec05('0x18')](JSON[_0x2dec05('0xf')](_0x2602c9));});});},Migration['prototype'][_0x5ee4ab('0x3')]=function(_0x4da8df,_0x5bd04a,_0x28fafd){const _0xdeade2=_0x5ee4ab,_0x5aed9c=this;this[_0xdeade2('0x9')][_0xdeade2('0x15')](function(){const _0x38a8d7=_0xdeade2;return _0x5aed9c[_0x38a8d7('0x13')][_0x38a8d7('0x3')](_0x4da8df,_0x5bd04a,_0x28fafd)[_0x38a8d7('0xd')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x5bd04a,_0x4da8df);})[_0x38a8d7('0x7')](function(_0x553993){const _0x5c289c=_0x38a8d7;logger[_0x5c289c('0x18')](JSON[_0x5c289c('0xf')](_0x553993));});});},Migration[_0x5ee4ab('0x8')][_0x5ee4ab('0x16')]=function(_0xa041c2){const _0xb9efab=_0x5ee4ab,_0x23c5be=this;this['sequence'][_0xb9efab('0x15')](function(){const _0x5d9ad1=_0xb9efab;return _0x23c5be['queryInterface'][_0x5d9ad1('0x16')](_0xa041c2,{'force':!![]})[_0x5d9ad1('0xd')](function(){const _0x571954=_0x5d9ad1;logger[_0x571954('0x18')](_0x571954('0x4'),_0xa041c2);})[_0x5d9ad1('0x7')](function(_0x1d95f6){logger['info'](JSON['stringify'](_0x1d95f6));});});},Migration[_0x5ee4ab('0x8')][_0x5ee4ab('0x2')]=function(_0x17c02c,_0x2202cc,_0x53b5e1){const _0x3de3b2=_0x5ee4ab,_0x30e390=this;this['sequence'][_0x3de3b2('0x15')](function(){const _0x1dbf0c=_0x3de3b2;return _0x30e390[_0x1dbf0c('0x13')][_0x1dbf0c('0x2')](_0x17c02c,_0x2202cc,{'indexName':_0x53b5e1[_0x1dbf0c('0x12')],'indicesType':_0x53b5e1['indicesType']})[_0x1dbf0c('0xd')](function(){const _0x2285d7=_0x1dbf0c;logger[_0x2285d7('0x18')](_0x2285d7('0x10'),_0x17c02c,_0x2202cc[_0x2285d7('0x0')](','),_0x53b5e1[_0x2285d7('0x12')],_0x53b5e1[_0x2285d7('0x17')]);})[_0x1dbf0c('0x7')](function(_0x445a8f){const _0x1ea4b6=_0x1dbf0c;logger[_0x1ea4b6('0x18')](JSON[_0x1ea4b6('0xf')](_0x445a8f));});});},Migration['prototype']['removeIndex']=function(_0x12467a,_0x3a2f78){const _0x1873e6=_0x5ee4ab,_0x60ffc2=this;this[_0x1873e6('0x9')][_0x1873e6('0x15')](function(){const _0x3e73de=_0x1873e6;return _0x60ffc2[_0x3e73de('0x13')]['removeIndex'](_0x12467a,_0x3a2f78)[_0x3e73de('0xd')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x12467a,_0x3a2f78);})['catch'](function(_0x1893ca){const _0x52febb=_0x3e73de;logger[_0x52febb('0x18')](JSON[_0x52febb('0xf')](_0x1893ca));});});},Migration[_0x5ee4ab('0x8')][_0x5ee4ab('0x5')]=function(_0x32e72a){const _0x2f89b4=_0x5ee4ab,_0x153788=this;this[_0x2f89b4('0x9')][_0x2f89b4('0x15')](function(){const _0x433f4d=_0x2f89b4;return _0x153788[_0x433f4d('0x13')]['sequelize'][_0x433f4d('0x5')](_0x32e72a)[_0x433f4d('0xd')](function(){const _0x4f7b62=_0x433f4d;logger[_0x4f7b62('0x18')](_0x4f7b62('0xb'),_0x32e72a);})[_0x433f4d('0x7')](function(_0x1058fa){const _0x4f4a57=_0x433f4d;logger[_0x4f4a57('0x18')](JSON[_0x4f4a57('0xf')](_0x1058fa));});});},Migration[_0x5ee4ab('0x8')][_0x5ee4ab('0x1a')]=function(_0x3645c0,_0x37f27b){const _0x22ed47=_0x5ee4ab,_0xbed8f6=this;this[_0x22ed47('0x9')][_0x22ed47('0x15')](function(){const _0x25d0b2=_0x22ed47;return _0xbed8f6['queryInterface'][_0x25d0b2('0x1a')](_0x3645c0,_0x37f27b)[_0x25d0b2('0xd')](function(){const _0x5153c0=_0x25d0b2;logger[_0x5153c0('0x18')](_0x5153c0('0x19'),_0x37f27b,_0x3645c0);})[_0x25d0b2('0x7')](function(_0x3759a0){const _0x176aca=_0x25d0b2;logger['info'](util[_0x176aca('0xe')](_0x3759a0,{'showHidden':![],'depth':null}));});});},Migration[_0x5ee4ab('0x8')][_0x5ee4ab('0x14')]=function(_0x9d278c,_0x252f4c,_0x2c43be){const _0x228f78=_0x5ee4ab,_0x449987=this;this[_0x228f78('0x9')][_0x228f78('0x15')](function(){const _0x2f0640=_0x228f78;return _0x449987[_0x2f0640('0x13')][_0x2f0640('0x14')](_0x9d278c,_0x252f4c,_0x2c43be)[_0x2f0640('0xd')](function(){const _0x213d93=_0x2f0640;logger[_0x213d93('0x18')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x252f4c,_0x2c43be,_0x9d278c);})[_0x2f0640('0x7')](function(_0x516347){const _0x3b79ee=_0x2f0640;logger[_0x3b79ee('0x18')](util['inspect'](_0x516347,{'showHidden':![],'depth':null}));});});},Migration[_0x5ee4ab('0x8')][_0x5ee4ab('0x6')]=function(_0x5417f5){const _0x295371=_0x5ee4ab;this[_0x295371('0x9')][_0x295371('0x15')](function(){return _0x5417f5();});},module['exports']={'up':function(_0xe56c6c){return new Promise(function(_0x3af643){const _0x5da609=a978_0x2625,_0x5860ee=new Migration(_0xe56c6c);_0x5860ee[_0x5da609('0x6')](_0x3af643);});},'down':function(){}};
\ No newline at end of file