Built motion from commit aab208717af8d15f4fa224cdb6a202877019af9b. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.95.js
index 1ce3231..e682cdb 100644 (file)
@@ -1 +1 @@
-const a986_0x2e23=['dropTable','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','then','util','addIndex','Removed\x20column\x20%s\x20from\x20%s','query','addIndex\x20%s\x20%s\x20%s','tail','exports','queryInterface','stringify','sequence','catch','changeColumn','prototype','join','sequelize','addColumn','final','Added\x20column\x20%s\x20to\x20%s','query\x20%s','renameColumn','finally','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','migration'];(function(_0x395341,_0x2e23d4){const _0x1c3dc6=function(_0x2b58ca){while(--_0x2b58ca){_0x395341['push'](_0x395341['shift']());}};_0x1c3dc6(++_0x2e23d4);}(a986_0x2e23,0x10f));const a986_0x1c3d=function(_0x395341,_0x2e23d4){_0x395341=_0x395341-0x0;let _0x1c3dc6=a986_0x2e23[_0x395341];return _0x1c3dc6;};const _0x3a1c28=a986_0x1c3d;'use strict';const util=require(_0x3a1c28('0x18')),logger=require('../config/logger')(_0x3a1c28('0x12')),Sequence=function(){};Sequence[_0x3a1c28('0x7')][_0x3a1c28('0x14')]=function(_0x2b58ca){const _0x1baab4=_0x3a1c28;this[_0x1baab4('0x0')]=this[_0x1baab4('0x0')]?this[_0x1baab4('0x0')][_0x1baab4('0xf')](_0x2b58ca):_0x2b58ca();};const Migration=function(_0x3bca37){const _0x3a3510=_0x3a1c28;this[_0x3a3510('0x2')]=_0x3bca37,this[_0x3a3510('0x4')]=new Sequence();};Migration[_0x3a1c28('0x7')]['changeColumn']=function(_0x43a6bd,_0x185297,_0x1c33f6){const _0x1477ea=_0x3a1c28,_0xb2bccc=this;this[_0x1477ea('0x4')][_0x1477ea('0x14')](function(){const _0x16a149=_0x1477ea;return _0xb2bccc[_0x16a149('0x2')][_0x16a149('0x6')](_0x43a6bd,_0x185297,_0x1c33f6)[_0x16a149('0x17')](function(){const _0x4fb8c9=_0x16a149;logger['info'](_0x4fb8c9('0x15'),_0x185297,_0x43a6bd);})[_0x16a149('0x5')](function(_0x570287){const _0x5adb62=_0x16a149;logger[_0x5adb62('0x11')](JSON[_0x5adb62('0x3')](_0x570287));});});},Migration[_0x3a1c28('0x7')][_0x3a1c28('0xa')]=function(_0x25f886,_0x5600b1,_0x4b6966){const _0x43102d=_0x3a1c28,_0x142b03=this;this[_0x43102d('0x4')][_0x43102d('0x14')](function(){const _0x5804c2=_0x43102d;return _0x142b03[_0x5804c2('0x2')][_0x5804c2('0xa')](_0x25f886,_0x5600b1,_0x4b6966)[_0x5804c2('0x17')](function(){const _0x2f63fa=_0x5804c2;logger[_0x2f63fa('0x11')](_0x2f63fa('0xc'),_0x5600b1,_0x25f886);})['catch'](function(_0x18a341){const _0x4ae425=_0x5804c2;logger[_0x4ae425('0x11')](JSON[_0x4ae425('0x3')](_0x18a341));});});},Migration[_0x3a1c28('0x7')][_0x3a1c28('0x13')]=function(_0x172617){const _0x51e123=_0x3a1c28,_0x367dfe=this;this['sequence'][_0x51e123('0x14')](function(){const _0x27ce2f=_0x51e123;return _0x367dfe[_0x27ce2f('0x2')]['dropTable'](_0x172617,{'force':!![]})[_0x27ce2f('0x17')](function(){const _0x380a3a=_0x27ce2f;logger[_0x380a3a('0x11')]('table\x20dropped\x20%s',_0x172617);})[_0x27ce2f('0x5')](function(_0x4d8584){const _0x5ac735=_0x27ce2f;logger[_0x5ac735('0x11')](JSON[_0x5ac735('0x3')](_0x4d8584));});});},Migration['prototype'][_0x3a1c28('0x19')]=function(_0x393ac3,_0x58ed5d,_0x5ed844){const _0x36bf18=_0x3a1c28,_0x32bb79=this;this[_0x36bf18('0x4')][_0x36bf18('0x14')](function(){const _0x3b7812=_0x36bf18;return _0x32bb79['queryInterface'][_0x3b7812('0x19')](_0x393ac3,_0x58ed5d,{'indexName':_0x5ed844})['then'](function(){const _0x96a003=_0x3b7812;logger[_0x96a003('0x11')](_0x96a003('0x1c'),_0x393ac3,_0x58ed5d[_0x96a003('0x8')](','),_0x5ed844);})['catch'](function(_0x4c3436){const _0x11863e=_0x3b7812;logger[_0x11863e('0x11')](JSON[_0x11863e('0x3')](_0x4c3436));});});},Migration[_0x3a1c28('0x7')]['removeIndex']=function(_0x3e56f2,_0x498768){const _0x1c3b12=_0x3a1c28,_0x7a816e=this;this[_0x1c3b12('0x4')]['enqueue'](function(){const _0x5e0676=_0x1c3b12;return _0x7a816e[_0x5e0676('0x2')]['removeIndex'](_0x3e56f2,_0x498768)[_0x5e0676('0x17')](function(){const _0x33f9e8=_0x5e0676;logger[_0x33f9e8('0x11')]('removeIndex\x20%s\x20%s',_0x3e56f2,_0x498768);})[_0x5e0676('0x5')](function(_0x286e08){const _0x348b35=_0x5e0676;logger[_0x348b35('0x11')](JSON[_0x348b35('0x3')](_0x286e08));});});},Migration[_0x3a1c28('0x7')][_0x3a1c28('0x1b')]=function(_0x4b0cdd){const _0x59164c=_0x3a1c28,_0x357af2=this;this[_0x59164c('0x4')]['enqueue'](function(){const _0x5738e5=_0x59164c;return _0x357af2[_0x5738e5('0x2')][_0x5738e5('0x9')]['query'](_0x4b0cdd)[_0x5738e5('0x17')](function(){const _0xa770c9=_0x5738e5;logger[_0xa770c9('0x11')](_0xa770c9('0xd'),_0x4b0cdd);})['catch'](function(_0x4a5864){const _0x697d26=_0x5738e5;logger['info'](JSON[_0x697d26('0x3')](_0x4a5864));});});},Migration[_0x3a1c28('0x7')]['removeColumn']=function(_0x1341f2,_0x19a7c8){const _0x1cda21=_0x3a1c28,_0x3eb4ad=this;this[_0x1cda21('0x4')][_0x1cda21('0x14')](function(){const _0x275526=_0x1cda21;return _0x3eb4ad[_0x275526('0x2')]['removeColumn'](_0x1341f2,_0x19a7c8)[_0x275526('0x17')](function(){const _0x523239=_0x275526;logger[_0x523239('0x11')](_0x523239('0x1a'),_0x19a7c8,_0x1341f2);})['catch'](function(_0x529e53){const _0xd5dcbb=_0x275526;logger[_0xd5dcbb('0x11')](util[_0xd5dcbb('0x16')](_0x529e53,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3a1c28('0xe')]=function(_0x19eb33,_0x3ddcaa,_0x2a88ad){const _0x1109e1=_0x3a1c28,_0x48b328=this;this[_0x1109e1('0x4')][_0x1109e1('0x14')](function(){const _0x10a44c=_0x1109e1;return _0x48b328[_0x10a44c('0x2')]['renameColumn'](_0x19eb33,_0x3ddcaa,_0x2a88ad)[_0x10a44c('0x17')](function(){const _0x3857a9=_0x10a44c;logger[_0x3857a9('0x11')](_0x3857a9('0x10'),_0x3ddcaa,_0x2a88ad,_0x19eb33);})[_0x10a44c('0x5')](function(_0x14aef8){const _0x57e98e=_0x10a44c;logger[_0x57e98e('0x11')](util[_0x57e98e('0x16')](_0x14aef8,{'showHidden':![],'depth':null}));});});},Migration[_0x3a1c28('0x7')][_0x3a1c28('0xb')]=function(_0x287e27){const _0xa94899=_0x3a1c28;this['sequence'][_0xa94899('0x14')](function(){return _0x287e27();});},module[_0x3a1c28('0x1')]={'up':function(_0x4c53ab){return new Promise(function(_0x18b49d){const _0x5193f1=a986_0x1c3d,_0x21315f=new Migration(_0x4c53ab);_0x21315f[_0x5193f1('0xb')](_0x18b49d);});},'down':function(){}};
\ No newline at end of file
+const a986_0x4706=['sequelize','final','changeColumn','catch','stringify','tail','removeIndex','removeColumn','migration','util','sequence','table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','queryInterface','../config/logger','prototype','addIndex\x20%s\x20%s\x20%s','exports','join','query\x20%s','then','query','dropTable','renameColumn','addIndex','finally','addColumn','info','enqueue','inspect'];(function(_0x5301ba,_0x470670){const _0x4eccfc=function(_0x334182){while(--_0x334182){_0x5301ba['push'](_0x5301ba['shift']());}};_0x4eccfc(++_0x470670);}(a986_0x4706,0x198));const a986_0x4ecc=function(_0x5301ba,_0x470670){_0x5301ba=_0x5301ba-0x0;let _0x4eccfc=a986_0x4706[_0x5301ba];return _0x4eccfc;};const _0x3f9708=a986_0x4ecc;'use strict';const util=require(_0x3f9708('0x15')),logger=require(_0x3f9708('0x1a'))(_0x3f9708('0x14')),Sequence=function(){};Sequence[_0x3f9708('0x1b')][_0x3f9708('0xa')]=function(_0x334182){const _0x4a9150=_0x3f9708;this[_0x4a9150('0x11')]=this[_0x4a9150('0x11')]?this[_0x4a9150('0x11')][_0x4a9150('0x7')](_0x334182):_0x334182();};const Migration=function(_0x2b5468){const _0x35d6e5=_0x3f9708;this[_0x35d6e5('0x19')]=_0x2b5468,this[_0x35d6e5('0x16')]=new Sequence();};Migration[_0x3f9708('0x1b')][_0x3f9708('0xe')]=function(_0x1c23ea,_0xab4760,_0x30c7ff){const _0x197dc7=_0x3f9708,_0x299860=this;this['sequence'][_0x197dc7('0xa')](function(){const _0xd7fc23=_0x197dc7;return _0x299860[_0xd7fc23('0x19')][_0xd7fc23('0xe')](_0x1c23ea,_0xab4760,_0x30c7ff)[_0xd7fc23('0x2')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xab4760,_0x1c23ea);})[_0xd7fc23('0xf')](function(_0x5366d6){const _0xc99e1c=_0xd7fc23;logger[_0xc99e1c('0x9')](JSON[_0xc99e1c('0x10')](_0x5366d6));});});},Migration['prototype'][_0x3f9708('0x8')]=function(_0x138229,_0x4995cd,_0xf0c4d4){const _0x1464c2=_0x3f9708,_0x171115=this;this[_0x1464c2('0x16')]['enqueue'](function(){const _0x51963b=_0x1464c2;return _0x171115['queryInterface'][_0x51963b('0x8')](_0x138229,_0x4995cd,_0xf0c4d4)[_0x51963b('0x2')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x4995cd,_0x138229);})['catch'](function(_0x1804af){const _0x5bd6ef=_0x51963b;logger[_0x5bd6ef('0x9')](JSON[_0x5bd6ef('0x10')](_0x1804af));});});},Migration[_0x3f9708('0x1b')]['dropTable']=function(_0x22c8f8){const _0x4cd2d3=_0x3f9708,_0x52bc31=this;this['sequence'][_0x4cd2d3('0xa')](function(){const _0x46aeab=_0x4cd2d3;return _0x52bc31[_0x46aeab('0x19')][_0x46aeab('0x4')](_0x22c8f8,{'force':!![]})['then'](function(){const _0x1a1f9d=_0x46aeab;logger[_0x1a1f9d('0x9')](_0x1a1f9d('0x17'),_0x22c8f8);})['catch'](function(_0x2089b2){const _0x2357ae=_0x46aeab;logger[_0x2357ae('0x9')](JSON[_0x2357ae('0x10')](_0x2089b2));});});},Migration[_0x3f9708('0x1b')][_0x3f9708('0x6')]=function(_0x50ce54,_0x392ef8,_0x129f9c){const _0x130dfa=_0x3f9708,_0x5bad65=this;this[_0x130dfa('0x16')]['enqueue'](function(){const _0x50abdf=_0x130dfa;return _0x5bad65['queryInterface']['addIndex'](_0x50ce54,_0x392ef8,{'indexName':_0x129f9c})[_0x50abdf('0x2')](function(){const _0x522418=_0x50abdf;logger[_0x522418('0x9')](_0x522418('0x1c'),_0x50ce54,_0x392ef8[_0x522418('0x0')](','),_0x129f9c);})[_0x50abdf('0xf')](function(_0x14d58f){const _0x20b41b=_0x50abdf;logger[_0x20b41b('0x9')](JSON[_0x20b41b('0x10')](_0x14d58f));});});},Migration[_0x3f9708('0x1b')]['removeIndex']=function(_0x1dcd6b,_0x341036){const _0x2ea0d7=_0x3f9708,_0x27f874=this;this['sequence'][_0x2ea0d7('0xa')](function(){const _0x4d9062=_0x2ea0d7;return _0x27f874[_0x4d9062('0x19')][_0x4d9062('0x12')](_0x1dcd6b,_0x341036)[_0x4d9062('0x2')](function(){const _0x436f6e=_0x4d9062;logger[_0x436f6e('0x9')]('removeIndex\x20%s\x20%s',_0x1dcd6b,_0x341036);})[_0x4d9062('0xf')](function(_0x2e21bb){const _0x1c0e29=_0x4d9062;logger[_0x1c0e29('0x9')](JSON[_0x1c0e29('0x10')](_0x2e21bb));});});},Migration[_0x3f9708('0x1b')][_0x3f9708('0x3')]=function(_0x53a467){const _0x3a3775=_0x3f9708,_0x5a515b=this;this[_0x3a3775('0x16')][_0x3a3775('0xa')](function(){const _0x5dcdd7=_0x3a3775;return _0x5a515b[_0x5dcdd7('0x19')][_0x5dcdd7('0xc')][_0x5dcdd7('0x3')](_0x53a467)[_0x5dcdd7('0x2')](function(){const _0x5e8f4e=_0x5dcdd7;logger[_0x5e8f4e('0x9')](_0x5e8f4e('0x1'),_0x53a467);})[_0x5dcdd7('0xf')](function(_0x214f06){const _0x4bc53e=_0x5dcdd7;logger[_0x4bc53e('0x9')](JSON['stringify'](_0x214f06));});});},Migration[_0x3f9708('0x1b')][_0x3f9708('0x13')]=function(_0x40be02,_0x3192b5){const _0x27e4fd=_0x3f9708,_0x3d3a2d=this;this[_0x27e4fd('0x16')]['enqueue'](function(){const _0x3f6aea=_0x27e4fd;return _0x3d3a2d['queryInterface'][_0x3f6aea('0x13')](_0x40be02,_0x3192b5)[_0x3f6aea('0x2')](function(){const _0x34ac0e=_0x3f6aea;logger[_0x34ac0e('0x9')](_0x34ac0e('0x18'),_0x3192b5,_0x40be02);})['catch'](function(_0x1a87b4){const _0x4ca5cd=_0x3f6aea;logger[_0x4ca5cd('0x9')](util[_0x4ca5cd('0xb')](_0x1a87b4,{'showHidden':![],'depth':null}));});});},Migration[_0x3f9708('0x1b')][_0x3f9708('0x5')]=function(_0x36598,_0x41b0a7,_0x3ac31f){const _0x5eb776=_0x3f9708,_0x41ea17=this;this[_0x5eb776('0x16')][_0x5eb776('0xa')](function(){const _0x2a90fa=_0x5eb776;return _0x41ea17['queryInterface'][_0x2a90fa('0x5')](_0x36598,_0x41b0a7,_0x3ac31f)[_0x2a90fa('0x2')](function(){const _0x253c2f=_0x2a90fa;logger[_0x253c2f('0x9')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x41b0a7,_0x3ac31f,_0x36598);})[_0x2a90fa('0xf')](function(_0x2e5c47){const _0x1da235=_0x2a90fa;logger[_0x1da235('0x9')](util[_0x1da235('0xb')](_0x2e5c47,{'showHidden':![],'depth':null}));});});},Migration[_0x3f9708('0x1b')]['final']=function(_0x220aad){const _0x525b89=_0x3f9708;this[_0x525b89('0x16')][_0x525b89('0xa')](function(){return _0x220aad();});},module[_0x3f9708('0x1d')]={'up':function(_0x14e1c4){return new Promise(function(_0x29fa91){const _0x5db729=a986_0x4ecc,_0x4ed915=new Migration(_0x14e1c4);_0x4ed915[_0x5db729('0xd')](_0x29fa91);});},'down':function(){}};
\ No newline at end of file