Built motion from commit 82a371561bcdbc7605c801e5e414f4032ba9e7ad. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.98.js
1 const a990_0x1912=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','exports','dropTable','Added\x20column\x20%s\x20to\x20%s','addColumn','tail','catch','info','addIndex','query','inspect','final','sequence','changeColumn','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s','../config/logger','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','prototype','then','stringify','sequelize','query\x20%s','enqueue','removeIndex','addIndex\x20%s\x20%s\x20%s','join','queryInterface','util'];(function(_0x3fbbd9,_0x191283){const _0x4bc103=function(_0x6e4c4b){while(--_0x6e4c4b){_0x3fbbd9['push'](_0x3fbbd9['shift']());}};_0x4bc103(++_0x191283);}(a990_0x1912,0x192));const a990_0x4bc1=function(_0x3fbbd9,_0x191283){_0x3fbbd9=_0x3fbbd9-0x0;let _0x4bc103=a990_0x1912[_0x3fbbd9];return _0x4bc103;};const _0x5f5864=a990_0x4bc1;'use strict';const util=require(_0x5f5864('0x0')),logger=require(_0x5f5864('0x11'))('migration'),Sequence=function(){};Sequence[_0x5f5864('0x15')][_0x5f5864('0x1a')]=function(_0x6e4c4b){const _0x2222e8=_0x5f5864;this[_0x2222e8('0x6')]=this[_0x2222e8('0x6')]?this[_0x2222e8('0x6')]['finally'](_0x6e4c4b):_0x6e4c4b();};const Migration=function(_0x5660a1){const _0x3251e7=_0x5f5864;this[_0x3251e7('0x1e')]=_0x5660a1,this[_0x3251e7('0xd')]=new Sequence();};Migration[_0x5f5864('0x15')][_0x5f5864('0xe')]=function(_0x43b6af,_0x52b52d,_0xee19a0){const _0x35bf90=_0x5f5864,_0x5eeb73=this;this[_0x35bf90('0xd')][_0x35bf90('0x1a')](function(){const _0x12409a=_0x35bf90;return _0x5eeb73[_0x12409a('0x1e')]['changeColumn'](_0x43b6af,_0x52b52d,_0xee19a0)['then'](function(){const _0x4a2b5c=_0x12409a;logger[_0x4a2b5c('0x8')](_0x4a2b5c('0x13'),_0x52b52d,_0x43b6af);})[_0x12409a('0x7')](function(_0x293179){const _0x55dae8=_0x12409a;logger[_0x55dae8('0x8')](JSON[_0x55dae8('0x17')](_0x293179));});});},Migration[_0x5f5864('0x15')][_0x5f5864('0x5')]=function(_0x5da00e,_0x1e9d3d,_0x514041){const _0x1dd437=_0x5f5864,_0x4a6a36=this;this['sequence'][_0x1dd437('0x1a')](function(){const _0x5a4147=_0x1dd437;return _0x4a6a36[_0x5a4147('0x1e')][_0x5a4147('0x5')](_0x5da00e,_0x1e9d3d,_0x514041)[_0x5a4147('0x16')](function(){const _0x2bcb67=_0x5a4147;logger['info'](_0x2bcb67('0x4'),_0x1e9d3d,_0x5da00e);})[_0x5a4147('0x7')](function(_0xbd346){const _0x1470be=_0x5a4147;logger[_0x1470be('0x8')](JSON[_0x1470be('0x17')](_0xbd346));});});},Migration[_0x5f5864('0x15')][_0x5f5864('0x3')]=function(_0x371808){const _0xb75dd5=_0x5f5864,_0x51ad0f=this;this[_0xb75dd5('0xd')]['enqueue'](function(){const _0x1e90ad=_0xb75dd5;return _0x51ad0f[_0x1e90ad('0x1e')][_0x1e90ad('0x3')](_0x371808,{'force':!![]})[_0x1e90ad('0x16')](function(){const _0x5f53b6=_0x1e90ad;logger['info'](_0x5f53b6('0x10'),_0x371808);})['catch'](function(_0x41c7fc){const _0x5a1289=_0x1e90ad;logger['info'](JSON[_0x5a1289('0x17')](_0x41c7fc));});});},Migration['prototype'][_0x5f5864('0x9')]=function(_0x5c68ef,_0x2c3915,_0x50ff97){const _0x39aabf=_0x5f5864,_0x2b373c=this;this['sequence'][_0x39aabf('0x1a')](function(){const _0x433472=_0x39aabf;return _0x2b373c[_0x433472('0x1e')][_0x433472('0x9')](_0x5c68ef,_0x2c3915,{'indexName':_0x50ff97})[_0x433472('0x16')](function(){const _0xc09568=_0x433472;logger[_0xc09568('0x8')](_0xc09568('0x1c'),_0x5c68ef,_0x2c3915[_0xc09568('0x1d')](','),_0x50ff97);})[_0x433472('0x7')](function(_0x11169f){const _0x15e5e8=_0x433472;logger[_0x15e5e8('0x8')](JSON['stringify'](_0x11169f));});});},Migration[_0x5f5864('0x15')][_0x5f5864('0x1b')]=function(_0x1edc4d,_0x14b8bc){const _0x14d4f2=_0x5f5864,_0x3b5972=this;this[_0x14d4f2('0xd')]['enqueue'](function(){const _0x12a838=_0x14d4f2;return _0x3b5972[_0x12a838('0x1e')][_0x12a838('0x1b')](_0x1edc4d,_0x14b8bc)[_0x12a838('0x16')](function(){const _0x4d4c76=_0x12a838;logger[_0x4d4c76('0x8')]('removeIndex\x20%s\x20%s',_0x1edc4d,_0x14b8bc);})[_0x12a838('0x7')](function(_0x565a17){const _0x1d147a=_0x12a838;logger[_0x1d147a('0x8')](JSON[_0x1d147a('0x17')](_0x565a17));});});},Migration[_0x5f5864('0x15')][_0x5f5864('0xa')]=function(_0x2e5e45){const _0x56f2dc=_0x5f5864,_0x548712=this;this[_0x56f2dc('0xd')][_0x56f2dc('0x1a')](function(){const _0x56fb3a=_0x56f2dc;return _0x548712[_0x56fb3a('0x1e')][_0x56fb3a('0x18')][_0x56fb3a('0xa')](_0x2e5e45)[_0x56fb3a('0x16')](function(){const _0x494474=_0x56fb3a;logger['info'](_0x494474('0x19'),_0x2e5e45);})['catch'](function(_0x33fea8){const _0xceebd9=_0x56fb3a;logger[_0xceebd9('0x8')](JSON['stringify'](_0x33fea8));});});},Migration[_0x5f5864('0x15')][_0x5f5864('0x12')]=function(_0x57332f,_0x57334c){const _0x10698b=_0x5f5864,_0x3025eb=this;this['sequence'][_0x10698b('0x1a')](function(){const _0x438323=_0x10698b;return _0x3025eb[_0x438323('0x1e')][_0x438323('0x12')](_0x57332f,_0x57334c)[_0x438323('0x16')](function(){const _0x3e0f5a=_0x438323;logger[_0x3e0f5a('0x8')](_0x3e0f5a('0xf'),_0x57334c,_0x57332f);})['catch'](function(_0x24d8b3){const _0x24f875=_0x438323;logger[_0x24f875('0x8')](util[_0x24f875('0xb')](_0x24d8b3,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0xc776cb,_0x2abd6b,_0x51ef5d){const _0x46bddc=_0x5f5864,_0x2d245a=this;this[_0x46bddc('0xd')][_0x46bddc('0x1a')](function(){const _0x51a6ee=_0x46bddc;return _0x2d245a[_0x51a6ee('0x1e')][_0x51a6ee('0x14')](_0xc776cb,_0x2abd6b,_0x51ef5d)[_0x51a6ee('0x16')](function(){const _0x6a5a2d=_0x51a6ee;logger['info'](_0x6a5a2d('0x1'),_0x2abd6b,_0x51ef5d,_0xc776cb);})['catch'](function(_0x1e7f65){const _0x41f354=_0x51a6ee;logger[_0x41f354('0x8')](util[_0x41f354('0xb')](_0x1e7f65,{'showHidden':![],'depth':null}));});});},Migration[_0x5f5864('0x15')][_0x5f5864('0xc')]=function(_0x3b07e4){const _0x1dd1a2=_0x5f5864;this[_0x1dd1a2('0xd')][_0x1dd1a2('0x1a')](function(){return _0x3b07e4();});},module[_0x5f5864('0x2')]={'up':function(_0x447f1e){return new Promise(function(_0x324e7a){const _0x6fb13e=a990_0x4bc1,_0x1e4290=new Migration(_0x447f1e);_0x1e4290[_0x6fb13e('0xc')](_0x324e7a);});},'down':function(){}};