Built motion from commit 709aa6fb5ed03aa61bc373fcdbf622215d37d30b. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.92.js
index 0d020cb..faf0f2a 100644 (file)
@@ -1 +1 @@
-const a983_0x5b99=['info','enqueue','renameColumn','addIndex\x20%s\x20%s\x20%s','catch','table\x20dropped\x20%s','join','addColumn','queryInterface','exports','sequelize','Removed\x20column\x20%s\x20from\x20%s','changeColumn','final','query','removeColumn','util','prototype','tail','../config/logger','then','removeIndex','sequence','stringify','addIndex','inspect'];(function(_0x6f613,_0x5b9947){const _0x5156e9=function(_0x142907){while(--_0x142907){_0x6f613['push'](_0x6f613['shift']());}};_0x5156e9(++_0x5b9947);}(a983_0x5b99,0xb7));const a983_0x5156=function(_0x6f613,_0x5b9947){_0x6f613=_0x6f613-0x0;let _0x5156e9=a983_0x5b99[_0x6f613];return _0x5156e9;};const _0x34c443=a983_0x5156;'use strict';const util=require(_0x34c443('0xf')),logger=require(_0x34c443('0x12'))('migration'),Sequence=function(){};Sequence[_0x34c443('0x10')][_0x34c443('0x0')]=function(_0x142907){const _0x318e7c=_0x34c443;this[_0x318e7c('0x11')]=this['tail']?this[_0x318e7c('0x11')]['finally'](_0x142907):_0x142907();};const Migration=function(_0x4a847b){const _0x2e9d5e=_0x34c443;this[_0x2e9d5e('0x7')]=_0x4a847b,this[_0x2e9d5e('0x15')]=new Sequence();};Migration['prototype'][_0x34c443('0xb')]=function(_0x3ac185,_0x1bae29,_0x380ff5){const _0x3ef018=_0x34c443,_0x5a963c=this;this[_0x3ef018('0x15')]['enqueue'](function(){const _0x4eb8d2=_0x3ef018;return _0x5a963c[_0x4eb8d2('0x7')][_0x4eb8d2('0xb')](_0x3ac185,_0x1bae29,_0x380ff5)[_0x4eb8d2('0x13')](function(){const _0x599c2d=_0x4eb8d2;logger[_0x599c2d('0x19')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1bae29,_0x3ac185);})[_0x4eb8d2('0x3')](function(_0x33a59b){const _0x1272b0=_0x4eb8d2;logger['info'](JSON[_0x1272b0('0x16')](_0x33a59b));});});},Migration[_0x34c443('0x10')][_0x34c443('0x6')]=function(_0x451025,_0x3e152c,_0x152591){const _0x38eb23=_0x34c443,_0x4f4ddf=this;this['sequence'][_0x38eb23('0x0')](function(){const _0x19958c=_0x38eb23;return _0x4f4ddf[_0x19958c('0x7')][_0x19958c('0x6')](_0x451025,_0x3e152c,_0x152591)[_0x19958c('0x13')](function(){const _0x51b3ed=_0x19958c;logger[_0x51b3ed('0x19')]('Added\x20column\x20%s\x20to\x20%s',_0x3e152c,_0x451025);})[_0x19958c('0x3')](function(_0xd77851){const _0x1c1858=_0x19958c;logger['info'](JSON[_0x1c1858('0x16')](_0xd77851));});});},Migration[_0x34c443('0x10')]['dropTable']=function(_0x470a18){const _0x2a3a38=_0x34c443,_0x3b59d0=this;this['sequence'][_0x2a3a38('0x0')](function(){const _0x21342b=_0x2a3a38;return _0x3b59d0['queryInterface']['dropTable'](_0x470a18,{'force':!![]})['then'](function(){const _0x289bc6=a983_0x5156;logger[_0x289bc6('0x19')](_0x289bc6('0x4'),_0x470a18);})[_0x21342b('0x3')](function(_0x5a4ff9){const _0x501a79=_0x21342b;logger[_0x501a79('0x19')](JSON[_0x501a79('0x16')](_0x5a4ff9));});});},Migration[_0x34c443('0x10')][_0x34c443('0x17')]=function(_0x5f4e55,_0x4871c1,_0x3718e8){const _0x569081=_0x34c443,_0x44027d=this;this['sequence'][_0x569081('0x0')](function(){const _0x1a792d=_0x569081;return _0x44027d['queryInterface'][_0x1a792d('0x17')](_0x5f4e55,_0x4871c1,{'indexName':_0x3718e8})[_0x1a792d('0x13')](function(){const _0x329474=_0x1a792d;logger['info'](_0x329474('0x2'),_0x5f4e55,_0x4871c1[_0x329474('0x5')](','),_0x3718e8);})['catch'](function(_0x110cbc){const _0x32c091=_0x1a792d;logger[_0x32c091('0x19')](JSON['stringify'](_0x110cbc));});});},Migration[_0x34c443('0x10')][_0x34c443('0x14')]=function(_0x30dd8b,_0x79fd1d){const _0x2a4210=_0x34c443,_0x552a1e=this;this[_0x2a4210('0x15')][_0x2a4210('0x0')](function(){const _0x5926a6=_0x2a4210;return _0x552a1e[_0x5926a6('0x7')][_0x5926a6('0x14')](_0x30dd8b,_0x79fd1d)[_0x5926a6('0x13')](function(){const _0x538204=_0x5926a6;logger[_0x538204('0x19')]('removeIndex\x20%s\x20%s',_0x30dd8b,_0x79fd1d);})[_0x5926a6('0x3')](function(_0x108591){const _0x2852f5=_0x5926a6;logger['info'](JSON[_0x2852f5('0x16')](_0x108591));});});},Migration[_0x34c443('0x10')]['query']=function(_0x53dee4){const _0x4c2d77=_0x34c443,_0x2a497b=this;this[_0x4c2d77('0x15')][_0x4c2d77('0x0')](function(){const _0x2c9c1b=_0x4c2d77;return _0x2a497b[_0x2c9c1b('0x7')][_0x2c9c1b('0x9')][_0x2c9c1b('0xd')](_0x53dee4)[_0x2c9c1b('0x13')](function(){logger['info']('query\x20%s',_0x53dee4);})[_0x2c9c1b('0x3')](function(_0x3cd485){const _0x45ddda=_0x2c9c1b;logger['info'](JSON[_0x45ddda('0x16')](_0x3cd485));});});},Migration[_0x34c443('0x10')][_0x34c443('0xe')]=function(_0x31b54e,_0x28aa25){const _0x5d4196=_0x34c443,_0xd6581c=this;this[_0x5d4196('0x15')]['enqueue'](function(){const _0x4ba81c=_0x5d4196;return _0xd6581c[_0x4ba81c('0x7')][_0x4ba81c('0xe')](_0x31b54e,_0x28aa25)[_0x4ba81c('0x13')](function(){const _0x87076c=_0x4ba81c;logger[_0x87076c('0x19')](_0x87076c('0xa'),_0x28aa25,_0x31b54e);})['catch'](function(_0x19be15){const _0x16da8f=_0x4ba81c;logger['info'](util[_0x16da8f('0x18')](_0x19be15,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x493b53,_0x44e2aa,_0x48f4e9){const _0x47e938=_0x34c443,_0x5c9337=this;this[_0x47e938('0x15')][_0x47e938('0x0')](function(){const _0x1ff7ca=_0x47e938;return _0x5c9337['queryInterface'][_0x1ff7ca('0x1')](_0x493b53,_0x44e2aa,_0x48f4e9)['then'](function(){const _0x17027e=_0x1ff7ca;logger[_0x17027e('0x19')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x44e2aa,_0x48f4e9,_0x493b53);})['catch'](function(_0x132ac2){logger['info'](util['inspect'](_0x132ac2,{'showHidden':![],'depth':null}));});});},Migration[_0x34c443('0x10')][_0x34c443('0xc')]=function(_0x23da79){const _0x5012ce=_0x34c443;this[_0x5012ce('0x15')]['enqueue'](function(){return _0x23da79();});},module[_0x34c443('0x8')]={'up':function(_0x3d2bba){return new Promise(function(_0x4b1ced){const _0x4b3018=a983_0x5156,_0x3e671e=new Migration(_0x3d2bba);_0x3e671e[_0x4b3018('0xc')](_0x4b1ced);});},'down':function(){}};
\ No newline at end of file
+const a983_0x2051=['finally','addIndex\x20%s\x20%s\x20%s','query\x20%s','stringify','Added\x20column\x20%s\x20to\x20%s','renameColumn','inspect','changeColumn','tail','removeIndex\x20%s\x20%s','then','info','../config/logger','removeColumn','enqueue','sequence','addIndex','addColumn','util','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequelize','catch','query','queryInterface','Removed\x20column\x20%s\x20from\x20%s','prototype','removeIndex','migration','exports','table\x20dropped\x20%s','final'];(function(_0xa1801f,_0x2051e3){const _0x424702=function(_0x16ca43){while(--_0x16ca43){_0xa1801f['push'](_0xa1801f['shift']());}};_0x424702(++_0x2051e3);}(a983_0x2051,0x188));const a983_0x4247=function(_0xa1801f,_0x2051e3){_0xa1801f=_0xa1801f-0x0;let _0x424702=a983_0x2051[_0xa1801f];return _0x424702;};const _0x3949db=a983_0x4247;'use strict';const util=require(_0x3949db('0x1d')),logger=require(_0x3949db('0x17'))(_0x3949db('0x7')),Sequence=function(){};Sequence[_0x3949db('0x5')][_0x3949db('0x19')]=function(_0x16ca43){const _0x42f54c=_0x3949db;this[_0x42f54c('0x13')]=this[_0x42f54c('0x13')]?this[_0x42f54c('0x13')][_0x42f54c('0xb')](_0x16ca43):_0x16ca43();};const Migration=function(_0x33fe22){const _0x5dafdf=_0x3949db;this['queryInterface']=_0x33fe22,this[_0x5dafdf('0x1a')]=new Sequence();};Migration[_0x3949db('0x5')][_0x3949db('0x12')]=function(_0x520f77,_0x9e58d,_0x53e169){const _0xb5f1c2=_0x3949db,_0x33cd92=this;this[_0xb5f1c2('0x1a')][_0xb5f1c2('0x19')](function(){const _0x5eaa2a=_0xb5f1c2;return _0x33cd92[_0x5eaa2a('0x3')][_0x5eaa2a('0x12')](_0x520f77,_0x9e58d,_0x53e169)[_0x5eaa2a('0x15')](function(){const _0x17a17f=_0x5eaa2a;logger[_0x17a17f('0x16')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x9e58d,_0x520f77);})['catch'](function(_0xdb8e56){const _0x2d3102=_0x5eaa2a;logger[_0x2d3102('0x16')](JSON['stringify'](_0xdb8e56));});});},Migration['prototype'][_0x3949db('0x1c')]=function(_0x1d2d79,_0x43788d,_0x20d248){const _0x4598a5=_0x3949db,_0x17efbe=this;this[_0x4598a5('0x1a')]['enqueue'](function(){const _0x3e1409=_0x4598a5;return _0x17efbe[_0x3e1409('0x3')][_0x3e1409('0x1c')](_0x1d2d79,_0x43788d,_0x20d248)[_0x3e1409('0x15')](function(){const _0x108bcb=_0x3e1409;logger['info'](_0x108bcb('0xf'),_0x43788d,_0x1d2d79);})[_0x3e1409('0x1')](function(_0x239664){const _0x37dcb1=_0x3e1409;logger[_0x37dcb1('0x16')](JSON[_0x37dcb1('0xe')](_0x239664));});});},Migration['prototype']['dropTable']=function(_0x5db891){const _0x2b4204=_0x3949db,_0x41236c=this;this[_0x2b4204('0x1a')]['enqueue'](function(){const _0x4dd2a6=_0x2b4204;return _0x41236c['queryInterface']['dropTable'](_0x5db891,{'force':!![]})[_0x4dd2a6('0x15')](function(){const _0x490981=_0x4dd2a6;logger['info'](_0x490981('0x9'),_0x5db891);})[_0x4dd2a6('0x1')](function(_0x18e5db){const _0x4e3995=_0x4dd2a6;logger[_0x4e3995('0x16')](JSON['stringify'](_0x18e5db));});});},Migration[_0x3949db('0x5')]['addIndex']=function(_0x201fac,_0x268c77,_0xeac633){const _0x36fc23=_0x3949db,_0x54d841=this;this[_0x36fc23('0x1a')][_0x36fc23('0x19')](function(){const _0x44c097=_0x36fc23;return _0x54d841['queryInterface'][_0x44c097('0x1b')](_0x201fac,_0x268c77,{'indexName':_0xeac633})[_0x44c097('0x15')](function(){const _0xefe1f1=_0x44c097;logger['info'](_0xefe1f1('0xc'),_0x201fac,_0x268c77['join'](','),_0xeac633);})[_0x44c097('0x1')](function(_0x4ce733){const _0x3dd7f5=_0x44c097;logger[_0x3dd7f5('0x16')](JSON[_0x3dd7f5('0xe')](_0x4ce733));});});},Migration['prototype'][_0x3949db('0x6')]=function(_0x510671,_0x22083c){const _0x269ec1=_0x3949db,_0x174886=this;this[_0x269ec1('0x1a')]['enqueue'](function(){const _0x5df232=_0x269ec1;return _0x174886[_0x5df232('0x3')][_0x5df232('0x6')](_0x510671,_0x22083c)[_0x5df232('0x15')](function(){const _0x1924cc=_0x5df232;logger['info'](_0x1924cc('0x14'),_0x510671,_0x22083c);})[_0x5df232('0x1')](function(_0x1b458b){const _0x39c960=_0x5df232;logger[_0x39c960('0x16')](JSON[_0x39c960('0xe')](_0x1b458b));});});},Migration[_0x3949db('0x5')][_0x3949db('0x2')]=function(_0x5bfeb5){const _0x5cef08=_0x3949db,_0x4be601=this;this[_0x5cef08('0x1a')][_0x5cef08('0x19')](function(){const _0x4eb9c3=_0x5cef08;return _0x4be601[_0x4eb9c3('0x3')][_0x4eb9c3('0x0')]['query'](_0x5bfeb5)[_0x4eb9c3('0x15')](function(){const _0x17f6f0=_0x4eb9c3;logger[_0x17f6f0('0x16')](_0x17f6f0('0xd'),_0x5bfeb5);})[_0x4eb9c3('0x1')](function(_0x90e398){const _0xf3262c=_0x4eb9c3;logger[_0xf3262c('0x16')](JSON[_0xf3262c('0xe')](_0x90e398));});});},Migration[_0x3949db('0x5')][_0x3949db('0x18')]=function(_0x2a49df,_0x5d24bf){const _0x59a1bc=_0x3949db,_0x5176b7=this;this[_0x59a1bc('0x1a')][_0x59a1bc('0x19')](function(){const _0x595c11=_0x59a1bc;return _0x5176b7[_0x595c11('0x3')][_0x595c11('0x18')](_0x2a49df,_0x5d24bf)[_0x595c11('0x15')](function(){const _0x25ba87=_0x595c11;logger[_0x25ba87('0x16')](_0x25ba87('0x4'),_0x5d24bf,_0x2a49df);})[_0x595c11('0x1')](function(_0x37bedb){const _0x764cc7=_0x595c11;logger[_0x764cc7('0x16')](util[_0x764cc7('0x11')](_0x37bedb,{'showHidden':![],'depth':null}));});});},Migration[_0x3949db('0x5')][_0x3949db('0x10')]=function(_0xbf8c5f,_0xcca13,_0x1f4eb3){const _0x34f04d=_0x3949db,_0x12fa2a=this;this['sequence'][_0x34f04d('0x19')](function(){const _0x3365ff=_0x34f04d;return _0x12fa2a['queryInterface'][_0x3365ff('0x10')](_0xbf8c5f,_0xcca13,_0x1f4eb3)['then'](function(){const _0x12a56b=_0x3365ff;logger[_0x12a56b('0x16')](_0x12a56b('0x1e'),_0xcca13,_0x1f4eb3,_0xbf8c5f);})[_0x3365ff('0x1')](function(_0x25a6ed){const _0x53ff5a=_0x3365ff;logger['info'](util[_0x53ff5a('0x11')](_0x25a6ed,{'showHidden':![],'depth':null}));});});},Migration[_0x3949db('0x5')][_0x3949db('0xa')]=function(_0x5000c9){const _0x561b32=_0x3949db;this[_0x561b32('0x1a')]['enqueue'](function(){return _0x5000c9();});},module[_0x3949db('0x8')]={'up':function(_0x47986b){return new Promise(function(_0x2e93ce){const _0x28d9c0=a983_0x4247,_0x231be7=new Migration(_0x47986b);_0x231be7[_0x28d9c0('0xa')](_0x2e93ce);});},'down':function(){}};
\ No newline at end of file