Built motion from commit f651e4b0a7312c0adceb5e57d6684a801a3aaf0d. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.21.js
index 44f5b31..c0aebba 100644 (file)
@@ -1 +1 @@
-const a1005_0x298f=['indexName','finally','addIndex\x20%s\x20%s\x20%s\x20[%s]','final','stringify','inspect','sequelize','prototype','removeIndex','sequence','queryInterface','removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','util','addColumn','renameColumn','join','query','catch','changeColumn','exports','info','removeColumn','indicesType','enqueue','Added\x20column\x20%s\x20to\x20%s','dropTable','query\x20%s','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','tail'];(function(_0x1b1769,_0x298f4d){const _0x216669=function(_0x3ffcff){while(--_0x3ffcff){_0x1b1769['push'](_0x1b1769['shift']());}};_0x216669(++_0x298f4d);}(a1005_0x298f,0x117));const a1005_0x2166=function(_0x1b1769,_0x298f4d){_0x1b1769=_0x1b1769-0x0;let _0x216669=a1005_0x298f[_0x1b1769];return _0x216669;};const _0x4210b9=a1005_0x2166;'use strict';const util=require(_0x4210b9('0x20')),logger=require(_0x4210b9('0x10'))('migration'),Sequence=function(){};Sequence[_0x4210b9('0x19')][_0x4210b9('0xa')]=function(_0x3ffcff){const _0x29fb11=_0x4210b9;this[_0x29fb11('0x11')]=this['tail']?this[_0x29fb11('0x11')][_0x29fb11('0x13')](_0x3ffcff):_0x3ffcff();};const Migration=function(_0x1886ec){const _0x5c9c34=_0x4210b9;this[_0x5c9c34('0x1c')]=_0x1886ec,this['sequence']=new Sequence();};Migration[_0x4210b9('0x19')][_0x4210b9('0x5')]=function(_0x5a0fda,_0x4ca41a,_0x57048e){const _0x4497de=_0x4210b9,_0x59f4c5=this;this['sequence'][_0x4497de('0xa')](function(){const _0x43cf51=_0x4497de;return _0x59f4c5[_0x43cf51('0x1c')][_0x43cf51('0x5')](_0x5a0fda,_0x4ca41a,_0x57048e)[_0x43cf51('0x1f')](function(){const _0x359dc6=_0x43cf51;logger[_0x359dc6('0x7')](_0x359dc6('0xf'),_0x4ca41a,_0x5a0fda);})[_0x43cf51('0x4')](function(_0x1e9d80){const _0x24b959=_0x43cf51;logger[_0x24b959('0x7')](JSON[_0x24b959('0x16')](_0x1e9d80));});});},Migration['prototype']['addColumn']=function(_0x591ede,_0x4c5593,_0x1a6c4c){const _0xdf9cce=_0x4210b9,_0x336bf1=this;this['sequence'][_0xdf9cce('0xa')](function(){const _0xb4a379=_0xdf9cce;return _0x336bf1['queryInterface'][_0xb4a379('0x0')](_0x591ede,_0x4c5593,_0x1a6c4c)[_0xb4a379('0x1f')](function(){const _0xcc417c=_0xb4a379;logger[_0xcc417c('0x7')](_0xcc417c('0xb'),_0x4c5593,_0x591ede);})[_0xb4a379('0x4')](function(_0x3e1e7e){const _0x5d8326=_0xb4a379;logger[_0x5d8326('0x7')](JSON[_0x5d8326('0x16')](_0x3e1e7e));});});},Migration[_0x4210b9('0x19')]['dropTable']=function(_0x4aa45a){const _0x240f7c=_0x4210b9,_0x3de1bf=this;this[_0x240f7c('0x1b')][_0x240f7c('0xa')](function(){const _0x806e4f=_0x240f7c;return _0x3de1bf[_0x806e4f('0x1c')][_0x806e4f('0xc')](_0x4aa45a,{'force':!![]})[_0x806e4f('0x1f')](function(){const _0x34562d=_0x806e4f;logger[_0x34562d('0x7')]('table\x20dropped\x20%s',_0x4aa45a);})[_0x806e4f('0x4')](function(_0x1bb3a7){const _0x2e2c83=_0x806e4f;logger[_0x2e2c83('0x7')](JSON['stringify'](_0x1bb3a7));});});},Migration[_0x4210b9('0x19')][_0x4210b9('0xe')]=function(_0x1e6232,_0x55def8,_0x456878){const _0x24eac8=_0x4210b9,_0xa0e429=this;this[_0x24eac8('0x1b')][_0x24eac8('0xa')](function(){const _0x1844cc=_0x24eac8;return _0xa0e429[_0x1844cc('0x1c')][_0x1844cc('0xe')](_0x1e6232,_0x55def8,{'indexName':_0x456878['indexName'],'indicesType':_0x456878[_0x1844cc('0x9')]})[_0x1844cc('0x1f')](function(){const _0x29f13e=_0x1844cc;logger[_0x29f13e('0x7')](_0x29f13e('0x14'),_0x1e6232,_0x55def8[_0x29f13e('0x2')](','),_0x456878[_0x29f13e('0x12')],_0x456878[_0x29f13e('0x9')]);})[_0x1844cc('0x4')](function(_0x44c7ca){logger['info'](JSON['stringify'](_0x44c7ca));});});},Migration[_0x4210b9('0x19')][_0x4210b9('0x1a')]=function(_0x2ed4ed,_0x38414e){const _0xf6233d=_0x4210b9,_0x12442e=this;this[_0xf6233d('0x1b')]['enqueue'](function(){const _0x230283=_0xf6233d;return _0x12442e[_0x230283('0x1c')][_0x230283('0x1a')](_0x2ed4ed,_0x38414e)['then'](function(){const _0x225542=_0x230283;logger[_0x225542('0x7')](_0x225542('0x1d'),_0x2ed4ed,_0x38414e);})['catch'](function(_0x582960){const _0x1647a7=_0x230283;logger[_0x1647a7('0x7')](JSON['stringify'](_0x582960));});});},Migration['prototype'][_0x4210b9('0x3')]=function(_0x4d5e3c){const _0x529074=_0x4210b9,_0x46aca9=this;this[_0x529074('0x1b')][_0x529074('0xa')](function(){const _0x35bd72=_0x529074;return _0x46aca9['queryInterface'][_0x35bd72('0x18')][_0x35bd72('0x3')](_0x4d5e3c)[_0x35bd72('0x1f')](function(){const _0x42b01f=_0x35bd72;logger[_0x42b01f('0x7')](_0x42b01f('0xd'),_0x4d5e3c);})[_0x35bd72('0x4')](function(_0x54a58b){const _0x43292e=_0x35bd72;logger[_0x43292e('0x7')](JSON[_0x43292e('0x16')](_0x54a58b));});});},Migration[_0x4210b9('0x19')]['removeColumn']=function(_0x3298a1,_0x3de6e1){const _0x396b85=_0x4210b9,_0x2f3432=this;this[_0x396b85('0x1b')]['enqueue'](function(){const _0x1ce57d=_0x396b85;return _0x2f3432[_0x1ce57d('0x1c')][_0x1ce57d('0x8')](_0x3298a1,_0x3de6e1)['then'](function(){const _0x532a7e=_0x1ce57d;logger[_0x532a7e('0x7')]('Removed\x20column\x20%s\x20from\x20%s',_0x3de6e1,_0x3298a1);})[_0x1ce57d('0x4')](function(_0x5b0d7b){const _0x281cfa=_0x1ce57d;logger[_0x281cfa('0x7')](util[_0x281cfa('0x17')](_0x5b0d7b,{'showHidden':![],'depth':null}));});});},Migration[_0x4210b9('0x19')][_0x4210b9('0x1')]=function(_0x11140b,_0x4d7a1c,_0x33687e){const _0x5360eb=_0x4210b9,_0x339cbc=this;this[_0x5360eb('0x1b')][_0x5360eb('0xa')](function(){const _0x188b6a=_0x5360eb;return _0x339cbc['queryInterface']['renameColumn'](_0x11140b,_0x4d7a1c,_0x33687e)[_0x188b6a('0x1f')](function(){const _0xeeea94=_0x188b6a;logger[_0xeeea94('0x7')](_0xeeea94('0x1e'),_0x4d7a1c,_0x33687e,_0x11140b);})[_0x188b6a('0x4')](function(_0x59951f){logger['info'](util['inspect'](_0x59951f,{'showHidden':![],'depth':null}));});});},Migration[_0x4210b9('0x19')]['final']=function(_0x53f718){const _0x5608f8=_0x4210b9;this[_0x5608f8('0x1b')][_0x5608f8('0xa')](function(){return _0x53f718();});},module[_0x4210b9('0x6')]={'up':function(_0x1a8646){return new Promise(function(_0x39887f){const _0x4da681=a1005_0x2166,_0x5771e5=new Migration(_0x1a8646);_0x5771e5[_0x4da681('0x15')](_0x39887f);});},'down':function(){}};
\ No newline at end of file
+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