Built motion from commit 4a18b36e645f5fa4a517d36f9783bde259878164. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.4.js
1 const a976_0x13a5=['Added\x20column\x20%s\x20to\x20%s','addIndex','table\x20dropped\x20%s','removeIndex','enqueue','changeColumn','final','query','addIndex\x20%s\x20%s\x20%s','queryInterface','Removed\x20column\x20%s\x20from\x20%s','stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','info','exports','dropTable','inspect','catch','prototype','renameColumn','then','removeColumn','sequelize','addColumn','finally','migration','sequence','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','../config/logger'];(function(_0x53576d,_0x13a5e8){const _0x50c080=function(_0x58fcc5){while(--_0x58fcc5){_0x53576d['push'](_0x53576d['shift']());}};_0x50c080(++_0x13a5e8);}(a976_0x13a5,0x122));const a976_0x50c0=function(_0x53576d,_0x13a5e8){_0x53576d=_0x53576d-0x0;let _0x50c080=a976_0x13a5[_0x53576d];return _0x50c080;};const _0x5be02a=a976_0x50c0;'use strict';const util=require('util'),logger=require(_0x5be02a('0x1c'))(_0x5be02a('0x19')),Sequence=function(){};Sequence[_0x5be02a('0x12')]['enqueue']=function(_0x58fcc5){const _0x404a2f=_0x5be02a;this['tail']=this['tail']?this['tail'][_0x404a2f('0x18')](_0x58fcc5):_0x58fcc5();};const Migration=function(_0x1578e1){this['queryInterface']=_0x1578e1,this['sequence']=new Sequence();};Migration[_0x5be02a('0x12')][_0x5be02a('0x5')]=function(_0x42e2b5,_0x18b2eb,_0x32ea99){const _0x70cb4d=_0x5be02a,_0x479815=this;this[_0x70cb4d('0x1a')][_0x70cb4d('0x4')](function(){const _0x54632c=_0x70cb4d;return _0x479815[_0x54632c('0x9')][_0x54632c('0x5')](_0x42e2b5,_0x18b2eb,_0x32ea99)[_0x54632c('0x14')](function(){const _0x24c068=_0x54632c;logger[_0x24c068('0xd')](_0x24c068('0xc'),_0x18b2eb,_0x42e2b5);})['catch'](function(_0x2be670){const _0x29164c=_0x54632c;logger[_0x29164c('0xd')](JSON['stringify'](_0x2be670));});});},Migration[_0x5be02a('0x12')][_0x5be02a('0x17')]=function(_0x3b164e,_0x5f1674,_0x5361b2){const _0x5db11e=_0x5be02a,_0x51df57=this;this[_0x5db11e('0x1a')][_0x5db11e('0x4')](function(){const _0x599c23=_0x5db11e;return _0x51df57['queryInterface'][_0x599c23('0x17')](_0x3b164e,_0x5f1674,_0x5361b2)[_0x599c23('0x14')](function(){const _0x50a0cf=_0x599c23;logger[_0x50a0cf('0xd')](_0x50a0cf('0x0'),_0x5f1674,_0x3b164e);})['catch'](function(_0xdd57ba){logger['info'](JSON['stringify'](_0xdd57ba));});});},Migration[_0x5be02a('0x12')][_0x5be02a('0xf')]=function(_0x17d60b){const _0x34a968=_0x5be02a,_0x5e05af=this;this[_0x34a968('0x1a')][_0x34a968('0x4')](function(){const _0x425104=_0x34a968;return _0x5e05af['queryInterface']['dropTable'](_0x17d60b,{'force':!![]})[_0x425104('0x14')](function(){const _0x29396b=_0x425104;logger[_0x29396b('0xd')](_0x29396b('0x2'),_0x17d60b);})[_0x425104('0x11')](function(_0x56f5d2){const _0x1263f3=_0x425104;logger[_0x1263f3('0xd')](JSON[_0x1263f3('0xb')](_0x56f5d2));});});},Migration[_0x5be02a('0x12')][_0x5be02a('0x1')]=function(_0x48a1fe,_0xcdee21,_0x8d440a){const _0x534d22=_0x5be02a,_0x2369c8=this;this[_0x534d22('0x1a')]['enqueue'](function(){const _0x1673fb=_0x534d22;return _0x2369c8[_0x1673fb('0x9')]['addIndex'](_0x48a1fe,_0xcdee21,{'indexName':_0x8d440a})[_0x1673fb('0x14')](function(){const _0x467d94=_0x1673fb;logger['info'](_0x467d94('0x8'),_0x48a1fe,_0xcdee21['join'](','),_0x8d440a);})[_0x1673fb('0x11')](function(_0x3ec854){const _0x31100d=_0x1673fb;logger[_0x31100d('0xd')](JSON[_0x31100d('0xb')](_0x3ec854));});});},Migration['prototype'][_0x5be02a('0x3')]=function(_0x1548d4,_0x4cfc06){const _0x33fddb=_0x5be02a,_0x21cb5a=this;this[_0x33fddb('0x1a')]['enqueue'](function(){const _0x2aefdd=_0x33fddb;return _0x21cb5a[_0x2aefdd('0x9')]['removeIndex'](_0x1548d4,_0x4cfc06)[_0x2aefdd('0x14')](function(){const _0x30e22a=_0x2aefdd;logger[_0x30e22a('0xd')]('removeIndex\x20%s\x20%s',_0x1548d4,_0x4cfc06);})[_0x2aefdd('0x11')](function(_0x2553a7){const _0x35d0ba=_0x2aefdd;logger[_0x35d0ba('0xd')](JSON[_0x35d0ba('0xb')](_0x2553a7));});});},Migration[_0x5be02a('0x12')][_0x5be02a('0x7')]=function(_0x27ce62){const _0x59c4b6=_0x5be02a,_0x541b55=this;this[_0x59c4b6('0x1a')][_0x59c4b6('0x4')](function(){const _0x220671=_0x59c4b6;return _0x541b55[_0x220671('0x9')][_0x220671('0x16')]['query'](_0x27ce62)[_0x220671('0x14')](function(){const _0x247e28=_0x220671;logger[_0x247e28('0xd')]('query\x20%s',_0x27ce62);})['catch'](function(_0x2a8630){const _0xa3c3a9=_0x220671;logger[_0xa3c3a9('0xd')](JSON[_0xa3c3a9('0xb')](_0x2a8630));});});},Migration[_0x5be02a('0x12')][_0x5be02a('0x15')]=function(_0x38f4b0,_0x1c8a28){const _0x20805e=_0x5be02a,_0x4523ba=this;this[_0x20805e('0x1a')][_0x20805e('0x4')](function(){const _0x111c39=_0x20805e;return _0x4523ba[_0x111c39('0x9')][_0x111c39('0x15')](_0x38f4b0,_0x1c8a28)[_0x111c39('0x14')](function(){const _0x23d546=_0x111c39;logger[_0x23d546('0xd')](_0x23d546('0xa'),_0x1c8a28,_0x38f4b0);})[_0x111c39('0x11')](function(_0x26a734){const _0x4b5fbe=_0x111c39;logger['info'](util[_0x4b5fbe('0x10')](_0x26a734,{'showHidden':![],'depth':null}));});});},Migration[_0x5be02a('0x12')][_0x5be02a('0x13')]=function(_0x4d7fe5,_0x13e8d3,_0x2808e1){const _0x2c5d27=_0x5be02a,_0x5c0d71=this;this[_0x2c5d27('0x1a')][_0x2c5d27('0x4')](function(){const _0x1c26d9=_0x2c5d27;return _0x5c0d71[_0x1c26d9('0x9')][_0x1c26d9('0x13')](_0x4d7fe5,_0x13e8d3,_0x2808e1)['then'](function(){const _0x2f19ac=_0x1c26d9;logger[_0x2f19ac('0xd')](_0x2f19ac('0x1b'),_0x13e8d3,_0x2808e1,_0x4d7fe5);})[_0x1c26d9('0x11')](function(_0x2bcaa9){const _0xdf7aa0=_0x1c26d9;logger['info'](util[_0xdf7aa0('0x10')](_0x2bcaa9,{'showHidden':![],'depth':null}));});});},Migration[_0x5be02a('0x12')][_0x5be02a('0x6')]=function(_0xd0b698){const _0x4e316c=_0x5be02a;this[_0x4e316c('0x1a')][_0x4e316c('0x4')](function(){return _0xd0b698();});},module[_0x5be02a('0xe')]={'up':function(_0x3ac969){return new Promise(function(_0x5938b8){const _0x51eade=new Migration(_0x3ac969);_0x51eade['final'](_0x5938b8);});},'down':function(){}};