e1100fb24f8a0797d8272e4c85b3e086cba20691
[motion-next.git] / server / migrations / 2.3.98.js
1 const a990_0x199e=['query','enqueue','queryInterface','Removed\x20column\x20%s\x20from\x20%s','renameColumn','query\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','util','removeIndex\x20%s\x20%s','removeColumn','../config/logger','then','addIndex\x20%s\x20%s\x20%s','finally','inspect','final','join','info','dropTable','migration','sequence','stringify','prototype','addColumn','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','sequelize','table\x20dropped\x20%s','catch','changeColumn'];(function(_0x56f9fc,_0x199e79){const _0xd7dd74=function(_0x3db667){while(--_0x3db667){_0x56f9fc['push'](_0x56f9fc['shift']());}};_0xd7dd74(++_0x199e79);}(a990_0x199e,0x1b5));const a990_0xd7dd=function(_0x56f9fc,_0x199e79){_0x56f9fc=_0x56f9fc-0x0;let _0xd7dd74=a990_0x199e[_0x56f9fc];return _0xd7dd74;};const _0x1a984a=a990_0xd7dd;'use strict';const util=require(_0x1a984a('0x4')),logger=require(_0x1a984a('0x7'))(_0x1a984a('0x10')),Sequence=function(){};Sequence[_0x1a984a('0x13')]['enqueue']=function(_0x3db667){const _0xaa2454=_0x1a984a;this[_0xaa2454('0x17')]=this['tail']?this[_0xaa2454('0x17')][_0xaa2454('0xa')](_0x3db667):_0x3db667();};const Migration=function(_0x46f15b){const _0x4cd63d=_0x1a984a;this[_0x4cd63d('0x1e')]=_0x46f15b,this[_0x4cd63d('0x11')]=new Sequence();};Migration['prototype'][_0x1a984a('0x1b')]=function(_0x6e3efc,_0x5d6565,_0x2b936d){const _0xb1f898=_0x1a984a,_0x32e15a=this;this['sequence'][_0xb1f898('0x1d')](function(){const _0x5993c9=_0xb1f898;return _0x32e15a[_0x5993c9('0x1e')][_0x5993c9('0x1b')](_0x6e3efc,_0x5d6565,_0x2b936d)[_0x5993c9('0x8')](function(){const _0x4373c9=_0x5993c9;logger[_0x4373c9('0xe')](_0x4373c9('0x16'),_0x5d6565,_0x6e3efc);})[_0x5993c9('0x1a')](function(_0x5effb6){const _0x3a185f=_0x5993c9;logger['info'](JSON[_0x3a185f('0x12')](_0x5effb6));});});},Migration['prototype'][_0x1a984a('0x14')]=function(_0x4a500a,_0x386285,_0x2e8b3a){const _0x1677ef=_0x1a984a,_0xb37024=this;this['sequence'][_0x1677ef('0x1d')](function(){const _0x60d32f=_0x1677ef;return _0xb37024[_0x60d32f('0x1e')][_0x60d32f('0x14')](_0x4a500a,_0x386285,_0x2e8b3a)['then'](function(){const _0x331298=_0x60d32f;logger[_0x331298('0xe')]('Added\x20column\x20%s\x20to\x20%s',_0x386285,_0x4a500a);})[_0x60d32f('0x1a')](function(_0x4f1b07){const _0x4e8f06=_0x60d32f;logger['info'](JSON[_0x4e8f06('0x12')](_0x4f1b07));});});},Migration[_0x1a984a('0x13')][_0x1a984a('0xf')]=function(_0x5309ac){const _0x21767b=_0x1a984a,_0x366b93=this;this[_0x21767b('0x11')][_0x21767b('0x1d')](function(){const _0x26c0ae=_0x21767b;return _0x366b93[_0x26c0ae('0x1e')][_0x26c0ae('0xf')](_0x5309ac,{'force':!![]})[_0x26c0ae('0x8')](function(){const _0x162e04=_0x26c0ae;logger['info'](_0x162e04('0x19'),_0x5309ac);})[_0x26c0ae('0x1a')](function(_0x46290b){const _0x5b0be7=_0x26c0ae;logger[_0x5b0be7('0xe')](JSON['stringify'](_0x46290b));});});},Migration[_0x1a984a('0x13')][_0x1a984a('0x15')]=function(_0x38f671,_0x35d602,_0x3ada98){const _0x42f4a8=_0x1a984a,_0x20a7c8=this;this[_0x42f4a8('0x11')][_0x42f4a8('0x1d')](function(){const _0x5ea9b6=_0x42f4a8;return _0x20a7c8['queryInterface'][_0x5ea9b6('0x15')](_0x38f671,_0x35d602,{'indexName':_0x3ada98})[_0x5ea9b6('0x8')](function(){const _0x386802=_0x5ea9b6;logger['info'](_0x386802('0x9'),_0x38f671,_0x35d602[_0x386802('0xd')](','),_0x3ada98);})[_0x5ea9b6('0x1a')](function(_0x4c3961){logger['info'](JSON['stringify'](_0x4c3961));});});},Migration[_0x1a984a('0x13')]['removeIndex']=function(_0xf8a023,_0x3d47e0){const _0x2c4cb5=_0x1a984a,_0x3fe5cb=this;this[_0x2c4cb5('0x11')][_0x2c4cb5('0x1d')](function(){const _0x1b8f98=_0x2c4cb5;return _0x3fe5cb[_0x1b8f98('0x1e')]['removeIndex'](_0xf8a023,_0x3d47e0)[_0x1b8f98('0x8')](function(){const _0x10b943=_0x1b8f98;logger[_0x10b943('0xe')](_0x10b943('0x5'),_0xf8a023,_0x3d47e0);})[_0x1b8f98('0x1a')](function(_0xd02fe2){const _0x50f0d5=_0x1b8f98;logger[_0x50f0d5('0xe')](JSON[_0x50f0d5('0x12')](_0xd02fe2));});});},Migration[_0x1a984a('0x13')][_0x1a984a('0x1c')]=function(_0x5c6626){const _0x27b311=_0x1a984a,_0x35860e=this;this[_0x27b311('0x11')][_0x27b311('0x1d')](function(){const _0x28c22d=_0x27b311;return _0x35860e[_0x28c22d('0x1e')][_0x28c22d('0x18')][_0x28c22d('0x1c')](_0x5c6626)['then'](function(){const _0x34f5a8=_0x28c22d;logger[_0x34f5a8('0xe')](_0x34f5a8('0x2'),_0x5c6626);})[_0x28c22d('0x1a')](function(_0x2cd576){const _0x5010c2=_0x28c22d;logger[_0x5010c2('0xe')](JSON[_0x5010c2('0x12')](_0x2cd576));});});},Migration[_0x1a984a('0x13')][_0x1a984a('0x6')]=function(_0x1f1358,_0x216833){const _0x640c42=_0x1a984a,_0x744fc0=this;this['sequence'][_0x640c42('0x1d')](function(){const _0x73e7cf=_0x640c42;return _0x744fc0['queryInterface'][_0x73e7cf('0x6')](_0x1f1358,_0x216833)[_0x73e7cf('0x8')](function(){const _0xee612f=_0x73e7cf;logger[_0xee612f('0xe')](_0xee612f('0x0'),_0x216833,_0x1f1358);})[_0x73e7cf('0x1a')](function(_0x5871db){const _0x43f40e=_0x73e7cf;logger[_0x43f40e('0xe')](util[_0x43f40e('0xb')](_0x5871db,{'showHidden':![],'depth':null}));});});},Migration[_0x1a984a('0x13')][_0x1a984a('0x1')]=function(_0x50a308,_0x4e21e9,_0x156fcb){const _0x41071a=_0x1a984a,_0x4911bb=this;this[_0x41071a('0x11')][_0x41071a('0x1d')](function(){const _0x297be6=_0x41071a;return _0x4911bb[_0x297be6('0x1e')]['renameColumn'](_0x50a308,_0x4e21e9,_0x156fcb)['then'](function(){const _0x114e7f=_0x297be6;logger[_0x114e7f('0xe')](_0x114e7f('0x3'),_0x4e21e9,_0x156fcb,_0x50a308);})[_0x297be6('0x1a')](function(_0x32678a){const _0x19e707=_0x297be6;logger[_0x19e707('0xe')](util['inspect'](_0x32678a,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1a984a('0xc')]=function(_0x3b7699){const _0x440777=_0x1a984a;this[_0x440777('0x11')][_0x440777('0x1d')](function(){return _0x3b7699();});},module['exports']={'up':function(_0x2d1b91){return new Promise(function(_0x18abaa){const _0x57dee7=a990_0xd7dd,_0x570ce1=new Migration(_0x2d1b91);_0x570ce1[_0x57dee7('0xc')](_0x18abaa);});},'down':function(){}};