Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / migrations / 2.2.5.js
index 9c98029..feeb9d1 100644 (file)
@@ -1 +1 @@
-const a970_0x1434=['tail','stringify','addIndex\x20%s\x20%s\x20%s','renameColumn','inspect','prototype','sequence','removeColumn','exports','finally','Added\x20column\x20%s\x20to\x20%s','final','removeIndex','queryInterface','migration','changeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','info','join','dropTable','catch','query','enqueue','then','addIndex','query\x20%s','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s'];(function(_0x4b0fb9,_0x1434ed){const _0x3f2553=function(_0x379dd9){while(--_0x379dd9){_0x4b0fb9['push'](_0x4b0fb9['shift']());}};_0x3f2553(++_0x1434ed);}(a970_0x1434,0xbc));const a970_0x3f25=function(_0x4b0fb9,_0x1434ed){_0x4b0fb9=_0x4b0fb9-0x0;let _0x3f2553=a970_0x1434[_0x4b0fb9];return _0x3f2553;};const _0x1d2f05=a970_0x3f25;'use strict';const util=require('util'),logger=require('../config/logger')(_0x1d2f05('0x0')),Sequence=function(){};Sequence[_0x1d2f05('0x14')][_0x1d2f05('0x9')]=function(_0x379dd9){const _0x1873aa=_0x1d2f05;this[_0x1873aa('0xf')]=this['tail']?this[_0x1873aa('0xf')][_0x1873aa('0x18')](_0x379dd9):_0x379dd9();};const Migration=function(_0x52fdaf){const _0x4e0a5d=_0x1d2f05;this[_0x4e0a5d('0x1c')]=_0x52fdaf,this[_0x4e0a5d('0x15')]=new Sequence();};Migration[_0x1d2f05('0x14')][_0x1d2f05('0x1')]=function(_0x206a98,_0xd1dbd7,_0x1ed644){const _0x6290=_0x1d2f05,_0x3a8737=this;this[_0x6290('0x15')]['enqueue'](function(){const _0x157fff=_0x6290;return _0x3a8737['queryInterface']['changeColumn'](_0x206a98,_0xd1dbd7,_0x1ed644)[_0x157fff('0xa')](function(){const _0x351e29=_0x157fff;logger[_0x351e29('0x4')](_0x351e29('0x2'),_0xd1dbd7,_0x206a98);})[_0x157fff('0x7')](function(_0x2002a0){const _0x1456d8=_0x157fff;logger[_0x1456d8('0x4')](JSON[_0x1456d8('0x10')](_0x2002a0));});});},Migration[_0x1d2f05('0x14')][_0x1d2f05('0x3')]=function(_0x371e24,_0x1dafce,_0xe2af05){const _0x3e3f74=_0x1d2f05,_0x1bde6e=this;this[_0x3e3f74('0x15')][_0x3e3f74('0x9')](function(){const _0x7a3b2f=_0x3e3f74;return _0x1bde6e['queryInterface']['addColumn'](_0x371e24,_0x1dafce,_0xe2af05)['then'](function(){const _0x189b59=a970_0x3f25;logger[_0x189b59('0x4')](_0x189b59('0x19'),_0x1dafce,_0x371e24);})[_0x7a3b2f('0x7')](function(_0x35e4b9){const _0x397f8c=_0x7a3b2f;logger[_0x397f8c('0x4')](JSON['stringify'](_0x35e4b9));});});},Migration['prototype'][_0x1d2f05('0x6')]=function(_0x232089){const _0x3be671=_0x1d2f05,_0x1cf9b5=this;this[_0x3be671('0x15')][_0x3be671('0x9')](function(){const _0x426479=_0x3be671;return _0x1cf9b5[_0x426479('0x1c')][_0x426479('0x6')](_0x232089,{'force':!![]})[_0x426479('0xa')](function(){const _0x40afbf=_0x426479;logger[_0x40afbf('0x4')](_0x40afbf('0xe'),_0x232089);})[_0x426479('0x7')](function(_0x2a1b22){const _0x1356fa=_0x426479;logger['info'](JSON[_0x1356fa('0x10')](_0x2a1b22));});});},Migration[_0x1d2f05('0x14')][_0x1d2f05('0xb')]=function(_0x28db9d,_0x2de924,_0xb461a0){const _0x226294=_0x1d2f05,_0x11e740=this;this[_0x226294('0x15')][_0x226294('0x9')](function(){const _0xefd0a9=_0x226294;return _0x11e740[_0xefd0a9('0x1c')][_0xefd0a9('0xb')](_0x28db9d,_0x2de924,{'indexName':_0xb461a0})['then'](function(){const _0x57e0d1=_0xefd0a9;logger[_0x57e0d1('0x4')](_0x57e0d1('0x11'),_0x28db9d,_0x2de924[_0x57e0d1('0x5')](','),_0xb461a0);})[_0xefd0a9('0x7')](function(_0x5d855a){const _0x680ce4=_0xefd0a9;logger[_0x680ce4('0x4')](JSON[_0x680ce4('0x10')](_0x5d855a));});});},Migration[_0x1d2f05('0x14')][_0x1d2f05('0x1b')]=function(_0xcc42e,_0x6612ab){const _0xe49f91=_0x1d2f05,_0x43078a=this;this[_0xe49f91('0x15')]['enqueue'](function(){const _0x154087=_0xe49f91;return _0x43078a['queryInterface'][_0x154087('0x1b')](_0xcc42e,_0x6612ab)[_0x154087('0xa')](function(){logger['info']('removeIndex\x20%s\x20%s',_0xcc42e,_0x6612ab);})[_0x154087('0x7')](function(_0x1d93e0){logger['info'](JSON['stringify'](_0x1d93e0));});});},Migration[_0x1d2f05('0x14')][_0x1d2f05('0x8')]=function(_0x2a47f3){const _0x3ac519=_0x1d2f05,_0x459ce1=this;this[_0x3ac519('0x15')][_0x3ac519('0x9')](function(){const _0x615ef8=_0x3ac519;return _0x459ce1[_0x615ef8('0x1c')]['sequelize']['query'](_0x2a47f3)['then'](function(){const _0x4b993d=_0x615ef8;logger['info'](_0x4b993d('0xc'),_0x2a47f3);})[_0x615ef8('0x7')](function(_0x129db6){const _0x2017b1=_0x615ef8;logger[_0x2017b1('0x4')](JSON['stringify'](_0x129db6));});});},Migration[_0x1d2f05('0x14')][_0x1d2f05('0x16')]=function(_0xb5f7b5,_0x432d6e){const _0x111668=_0x1d2f05,_0x1884bc=this;this['sequence'][_0x111668('0x9')](function(){const _0x43b082=_0x111668;return _0x1884bc[_0x43b082('0x1c')][_0x43b082('0x16')](_0xb5f7b5,_0x432d6e)['then'](function(){const _0x292db5=_0x43b082;logger[_0x292db5('0x4')](_0x292db5('0xd'),_0x432d6e,_0xb5f7b5);})['catch'](function(_0x550872){const _0xe4e10c=_0x43b082;logger[_0xe4e10c('0x4')](util[_0xe4e10c('0x13')](_0x550872,{'showHidden':![],'depth':null}));});});},Migration[_0x1d2f05('0x14')]['renameColumn']=function(_0x719122,_0x5d2d09,_0x317472){const _0x9790f7=_0x1d2f05,_0xa2a29e=this;this[_0x9790f7('0x15')][_0x9790f7('0x9')](function(){const _0xd9a56f=_0x9790f7;return _0xa2a29e[_0xd9a56f('0x1c')][_0xd9a56f('0x12')](_0x719122,_0x5d2d09,_0x317472)[_0xd9a56f('0xa')](function(){const _0x102749=_0xd9a56f;logger[_0x102749('0x4')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5d2d09,_0x317472,_0x719122);})['catch'](function(_0x1a7c5c){const _0x4644d6=_0xd9a56f;logger[_0x4644d6('0x4')](util[_0x4644d6('0x13')](_0x1a7c5c,{'showHidden':![],'depth':null}));});});},Migration[_0x1d2f05('0x14')][_0x1d2f05('0x1a')]=function(_0xb72a76){const _0x4ad20a=_0x1d2f05;this[_0x4ad20a('0x15')]['enqueue'](function(){return _0xb72a76();});},module[_0x1d2f05('0x17')]={'up':function(_0x4db74a){return new Promise(function(_0x277739){const _0x194578=a970_0x3f25,_0x5a9c46=new Migration(_0x4db74a);_0x5a9c46[_0x194578('0x1a')](_0x277739);});},'down':function(){}};
\ No newline at end of file
+const a970_0x6ff9=['dropTable','finally','addIndex\x20%s\x20%s\x20%s','info','migration','removeIndex\x20%s\x20%s','util','queryInterface','removeIndex','changeColumn','Added\x20column\x20%s\x20to\x20%s','catch','enqueue','prototype','Removed\x20column\x20%s\x20from\x20%s','sequence','table\x20dropped\x20%s','sequelize','stringify','addIndex','inspect','tail','renameColumn','removeColumn','then','query\x20%s','exports','addColumn','query','final','../config/logger'];(function(_0x5b57aa,_0x6ff9b8){const _0x1d7690=function(_0x38e746){while(--_0x38e746){_0x5b57aa['push'](_0x5b57aa['shift']());}};_0x1d7690(++_0x6ff9b8);}(a970_0x6ff9,0x118));const a970_0x1d76=function(_0x5b57aa,_0x6ff9b8){_0x5b57aa=_0x5b57aa-0x0;let _0x1d7690=a970_0x6ff9[_0x5b57aa];return _0x1d7690;};const _0x1666d8=a970_0x1d76;'use strict';const util=require(_0x1666d8('0x5')),logger=require(_0x1666d8('0x1d'))(_0x1666d8('0x3')),Sequence=function(){};Sequence[_0x1666d8('0xc')][_0x1666d8('0xb')]=function(_0x38e746){const _0x3f1f08=_0x1666d8;this[_0x3f1f08('0x14')]=this[_0x3f1f08('0x14')]?this['tail'][_0x3f1f08('0x0')](_0x38e746):_0x38e746();};const Migration=function(_0x31bdbc){const _0x2104a2=_0x1666d8;this[_0x2104a2('0x6')]=_0x31bdbc,this[_0x2104a2('0xe')]=new Sequence();};Migration[_0x1666d8('0xc')]['changeColumn']=function(_0x5ac05d,_0x2a38a9,_0x460530){const _0x39f75b=_0x1666d8,_0xb6e0f7=this;this[_0x39f75b('0xe')][_0x39f75b('0xb')](function(){const _0x47e303=_0x39f75b;return _0xb6e0f7[_0x47e303('0x6')][_0x47e303('0x8')](_0x5ac05d,_0x2a38a9,_0x460530)[_0x47e303('0x17')](function(){const _0x2988d7=_0x47e303;logger[_0x2988d7('0x2')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x2a38a9,_0x5ac05d);})[_0x47e303('0xa')](function(_0x544217){const _0x3a0186=_0x47e303;logger[_0x3a0186('0x2')](JSON[_0x3a0186('0x11')](_0x544217));});});},Migration[_0x1666d8('0xc')][_0x1666d8('0x1a')]=function(_0x3a3cc9,_0x307e09,_0x4e16d3){const _0x1849bb=_0x1666d8,_0x2258d5=this;this['sequence'][_0x1849bb('0xb')](function(){const _0x4e7c14=_0x1849bb;return _0x2258d5[_0x4e7c14('0x6')][_0x4e7c14('0x1a')](_0x3a3cc9,_0x307e09,_0x4e16d3)[_0x4e7c14('0x17')](function(){const _0x16208f=_0x4e7c14;logger['info'](_0x16208f('0x9'),_0x307e09,_0x3a3cc9);})[_0x4e7c14('0xa')](function(_0x4f7bc7){const _0x8e2f41=_0x4e7c14;logger[_0x8e2f41('0x2')](JSON[_0x8e2f41('0x11')](_0x4f7bc7));});});},Migration['prototype']['dropTable']=function(_0x241a35){const _0x3a7dc1=_0x1666d8,_0x272fa3=this;this[_0x3a7dc1('0xe')]['enqueue'](function(){const _0x4d3680=_0x3a7dc1;return _0x272fa3[_0x4d3680('0x6')][_0x4d3680('0x1e')](_0x241a35,{'force':!![]})[_0x4d3680('0x17')](function(){const _0x2b5b1e=_0x4d3680;logger[_0x2b5b1e('0x2')](_0x2b5b1e('0xf'),_0x241a35);})['catch'](function(_0x130198){const _0x514f8e=_0x4d3680;logger[_0x514f8e('0x2')](JSON[_0x514f8e('0x11')](_0x130198));});});},Migration[_0x1666d8('0xc')][_0x1666d8('0x12')]=function(_0x279f63,_0x4cb561,_0x51dc98){const _0x2e7e43=_0x1666d8,_0x44d81a=this;this[_0x2e7e43('0xe')][_0x2e7e43('0xb')](function(){const _0x3fbbb3=_0x2e7e43;return _0x44d81a[_0x3fbbb3('0x6')][_0x3fbbb3('0x12')](_0x279f63,_0x4cb561,{'indexName':_0x51dc98})['then'](function(){const _0x2fcf8e=_0x3fbbb3;logger[_0x2fcf8e('0x2')](_0x2fcf8e('0x1'),_0x279f63,_0x4cb561['join'](','),_0x51dc98);})[_0x3fbbb3('0xa')](function(_0xe1fd4e){const _0x4e0fce=_0x3fbbb3;logger[_0x4e0fce('0x2')](JSON['stringify'](_0xe1fd4e));});});},Migration[_0x1666d8('0xc')][_0x1666d8('0x7')]=function(_0x4b6ac6,_0x577501){const _0x458cad=this;this['sequence']['enqueue'](function(){const _0x565f4c=a970_0x1d76;return _0x458cad[_0x565f4c('0x6')]['removeIndex'](_0x4b6ac6,_0x577501)['then'](function(){const _0x7f9322=_0x565f4c;logger[_0x7f9322('0x2')](_0x7f9322('0x4'),_0x4b6ac6,_0x577501);})[_0x565f4c('0xa')](function(_0x3d9cfe){const _0x363fca=_0x565f4c;logger[_0x363fca('0x2')](JSON[_0x363fca('0x11')](_0x3d9cfe));});});},Migration[_0x1666d8('0xc')][_0x1666d8('0x1b')]=function(_0x283f03){const _0xca79b8=_0x1666d8,_0x4c5427=this;this[_0xca79b8('0xe')][_0xca79b8('0xb')](function(){const _0x469afa=_0xca79b8;return _0x4c5427[_0x469afa('0x6')][_0x469afa('0x10')][_0x469afa('0x1b')](_0x283f03)['then'](function(){const _0xeaa9f5=_0x469afa;logger['info'](_0xeaa9f5('0x18'),_0x283f03);})[_0x469afa('0xa')](function(_0x4a2b86){const _0x236dc1=_0x469afa;logger['info'](JSON[_0x236dc1('0x11')](_0x4a2b86));});});},Migration[_0x1666d8('0xc')][_0x1666d8('0x16')]=function(_0x68a961,_0x3d650a){const _0xb3b7bf=_0x1666d8,_0xaf3054=this;this[_0xb3b7bf('0xe')][_0xb3b7bf('0xb')](function(){const _0x2dce4a=_0xb3b7bf;return _0xaf3054[_0x2dce4a('0x6')][_0x2dce4a('0x16')](_0x68a961,_0x3d650a)[_0x2dce4a('0x17')](function(){const _0x452e6b=_0x2dce4a;logger[_0x452e6b('0x2')](_0x452e6b('0xd'),_0x3d650a,_0x68a961);})[_0x2dce4a('0xa')](function(_0x5ad8cc){const _0x360832=_0x2dce4a;logger[_0x360832('0x2')](util[_0x360832('0x13')](_0x5ad8cc,{'showHidden':![],'depth':null}));});});},Migration[_0x1666d8('0xc')][_0x1666d8('0x15')]=function(_0x558840,_0x14bcc4,_0x491f01){const _0x233421=this;this['sequence']['enqueue'](function(){const _0x36aa7d=a970_0x1d76;return _0x233421[_0x36aa7d('0x6')]['renameColumn'](_0x558840,_0x14bcc4,_0x491f01)[_0x36aa7d('0x17')](function(){const _0x875e8a=_0x36aa7d;logger[_0x875e8a('0x2')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x14bcc4,_0x491f01,_0x558840);})[_0x36aa7d('0xa')](function(_0x3a05cd){const _0x3cccab=_0x36aa7d;logger[_0x3cccab('0x2')](util[_0x3cccab('0x13')](_0x3a05cd,{'showHidden':![],'depth':null}));});});},Migration[_0x1666d8('0xc')][_0x1666d8('0x1c')]=function(_0x53e9b1){const _0x2fcdfe=_0x1666d8;this[_0x2fcdfe('0xe')][_0x2fcdfe('0xb')](function(){return _0x53e9b1();});},module[_0x1666d8('0x19')]={'up':function(_0x3ce6ba){return new Promise(function(_0x524d08){const _0x12521f=a970_0x1d76,_0x312e29=new Migration(_0x3ce6ba);_0x312e29[_0x12521f('0x1c')](_0x524d08);});},'down':function(){}};
\ No newline at end of file