Built motion from commit f861bcb808219e66da88ba48b61bddb35224a65e. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.74.js
1 'use strict';const a1125_0x59a5=['util','stringify','removeIndex','@config/logger','Changed\x20column\x20%s\x20in\x20table\x20%s','2FJeqYC','final','412092XzsNPU','591273xtpNGO','enqueue','158408TDReEK','Added\x20column\x20%s\x20to\x20%s','dropTable','prototype','changeColumn','then','14253gJlkSL','tail','finally','join','461402yRNgle','query\x20%s','removeColumn','migration','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Removed\x20column\x20%s\x20from\x20%s','exports','sequelize','query','sequence','277772dbGcmw','info','237TCzAaq','catch','inspect','addColumn','renameColumn','table\x20dropped\x20%s','41KICzVB','4069RBElvs','queryInterface'];const a1125_0x9cba=function(_0x3f27b4,_0x4c4204){_0x3f27b4=_0x3f27b4-0x19f;let _0x59a5d4=a1125_0x59a5[_0x3f27b4];return _0x59a5d4;};const a1125_0x958aee=a1125_0x9cba;(function(_0x580810,_0x4be2de){const _0x421e67=a1125_0x9cba;while(!![]){try{const _0x62c875=parseInt(_0x421e67(0x1b6))*-parseInt(_0x421e67(0x1a3))+parseInt(_0x421e67(0x1ba))+parseInt(_0x421e67(0x1ad))+parseInt(_0x421e67(0x1c4))+-parseInt(_0x421e67(0x1c6))*parseInt(_0x421e67(0x1a4))+parseInt(_0x421e67(0x1ab))*parseInt(_0x421e67(0x1b0))+parseInt(_0x421e67(0x1ae));if(_0x62c875===_0x4be2de)break;else _0x580810['push'](_0x580810['shift']());}catch(_0x1a6246){_0x580810['push'](_0x580810['shift']());}}}(a1125_0x59a5,0x7caa5));const util=require(a1125_0x958aee(0x1a6)),logger=require(a1125_0x958aee(0x1a9))(a1125_0x958aee(0x1bd)),Sequence=function(){};Sequence['prototype'][a1125_0x958aee(0x1af)]=function(_0x2f76f4){const _0x3bb415=a1125_0x958aee;this[_0x3bb415(0x1b7)]=this['tail']?this[_0x3bb415(0x1b7)][_0x3bb415(0x1b8)](_0x2f76f4):_0x2f76f4();};const Migration=function(_0x22dfe9){const _0x4d5fa1=a1125_0x958aee;this['queryInterface']=_0x22dfe9,this[_0x4d5fa1(0x1c3)]=new Sequence();};Migration[a1125_0x958aee(0x1b3)]['changeColumn']=function(_0x3e995e,_0x2734b0,_0x1eb1da){const _0x3717b3=a1125_0x958aee,_0x50ca1c=this;this[_0x3717b3(0x1c3)][_0x3717b3(0x1af)](function(){const _0x499838=_0x3717b3;return _0x50ca1c[_0x499838(0x1a5)][_0x499838(0x1b4)](_0x3e995e,_0x2734b0,_0x1eb1da)[_0x499838(0x1b5)](function(){const _0x76396=_0x499838;logger['info'](_0x76396(0x1aa),_0x2734b0,_0x3e995e);})['catch'](function(_0x543347){const _0x200d9b=_0x499838;logger[_0x200d9b(0x1c5)](JSON[_0x200d9b(0x1a7)](_0x543347));});});},Migration[a1125_0x958aee(0x1b3)][a1125_0x958aee(0x1a0)]=function(_0x1d5ff0,_0x152824,_0x1d93f1){const _0x2b5914=a1125_0x958aee,_0x241d76=this;this[_0x2b5914(0x1c3)][_0x2b5914(0x1af)](function(){const _0x3cd394=_0x2b5914;return _0x241d76['queryInterface']['addColumn'](_0x1d5ff0,_0x152824,_0x1d93f1)[_0x3cd394(0x1b5)](function(){const _0x1e725a=_0x3cd394;logger['info'](_0x1e725a(0x1b1),_0x152824,_0x1d5ff0);})[_0x3cd394(0x1c7)](function(_0x2b52ec){logger['info'](JSON['stringify'](_0x2b52ec));});});},Migration['prototype'][a1125_0x958aee(0x1b2)]=function(_0x28727a){const _0x451a94=a1125_0x958aee,_0x534f4a=this;this[_0x451a94(0x1c3)][_0x451a94(0x1af)](function(){const _0x2b7b64=_0x451a94;return _0x534f4a[_0x2b7b64(0x1a5)][_0x2b7b64(0x1b2)](_0x28727a,{'force':!![]})[_0x2b7b64(0x1b5)](function(){const _0x1f5700=_0x2b7b64;logger[_0x1f5700(0x1c5)](_0x1f5700(0x1a2),_0x28727a);})[_0x2b7b64(0x1c7)](function(_0x3f5920){const _0x57c1a3=_0x2b7b64;logger[_0x57c1a3(0x1c5)](JSON[_0x57c1a3(0x1a7)](_0x3f5920));});});},Migration[a1125_0x958aee(0x1b3)]['addIndex']=function(_0x9b6713,_0x55a6c6,_0x43e553){const _0x3945d7=a1125_0x958aee,_0x1fb8c4=this;this[_0x3945d7(0x1c3)][_0x3945d7(0x1af)](function(){const _0x38cb56=_0x3945d7;return _0x1fb8c4[_0x38cb56(0x1a5)]['addIndex'](_0x9b6713,_0x55a6c6,{'indexName':_0x43e553})[_0x38cb56(0x1b5)](function(){const _0x421bc3=_0x38cb56;logger[_0x421bc3(0x1c5)]('addIndex\x20%s\x20%s\x20%s',_0x9b6713,_0x55a6c6[_0x421bc3(0x1b9)](','),_0x43e553);})[_0x38cb56(0x1c7)](function(_0x5bac5e){const _0x555646=_0x38cb56;logger['info'](JSON[_0x555646(0x1a7)](_0x5bac5e));});});},Migration['prototype'][a1125_0x958aee(0x1a8)]=function(_0x103db6,_0x48041e){const _0x19c87a=a1125_0x958aee,_0x46ba94=this;this['sequence'][_0x19c87a(0x1af)](function(){const _0x30c180=_0x19c87a;return _0x46ba94[_0x30c180(0x1a5)][_0x30c180(0x1a8)](_0x103db6,_0x48041e)[_0x30c180(0x1b5)](function(){logger['info']('removeIndex\x20%s\x20%s',_0x103db6,_0x48041e);})[_0x30c180(0x1c7)](function(_0x4cbac7){const _0x2f3f31=_0x30c180;logger[_0x2f3f31(0x1c5)](JSON[_0x2f3f31(0x1a7)](_0x4cbac7));});});},Migration[a1125_0x958aee(0x1b3)][a1125_0x958aee(0x1c2)]=function(_0x5caf92){const _0x5a3171=a1125_0x958aee,_0xf44a44=this;this[_0x5a3171(0x1c3)][_0x5a3171(0x1af)](function(){const _0x23fb00=_0x5a3171;return _0xf44a44[_0x23fb00(0x1a5)][_0x23fb00(0x1c1)]['query'](_0x5caf92)[_0x23fb00(0x1b5)](function(){const _0x547bfe=_0x23fb00;logger['info'](_0x547bfe(0x1bb),_0x5caf92);})[_0x23fb00(0x1c7)](function(_0x21f62d){const _0x46b5d2=_0x23fb00;logger[_0x46b5d2(0x1c5)](JSON[_0x46b5d2(0x1a7)](_0x21f62d));});});},Migration[a1125_0x958aee(0x1b3)][a1125_0x958aee(0x1bc)]=function(_0x40e88e,_0x2b4b3f){const _0x10d9b7=a1125_0x958aee,_0x2277b0=this;this['sequence'][_0x10d9b7(0x1af)](function(){const _0x44702e=_0x10d9b7;return _0x2277b0[_0x44702e(0x1a5)][_0x44702e(0x1bc)](_0x40e88e,_0x2b4b3f)[_0x44702e(0x1b5)](function(){const _0x140efb=_0x44702e;logger['info'](_0x140efb(0x1bf),_0x2b4b3f,_0x40e88e);})[_0x44702e(0x1c7)](function(_0x42d9bf){const _0xcc79de=_0x44702e;logger[_0xcc79de(0x1c5)](util[_0xcc79de(0x19f)](_0x42d9bf,{'showHidden':![],'depth':null}));});});},Migration[a1125_0x958aee(0x1b3)][a1125_0x958aee(0x1a1)]=function(_0xb1723e,_0x362245,_0x26eb18){const _0x30032a=a1125_0x958aee,_0x55c70f=this;this[_0x30032a(0x1c3)]['enqueue'](function(){const _0x5bc74f=_0x30032a;return _0x55c70f[_0x5bc74f(0x1a5)][_0x5bc74f(0x1a1)](_0xb1723e,_0x362245,_0x26eb18)[_0x5bc74f(0x1b5)](function(){const _0x3bc2f6=_0x5bc74f;logger[_0x3bc2f6(0x1c5)](_0x3bc2f6(0x1be),_0x362245,_0x26eb18,_0xb1723e);})[_0x5bc74f(0x1c7)](function(_0x221251){const _0x50f825=_0x5bc74f;logger[_0x50f825(0x1c5)](util['inspect'](_0x221251,{'showHidden':![],'depth':null}));});});},Migration[a1125_0x958aee(0x1b3)][a1125_0x958aee(0x1ac)]=function(_0x4cb387){const _0x3f4edc=a1125_0x958aee;this[_0x3f4edc(0x1c3)][_0x3f4edc(0x1af)](function(){return _0x4cb387();});},module[a1125_0x958aee(0x1c0)]={'up':function(_0xa82fd8){return new Promise(function(_0x48a914){const _0x3e9c7e=a1125_0x9cba,_0x5372b3=new Migration(_0xa82fd8);_0x5372b3[_0x3e9c7e(0x1ac)](_0x48a914);});},'down':function(){return Promise['resolve']();}};