Built motion from commit ded33658aad58fc8de845a8299a9db59a88cc353. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.93.js
1 const a985_0x55b4=['inspect','renameColumn','changeColumn','query\x20%s','addColumn','../config/logger','info','removeColumn','then','sequence','migration','dropTable','Removed\x20column\x20%s\x20from\x20%s','queryInterface','addIndex\x20%s\x20%s\x20%s','catch','join','finally','addIndex','enqueue','prototype','removeIndex\x20%s\x20%s','tail','stringify','final'];(function(_0x2aba3a,_0x55b4be){const _0x3b39b4=function(_0x5707c1){while(--_0x5707c1){_0x2aba3a['push'](_0x2aba3a['shift']());}};_0x3b39b4(++_0x55b4be);}(a985_0x55b4,0x127));const a985_0x3b39=function(_0x2aba3a,_0x55b4be){_0x2aba3a=_0x2aba3a-0x0;let _0x3b39b4=a985_0x55b4[_0x2aba3a];return _0x3b39b4;};const _0x4e9b50=a985_0x3b39;'use strict';const util=require('util'),logger=require(_0x4e9b50('0xa'))(_0x4e9b50('0xf')),Sequence=function(){};Sequence[_0x4e9b50('0x0')]['enqueue']=function(_0x5707c1){const _0x5b8d54=_0x4e9b50;this[_0x5b8d54('0x2')]=this[_0x5b8d54('0x2')]?this['tail'][_0x5b8d54('0x16')](_0x5707c1):_0x5707c1();};const Migration=function(_0x4885cb){const _0x2b9a2e=_0x4e9b50;this[_0x2b9a2e('0x12')]=_0x4885cb,this['sequence']=new Sequence();};Migration[_0x4e9b50('0x0')][_0x4e9b50('0x7')]=function(_0x189901,_0x20d61b,_0x433a09){const _0x526565=_0x4e9b50,_0x138576=this;this[_0x526565('0xe')][_0x526565('0x18')](function(){const _0x5c11ce=_0x526565;return _0x138576[_0x5c11ce('0x12')][_0x5c11ce('0x7')](_0x189901,_0x20d61b,_0x433a09)[_0x5c11ce('0xd')](function(){const _0x54481d=_0x5c11ce;logger[_0x54481d('0xb')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x20d61b,_0x189901);})[_0x5c11ce('0x14')](function(_0x3e2f88){const _0x549786=_0x5c11ce;logger[_0x549786('0xb')](JSON['stringify'](_0x3e2f88));});});},Migration[_0x4e9b50('0x0')]['addColumn']=function(_0x553fd2,_0x1e0758,_0x2abf6e){const _0x444b91=_0x4e9b50,_0x2d79fd=this;this[_0x444b91('0xe')][_0x444b91('0x18')](function(){const _0x5904bf=_0x444b91;return _0x2d79fd['queryInterface'][_0x5904bf('0x9')](_0x553fd2,_0x1e0758,_0x2abf6e)[_0x5904bf('0xd')](function(){const _0x42a0e=_0x5904bf;logger[_0x42a0e('0xb')]('Added\x20column\x20%s\x20to\x20%s',_0x1e0758,_0x553fd2);})[_0x5904bf('0x14')](function(_0x200b11){const _0x130112=_0x5904bf;logger['info'](JSON[_0x130112('0x3')](_0x200b11));});});},Migration[_0x4e9b50('0x0')][_0x4e9b50('0x10')]=function(_0x1edaf3){const _0x1e87a1=_0x4e9b50,_0x46a32b=this;this[_0x1e87a1('0xe')][_0x1e87a1('0x18')](function(){const _0x5e4f42=_0x1e87a1;return _0x46a32b[_0x5e4f42('0x12')]['dropTable'](_0x1edaf3,{'force':!![]})[_0x5e4f42('0xd')](function(){const _0x407f1f=_0x5e4f42;logger[_0x407f1f('0xb')]('table\x20dropped\x20%s',_0x1edaf3);})[_0x5e4f42('0x14')](function(_0xa6fcef){const _0x4c423e=_0x5e4f42;logger[_0x4c423e('0xb')](JSON['stringify'](_0xa6fcef));});});},Migration['prototype']['addIndex']=function(_0x148124,_0x2c762a,_0x4e8d3c){const _0x5118fe=_0x4e9b50,_0x3f7b9e=this;this['sequence'][_0x5118fe('0x18')](function(){const _0x5a97f2=_0x5118fe;return _0x3f7b9e[_0x5a97f2('0x12')][_0x5a97f2('0x17')](_0x148124,_0x2c762a,{'indexName':_0x4e8d3c})[_0x5a97f2('0xd')](function(){const _0x282e97=_0x5a97f2;logger[_0x282e97('0xb')](_0x282e97('0x13'),_0x148124,_0x2c762a[_0x282e97('0x15')](','),_0x4e8d3c);})[_0x5a97f2('0x14')](function(_0x28c445){const _0x50bbce=_0x5a97f2;logger[_0x50bbce('0xb')](JSON[_0x50bbce('0x3')](_0x28c445));});});},Migration['prototype']['removeIndex']=function(_0x4d6001,_0x5bf369){const _0x4bdf3a=_0x4e9b50,_0x5aa1e9=this;this[_0x4bdf3a('0xe')][_0x4bdf3a('0x18')](function(){const _0x2af006=_0x4bdf3a;return _0x5aa1e9[_0x2af006('0x12')]['removeIndex'](_0x4d6001,_0x5bf369)[_0x2af006('0xd')](function(){const _0x5542a6=_0x2af006;logger['info'](_0x5542a6('0x1'),_0x4d6001,_0x5bf369);})[_0x2af006('0x14')](function(_0x12edb0){const _0x32003e=_0x2af006;logger['info'](JSON[_0x32003e('0x3')](_0x12edb0));});});},Migration[_0x4e9b50('0x0')]['query']=function(_0x40455a){const _0x148f98=this;this['sequence']['enqueue'](function(){const _0x1e777f=a985_0x3b39;return _0x148f98[_0x1e777f('0x12')]['sequelize']['query'](_0x40455a)[_0x1e777f('0xd')](function(){const _0x1c3e83=_0x1e777f;logger[_0x1c3e83('0xb')](_0x1c3e83('0x8'),_0x40455a);})[_0x1e777f('0x14')](function(_0x4d9f6e){const _0x2dda3b=_0x1e777f;logger[_0x2dda3b('0xb')](JSON[_0x2dda3b('0x3')](_0x4d9f6e));});});},Migration[_0x4e9b50('0x0')][_0x4e9b50('0xc')]=function(_0x8dd99d,_0x205248){const _0x41545e=_0x4e9b50,_0x102af5=this;this[_0x41545e('0xe')][_0x41545e('0x18')](function(){const _0x35e05f=_0x41545e;return _0x102af5[_0x35e05f('0x12')][_0x35e05f('0xc')](_0x8dd99d,_0x205248)['then'](function(){const _0x21b825=_0x35e05f;logger[_0x21b825('0xb')](_0x21b825('0x11'),_0x205248,_0x8dd99d);})[_0x35e05f('0x14')](function(_0x1d19aa){const _0x2212b2=_0x35e05f;logger[_0x2212b2('0xb')](util[_0x2212b2('0x5')](_0x1d19aa,{'showHidden':![],'depth':null}));});});},Migration[_0x4e9b50('0x0')][_0x4e9b50('0x6')]=function(_0x163131,_0x4a41b1,_0x1fcd64){const _0x454bf6=_0x4e9b50,_0x4622e8=this;this[_0x454bf6('0xe')][_0x454bf6('0x18')](function(){const _0x3409e7=_0x454bf6;return _0x4622e8['queryInterface']['renameColumn'](_0x163131,_0x4a41b1,_0x1fcd64)[_0x3409e7('0xd')](function(){const _0x5bae9d=_0x3409e7;logger[_0x5bae9d('0xb')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4a41b1,_0x1fcd64,_0x163131);})['catch'](function(_0x4047a8){const _0x213cfa=_0x3409e7;logger[_0x213cfa('0xb')](util[_0x213cfa('0x5')](_0x4047a8,{'showHidden':![],'depth':null}));});});},Migration[_0x4e9b50('0x0')][_0x4e9b50('0x4')]=function(_0x3426ca){const _0x4b9a2b=_0x4e9b50;this[_0x4b9a2b('0xe')][_0x4b9a2b('0x18')](function(){return _0x3426ca();});},module['exports']={'up':function(_0x19cf8a){return new Promise(function(_0x3da051){const _0x2a93c5=a985_0x3b39,_0xbdba39=new Migration(_0x19cf8a);_0xbdba39[_0x2a93c5('0x4')](_0x3da051);});},'down':function(){}};