Built motion from commit 4a18b36e645f5fa4a517d36f9783bde259878164. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.21.js
index c0aebba..962ed4d 100644 (file)
@@ -1 +1 @@
-const a1005_0x10f7=['catch','then','Removed\x20column\x20%s\x20from\x20%s','indexName','finally','query\x20%s','query','join','changeColumn','sequelize','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','final','util','dropTable','info','Added\x20column\x20%s\x20to\x20%s','removeIndex','queryInterface','addColumn','renameColumn','enqueue','tail','../config/logger','exports','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','inspect','sequence','prototype','removeIndex\x20%s\x20%s','indicesType'];(function(_0x31fef7,_0x10f71d){const _0x8db9bb=function(_0x40435e){while(--_0x40435e){_0x31fef7['push'](_0x31fef7['shift']());}};_0x8db9bb(++_0x10f71d);}(a1005_0x10f7,0x1ec));const a1005_0x8db9=function(_0x31fef7,_0x10f71d){_0x31fef7=_0x31fef7-0x0;let _0x8db9bb=a1005_0x10f7[_0x31fef7];return _0x8db9bb;};const _0x3aa422=a1005_0x8db9;'use strict';const util=require(_0x3aa422('0x10')),logger=require(_0x3aa422('0x1a'))('migration'),Sequence=function(){};Sequence['prototype'][_0x3aa422('0x18')]=function(_0x40435e){const _0x228380=_0x3aa422;this['tail']=this[_0x228380('0x19')]?this[_0x228380('0x19')][_0x228380('0x7')](_0x40435e):_0x40435e();};const Migration=function(_0x27f433){const _0x1b4901=_0x3aa422;this[_0x1b4901('0x15')]=_0x27f433,this[_0x1b4901('0x20')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x5509c4,_0x5d3048,_0x547bed){const _0x47bcc1=_0x3aa422,_0x33ea1e=this;this[_0x47bcc1('0x20')][_0x47bcc1('0x18')](function(){const _0x5eb7d6=_0x47bcc1;return _0x33ea1e[_0x5eb7d6('0x15')][_0x5eb7d6('0xb')](_0x5509c4,_0x5d3048,_0x547bed)[_0x5eb7d6('0x4')](function(){const _0x231679=_0x5eb7d6;logger[_0x231679('0x12')](_0x231679('0x1d'),_0x5d3048,_0x5509c4);})[_0x5eb7d6('0x3')](function(_0x358d42){const _0xb62c34=_0x5eb7d6;logger[_0xb62c34('0x12')](JSON[_0xb62c34('0x1e')](_0x358d42));});});},Migration[_0x3aa422('0x0')][_0x3aa422('0x16')]=function(_0x3598e3,_0x2fba75,_0x5d8a04){const _0x3d014c=_0x3aa422,_0x5197e5=this;this[_0x3d014c('0x20')][_0x3d014c('0x18')](function(){const _0x52d29a=_0x3d014c;return _0x5197e5[_0x52d29a('0x15')][_0x52d29a('0x16')](_0x3598e3,_0x2fba75,_0x5d8a04)[_0x52d29a('0x4')](function(){const _0x230f58=_0x52d29a;logger[_0x230f58('0x12')](_0x230f58('0x13'),_0x2fba75,_0x3598e3);})[_0x52d29a('0x3')](function(_0x3a7038){const _0x5101c7=_0x52d29a;logger['info'](JSON[_0x5101c7('0x1e')](_0x3a7038));});});},Migration[_0x3aa422('0x0')][_0x3aa422('0x11')]=function(_0x342c12){const _0x213ea9=_0x3aa422,_0x29be5f=this;this['sequence'][_0x213ea9('0x18')](function(){const _0x492e83=_0x213ea9;return _0x29be5f[_0x492e83('0x15')][_0x492e83('0x11')](_0x342c12,{'force':!![]})[_0x492e83('0x4')](function(){const _0x1ec16e=_0x492e83;logger[_0x1ec16e('0x12')]('table\x20dropped\x20%s',_0x342c12);})[_0x492e83('0x3')](function(_0x4e0cf6){const _0x13291d=_0x492e83;logger[_0x13291d('0x12')](JSON[_0x13291d('0x1e')](_0x4e0cf6));});});},Migration[_0x3aa422('0x0')][_0x3aa422('0x1c')]=function(_0x50b5bb,_0x4f9b6d,_0x110b37){const _0x27d355=_0x3aa422,_0x18424f=this;this[_0x27d355('0x20')][_0x27d355('0x18')](function(){const _0x5b7dee=_0x27d355;return _0x18424f[_0x5b7dee('0x15')][_0x5b7dee('0x1c')](_0x50b5bb,_0x4f9b6d,{'indexName':_0x110b37['indexName'],'indicesType':_0x110b37[_0x5b7dee('0x2')]})[_0x5b7dee('0x4')](function(){const _0x11a180=_0x5b7dee;logger[_0x11a180('0x12')](_0x11a180('0xe'),_0x50b5bb,_0x4f9b6d[_0x11a180('0xa')](','),_0x110b37[_0x11a180('0x6')],_0x110b37['indicesType']);})[_0x5b7dee('0x3')](function(_0x5b6840){const _0x52c51a=_0x5b7dee;logger[_0x52c51a('0x12')](JSON[_0x52c51a('0x1e')](_0x5b6840));});});},Migration['prototype'][_0x3aa422('0x14')]=function(_0x4c0c75,_0x2ea57a){const _0x49fa7f=_0x3aa422,_0x2520be=this;this[_0x49fa7f('0x20')][_0x49fa7f('0x18')](function(){const _0x319a23=_0x49fa7f;return _0x2520be[_0x319a23('0x15')][_0x319a23('0x14')](_0x4c0c75,_0x2ea57a)[_0x319a23('0x4')](function(){const _0x2ac7d7=_0x319a23;logger[_0x2ac7d7('0x12')](_0x2ac7d7('0x1'),_0x4c0c75,_0x2ea57a);})[_0x319a23('0x3')](function(_0x212f37){const _0x3d3c95=_0x319a23;logger[_0x3d3c95('0x12')](JSON['stringify'](_0x212f37));});});},Migration[_0x3aa422('0x0')][_0x3aa422('0x9')]=function(_0x296ff8){const _0x5657ca=_0x3aa422,_0xbc1666=this;this[_0x5657ca('0x20')]['enqueue'](function(){const _0x2ac5b3=_0x5657ca;return _0xbc1666[_0x2ac5b3('0x15')][_0x2ac5b3('0xc')][_0x2ac5b3('0x9')](_0x296ff8)[_0x2ac5b3('0x4')](function(){const _0x11df93=_0x2ac5b3;logger[_0x11df93('0x12')](_0x11df93('0x8'),_0x296ff8);})[_0x2ac5b3('0x3')](function(_0x14cfab){const _0x1b8512=_0x2ac5b3;logger[_0x1b8512('0x12')](JSON[_0x1b8512('0x1e')](_0x14cfab));});});},Migration['prototype']['removeColumn']=function(_0x3dca7d,_0x19cd49){const _0x12f7bd=_0x3aa422,_0x25cb8d=this;this[_0x12f7bd('0x20')][_0x12f7bd('0x18')](function(){const _0x1fad33=_0x12f7bd;return _0x25cb8d['queryInterface']['removeColumn'](_0x3dca7d,_0x19cd49)[_0x1fad33('0x4')](function(){const _0x1d585b=_0x1fad33;logger['info'](_0x1d585b('0x5'),_0x19cd49,_0x3dca7d);})[_0x1fad33('0x3')](function(_0x472e16){const _0x3b9778=_0x1fad33;logger[_0x3b9778('0x12')](util[_0x3b9778('0x1f')](_0x472e16,{'showHidden':![],'depth':null}));});});},Migration[_0x3aa422('0x0')][_0x3aa422('0x17')]=function(_0x3722bd,_0x54dbe0,_0x353ceb){const _0x227294=_0x3aa422,_0x54f924=this;this['sequence'][_0x227294('0x18')](function(){const _0x4e9efa=_0x227294;return _0x54f924[_0x4e9efa('0x15')]['renameColumn'](_0x3722bd,_0x54dbe0,_0x353ceb)[_0x4e9efa('0x4')](function(){const _0x45f0c3=_0x4e9efa;logger['info'](_0x45f0c3('0xd'),_0x54dbe0,_0x353ceb,_0x3722bd);})[_0x4e9efa('0x3')](function(_0x5f29fd){const _0x11be66=_0x4e9efa;logger[_0x11be66('0x12')](util[_0x11be66('0x1f')](_0x5f29fd,{'showHidden':![],'depth':null}));});});},Migration[_0x3aa422('0x0')][_0x3aa422('0xf')]=function(_0x410201){const _0x356088=_0x3aa422;this[_0x356088('0x20')][_0x356088('0x18')](function(){return _0x410201();});},module[_0x3aa422('0x1b')]={'up':function(_0x34c52e){return new Promise(function(_0x80869b){const _0x33175f=new Migration(_0x34c52e);_0x33175f['final'](_0x80869b);});},'down':function(){}};
\ No newline at end of file
+const a1004_0x5c2b=['changeColumn','sequence','inspect','join','then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn','query','enqueue','addIndex\x20%s\x20%s\x20%s\x20[%s]','dropTable','final','finally','indicesType','exports','stringify','removeIndex','query\x20%s','catch','removeColumn','prototype','../config/logger','renameColumn','indexName','addIndex','info','sequelize','tail','queryInterface'];(function(_0x44dffd,_0x5c2b17){const _0x6a2865=function(_0x2e7e5d){while(--_0x2e7e5d){_0x44dffd['push'](_0x44dffd['shift']());}};_0x6a2865(++_0x5c2b17);}(a1004_0x5c2b,0x1f2));const a1004_0x6a28=function(_0x44dffd,_0x5c2b17){_0x44dffd=_0x44dffd-0x0;let _0x6a2865=a1004_0x5c2b[_0x44dffd];return _0x6a2865;};const _0xe2dd98=a1004_0x6a28;'use strict';const util=require('util'),logger=require(_0xe2dd98('0x10'))('migration'),Sequence=function(){};Sequence[_0xe2dd98('0xf')][_0xe2dd98('0x3')]=function(_0x2e7e5d){const _0x39c354=_0xe2dd98;this[_0x39c354('0x16')]=this[_0x39c354('0x16')]?this[_0x39c354('0x16')][_0x39c354('0x7')](_0x2e7e5d):_0x2e7e5d();};const Migration=function(_0x48fd7e){const _0x17e828=_0xe2dd98;this[_0x17e828('0x17')]=_0x48fd7e,this['sequence']=new Sequence();};Migration[_0xe2dd98('0xf')][_0xe2dd98('0x18')]=function(_0x52ce39,_0x410688,_0xe2fd28){const _0x284264=_0xe2dd98,_0x129710=this;this[_0x284264('0x19')][_0x284264('0x3')](function(){const _0x26d41d=_0x284264;return _0x129710[_0x26d41d('0x17')]['changeColumn'](_0x52ce39,_0x410688,_0xe2fd28)[_0x26d41d('0x1c')](function(){const _0x52e6a8=_0x26d41d;logger[_0x52e6a8('0x14')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x410688,_0x52ce39);})[_0x26d41d('0xd')](function(_0x2183a9){const _0x59ac2e=_0x26d41d;logger[_0x59ac2e('0x14')](JSON['stringify'](_0x2183a9));});});},Migration[_0xe2dd98('0xf')][_0xe2dd98('0x1')]=function(_0x5ea60f,_0x445d3c,_0x20648a){const _0x1f22bd=_0xe2dd98,_0x4fa047=this;this[_0x1f22bd('0x19')][_0x1f22bd('0x3')](function(){const _0x2c6db7=_0x1f22bd;return _0x4fa047[_0x2c6db7('0x17')][_0x2c6db7('0x1')](_0x5ea60f,_0x445d3c,_0x20648a)[_0x2c6db7('0x1c')](function(){const _0x165be1=_0x2c6db7;logger[_0x165be1('0x14')]('Added\x20column\x20%s\x20to\x20%s',_0x445d3c,_0x5ea60f);})[_0x2c6db7('0xd')](function(_0x2c8dce){const _0x336a21=_0x2c6db7;logger['info'](JSON[_0x336a21('0xa')](_0x2c8dce));});});},Migration['prototype'][_0xe2dd98('0x5')]=function(_0x466954){const _0x14bbd1=_0xe2dd98,_0x3fb32c=this;this[_0x14bbd1('0x19')][_0x14bbd1('0x3')](function(){const _0x2db2b1=_0x14bbd1;return _0x3fb32c[_0x2db2b1('0x17')]['dropTable'](_0x466954,{'force':!![]})[_0x2db2b1('0x1c')](function(){const _0x44970b=_0x2db2b1;logger[_0x44970b('0x14')]('table\x20dropped\x20%s',_0x466954);})['catch'](function(_0x53b66c){const _0x3c9373=_0x2db2b1;logger[_0x3c9373('0x14')](JSON[_0x3c9373('0xa')](_0x53b66c));});});},Migration[_0xe2dd98('0xf')][_0xe2dd98('0x13')]=function(_0x532c19,_0x197608,_0x1e088d){const _0x52ffd6=_0xe2dd98,_0x9e9b1c=this;this[_0x52ffd6('0x19')]['enqueue'](function(){const _0x3cb60d=_0x52ffd6;return _0x9e9b1c[_0x3cb60d('0x17')]['addIndex'](_0x532c19,_0x197608,{'indexName':_0x1e088d['indexName'],'indicesType':_0x1e088d[_0x3cb60d('0x8')]})[_0x3cb60d('0x1c')](function(){const _0x3b84f7=_0x3cb60d;logger[_0x3b84f7('0x14')](_0x3b84f7('0x4'),_0x532c19,_0x197608[_0x3b84f7('0x1b')](','),_0x1e088d[_0x3b84f7('0x12')],_0x1e088d[_0x3b84f7('0x8')]);})['catch'](function(_0x4e725d){const _0x3415b4=_0x3cb60d;logger['info'](JSON[_0x3415b4('0xa')](_0x4e725d));});});},Migration[_0xe2dd98('0xf')][_0xe2dd98('0xb')]=function(_0x625845,_0x2a45e6){const _0x406456=_0xe2dd98,_0x3b2a59=this;this[_0x406456('0x19')]['enqueue'](function(){const _0x3b3d75=_0x406456;return _0x3b2a59[_0x3b3d75('0x17')]['removeIndex'](_0x625845,_0x2a45e6)[_0x3b3d75('0x1c')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x625845,_0x2a45e6);})[_0x3b3d75('0xd')](function(_0x3d6e03){const _0x527821=_0x3b3d75;logger[_0x527821('0x14')](JSON[_0x527821('0xa')](_0x3d6e03));});});},Migration[_0xe2dd98('0xf')][_0xe2dd98('0x2')]=function(_0x261d7b){const _0x820f5d=_0xe2dd98,_0x315218=this;this['sequence'][_0x820f5d('0x3')](function(){const _0x4f2a99=_0x820f5d;return _0x315218[_0x4f2a99('0x17')][_0x4f2a99('0x15')][_0x4f2a99('0x2')](_0x261d7b)[_0x4f2a99('0x1c')](function(){const _0x115e60=_0x4f2a99;logger[_0x115e60('0x14')](_0x115e60('0xc'),_0x261d7b);})[_0x4f2a99('0xd')](function(_0xecf2cf){const _0x2fb2d8=_0x4f2a99;logger[_0x2fb2d8('0x14')](JSON[_0x2fb2d8('0xa')](_0xecf2cf));});});},Migration['prototype'][_0xe2dd98('0xe')]=function(_0x3ea14e,_0x179f1a){const _0x1557d7=_0xe2dd98,_0x112e56=this;this[_0x1557d7('0x19')][_0x1557d7('0x3')](function(){const _0x37393a=_0x1557d7;return _0x112e56[_0x37393a('0x17')][_0x37393a('0xe')](_0x3ea14e,_0x179f1a)[_0x37393a('0x1c')](function(){const _0x123a59=_0x37393a;logger[_0x123a59('0x14')]('Removed\x20column\x20%s\x20from\x20%s',_0x179f1a,_0x3ea14e);})['catch'](function(_0x409432){const _0x5aafbe=_0x37393a;logger[_0x5aafbe('0x14')](util['inspect'](_0x409432,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0xe2dd98('0x11')]=function(_0xec4d1e,_0x50716b,_0x19eaab){const _0x49c9df=_0xe2dd98,_0x2a0395=this;this[_0x49c9df('0x19')]['enqueue'](function(){const _0x25f6ec=_0x49c9df;return _0x2a0395[_0x25f6ec('0x17')][_0x25f6ec('0x11')](_0xec4d1e,_0x50716b,_0x19eaab)[_0x25f6ec('0x1c')](function(){const _0x3e39d3=_0x25f6ec;logger[_0x3e39d3('0x14')](_0x3e39d3('0x0'),_0x50716b,_0x19eaab,_0xec4d1e);})[_0x25f6ec('0xd')](function(_0x5c5b38){const _0x11b93d=_0x25f6ec;logger[_0x11b93d('0x14')](util[_0x11b93d('0x1a')](_0x5c5b38,{'showHidden':![],'depth':null}));});});},Migration[_0xe2dd98('0xf')][_0xe2dd98('0x6')]=function(_0x52a9b3){const _0x1c1ba7=_0xe2dd98;this[_0x1c1ba7('0x19')]['enqueue'](function(){return _0x52a9b3();});},module[_0xe2dd98('0x9')]={'up':function(_0x3f4ff1){return new Promise(function(_0x424b6c){const _0x6abe79=new Migration(_0x3f4ff1);_0x6abe79['final'](_0x424b6c);});},'down':function(){}};
\ No newline at end of file