Built motion from commit b517aaa2a6638133380e4d135c64a80893061362. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.4.js
1 const a977_0x6d38=['join','catch','query','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','migration','then','../config/logger','sequence','info','renameColumn','Added\x20column\x20%s\x20to\x20%s','sequelize','tail','addIndex','exports','stringify','inspect','queryInterface','enqueue','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','addColumn','removeColumn','addIndex\x20%s\x20%s\x20%s','util','prototype','changeColumn','finally','query\x20%s','final','removeIndex'];(function(_0x27823e,_0x6d38bc){const _0x58a383=function(_0x2c0876){while(--_0x2c0876){_0x27823e['push'](_0x27823e['shift']());}};_0x58a383(++_0x6d38bc);}(a977_0x6d38,0x153));const a977_0x58a3=function(_0x27823e,_0x6d38bc){_0x27823e=_0x27823e-0x0;let _0x58a383=a977_0x6d38[_0x27823e];return _0x58a383;};const _0x35919e=a977_0x58a3;'use strict';const util=require(_0x35919e('0x6')),logger=require(_0x35919e('0x14'))(_0x35919e('0x12')),Sequence=function(){};Sequence[_0x35919e('0x7')]['enqueue']=function(_0x2c0876){const _0x43fe21=_0x35919e;this['tail']=this[_0x43fe21('0x1a')]?this[_0x43fe21('0x1a')][_0x43fe21('0x9')](_0x2c0876):_0x2c0876();};const Migration=function(_0x5c3854){const _0x14bd6f=_0x35919e;this[_0x14bd6f('0x1f')]=_0x5c3854,this[_0x14bd6f('0x15')]=new Sequence();};Migration[_0x35919e('0x7')][_0x35919e('0x8')]=function(_0x3bcdb5,_0x2cc76e,_0x23f835){const _0x3d0187=this;this['sequence']['enqueue'](function(){const _0x1bbb62=a977_0x58a3;return _0x3d0187['queryInterface']['changeColumn'](_0x3bcdb5,_0x2cc76e,_0x23f835)[_0x1bbb62('0x13')](function(){const _0x3ff5e1=_0x1bbb62;logger[_0x3ff5e1('0x16')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x2cc76e,_0x3bcdb5);})[_0x1bbb62('0xe')](function(_0x3d93ee){const _0x1fa24d=_0x1bbb62;logger[_0x1fa24d('0x16')](JSON[_0x1fa24d('0x1d')](_0x3d93ee));});});},Migration[_0x35919e('0x7')]['addColumn']=function(_0x5c8fe1,_0x14d413,_0x450fcf){const _0x18d6af=_0x35919e,_0x2aa4a9=this;this[_0x18d6af('0x15')]['enqueue'](function(){const _0x519816=_0x18d6af;return _0x2aa4a9[_0x519816('0x1f')][_0x519816('0x3')](_0x5c8fe1,_0x14d413,_0x450fcf)[_0x519816('0x13')](function(){const _0x5be98e=_0x519816;logger[_0x5be98e('0x16')](_0x5be98e('0x18'),_0x14d413,_0x5c8fe1);})[_0x519816('0xe')](function(_0x5c3bdf){const _0x85e163=_0x519816;logger[_0x85e163('0x16')](JSON[_0x85e163('0x1d')](_0x5c3bdf));});});},Migration[_0x35919e('0x7')][_0x35919e('0x10')]=function(_0x212938){const _0x512d2d=_0x35919e,_0x5f7ed1=this;this[_0x512d2d('0x15')][_0x512d2d('0x0')](function(){const _0x2f08e8=_0x512d2d;return _0x5f7ed1[_0x2f08e8('0x1f')]['dropTable'](_0x212938,{'force':!![]})[_0x2f08e8('0x13')](function(){const _0x25f0bf=_0x2f08e8;logger[_0x25f0bf('0x16')](_0x25f0bf('0x1'),_0x212938);})[_0x2f08e8('0xe')](function(_0x2b2931){const _0x5c07dc=_0x2f08e8;logger[_0x5c07dc('0x16')](JSON['stringify'](_0x2b2931));});});},Migration[_0x35919e('0x7')][_0x35919e('0x1b')]=function(_0x6ad177,_0x5a4477,_0x5e7a57){const _0x4f481b=this;this['sequence']['enqueue'](function(){const _0x3a3c8b=a977_0x58a3;return _0x4f481b[_0x3a3c8b('0x1f')][_0x3a3c8b('0x1b')](_0x6ad177,_0x5a4477,{'indexName':_0x5e7a57})[_0x3a3c8b('0x13')](function(){const _0x556e72=_0x3a3c8b;logger[_0x556e72('0x16')](_0x556e72('0x5'),_0x6ad177,_0x5a4477[_0x556e72('0xd')](','),_0x5e7a57);})[_0x3a3c8b('0xe')](function(_0x5401da){const _0x24cefb=_0x3a3c8b;logger[_0x24cefb('0x16')](JSON[_0x24cefb('0x1d')](_0x5401da));});});},Migration['prototype'][_0x35919e('0xc')]=function(_0x2d6985,_0x3069c0){const _0x118e3a=_0x35919e,_0x559ce7=this;this[_0x118e3a('0x15')][_0x118e3a('0x0')](function(){const _0x128a51=_0x118e3a;return _0x559ce7[_0x128a51('0x1f')][_0x128a51('0xc')](_0x2d6985,_0x3069c0)[_0x128a51('0x13')](function(){const _0x205747=_0x128a51;logger[_0x205747('0x16')](_0x205747('0x2'),_0x2d6985,_0x3069c0);})[_0x128a51('0xe')](function(_0x428aa3){const _0x15913b=_0x128a51;logger[_0x15913b('0x16')](JSON[_0x15913b('0x1d')](_0x428aa3));});});},Migration['prototype'][_0x35919e('0xf')]=function(_0x3f74af){const _0x280da9=_0x35919e,_0x5d4739=this;this['sequence'][_0x280da9('0x0')](function(){const _0x556742=_0x280da9;return _0x5d4739['queryInterface'][_0x556742('0x19')]['query'](_0x3f74af)[_0x556742('0x13')](function(){const _0x30e362=_0x556742;logger['info'](_0x30e362('0xa'),_0x3f74af);})[_0x556742('0xe')](function(_0x451fcf){const _0x46debd=_0x556742;logger[_0x46debd('0x16')](JSON[_0x46debd('0x1d')](_0x451fcf));});});},Migration['prototype']['removeColumn']=function(_0x24292b,_0x5db9f8){const _0x105886=_0x35919e,_0x18d5ae=this;this[_0x105886('0x15')]['enqueue'](function(){const _0x59e101=_0x105886;return _0x18d5ae[_0x59e101('0x1f')][_0x59e101('0x4')](_0x24292b,_0x5db9f8)[_0x59e101('0x13')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x5db9f8,_0x24292b);})[_0x59e101('0xe')](function(_0x5edb0a){const _0xd93fe9=_0x59e101;logger['info'](util[_0xd93fe9('0x1e')](_0x5edb0a,{'showHidden':![],'depth':null}));});});},Migration[_0x35919e('0x7')][_0x35919e('0x17')]=function(_0x376839,_0x270179,_0x41b4d8){const _0x4471cd=_0x35919e,_0x3570f7=this;this[_0x4471cd('0x15')]['enqueue'](function(){const _0x2b8e0e=_0x4471cd;return _0x3570f7['queryInterface'][_0x2b8e0e('0x17')](_0x376839,_0x270179,_0x41b4d8)['then'](function(){const _0x1881b5=_0x2b8e0e;logger[_0x1881b5('0x16')](_0x1881b5('0x11'),_0x270179,_0x41b4d8,_0x376839);})[_0x2b8e0e('0xe')](function(_0x558daf){const _0x7012f=_0x2b8e0e;logger['info'](util[_0x7012f('0x1e')](_0x558daf,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x35919e('0xb')]=function(_0x30417c){const _0x112e30=_0x35919e;this[_0x112e30('0x15')][_0x112e30('0x0')](function(){return _0x30417c();});},module[_0x35919e('0x1c')]={'up':function(_0x438ae9){return new Promise(function(_0x383cc1){const _0x24ef32=a977_0x58a3,_0x160d8c=new Migration(_0x438ae9);_0x160d8c[_0x24ef32('0xb')](_0x383cc1);});},'down':function(){}};