Built motion from commit 8dca541896b0ff92bb88a36cc13f4f385b593b4b. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.84.js
index dd6e53d..abef0d2 100644 (file)
@@ -1 +1 @@
-const a963_0x2875=['enqueue','removeIndex','inspect','addColumn','catch','migration','addIndex\x20%s\x20%s\x20%s','then','sequence','final','Added\x20column\x20%s\x20to\x20%s','removeColumn','prototype','Removed\x20column\x20%s\x20from\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex\x20%s\x20%s','query\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','queryInterface','info','changeColumn','dropTable','finally','renameColumn','tail','util','join','sequelize','stringify','exports','addIndex'];(function(_0x2511ca,_0x287598){const _0x17ae6a=function(_0x2deb8f){while(--_0x2deb8f){_0x2511ca['push'](_0x2511ca['shift']());}};_0x17ae6a(++_0x287598);}(a963_0x2875,0x112));const a963_0x17ae=function(_0x2511ca,_0x287598){_0x2511ca=_0x2511ca-0x0;let _0x17ae6a=a963_0x2875[_0x2511ca];return _0x17ae6a;};const _0x420013=a963_0x17ae;'use strict';const util=require(_0x420013('0x8')),logger=require('../config/logger')(_0x420013('0x13')),Sequence=function(){};Sequence[_0x420013('0x1a')]['enqueue']=function(_0x2deb8f){const _0x39c5e4=_0x420013;this[_0x39c5e4('0x7')]=this[_0x39c5e4('0x7')]?this[_0x39c5e4('0x7')][_0x39c5e4('0x5')](_0x2deb8f):_0x2deb8f();};const Migration=function(_0x817bf8){const _0x2555ed=_0x420013;this[_0x2555ed('0x1')]=_0x817bf8,this[_0x2555ed('0x16')]=new Sequence();};Migration[_0x420013('0x1a')][_0x420013('0x3')]=function(_0x2e5211,_0x5ac064,_0x1cb480){const _0x13ca1a=_0x420013,_0x24c92c=this;this[_0x13ca1a('0x16')][_0x13ca1a('0xe')](function(){const _0x566815=_0x13ca1a;return _0x24c92c[_0x566815('0x1')][_0x566815('0x3')](_0x2e5211,_0x5ac064,_0x1cb480)[_0x566815('0x15')](function(){const _0x5255b0=_0x566815;logger[_0x5255b0('0x2')](_0x5255b0('0x1f'),_0x5ac064,_0x2e5211);})[_0x566815('0x12')](function(_0x157366){const _0x599d39=_0x566815;logger[_0x599d39('0x2')](JSON[_0x599d39('0xb')](_0x157366));});});},Migration[_0x420013('0x1a')][_0x420013('0x11')]=function(_0x47bba7,_0x15a443,_0x5ee245){const _0x568433=_0x420013,_0x2ce7c7=this;this[_0x568433('0x16')]['enqueue'](function(){const _0x37748f=_0x568433;return _0x2ce7c7['queryInterface'][_0x37748f('0x11')](_0x47bba7,_0x15a443,_0x5ee245)[_0x37748f('0x15')](function(){const _0x59c66d=_0x37748f;logger[_0x59c66d('0x2')](_0x59c66d('0x18'),_0x15a443,_0x47bba7);})[_0x37748f('0x12')](function(_0x25510c){const _0x4d168c=_0x37748f;logger[_0x4d168c('0x2')](JSON[_0x4d168c('0xb')](_0x25510c));});});},Migration[_0x420013('0x1a')][_0x420013('0x4')]=function(_0x2e9e56){const _0x291bb6=_0x420013,_0x5e3842=this;this[_0x291bb6('0x16')][_0x291bb6('0xe')](function(){const _0xe1140b=_0x291bb6;return _0x5e3842[_0xe1140b('0x1')]['dropTable'](_0x2e9e56,{'force':!![]})[_0xe1140b('0x15')](function(){const _0x15788e=_0xe1140b;logger['info'](_0x15788e('0x0'),_0x2e9e56);})[_0xe1140b('0x12')](function(_0x469d56){const _0x2d312f=_0xe1140b;logger[_0x2d312f('0x2')](JSON[_0x2d312f('0xb')](_0x469d56));});});},Migration[_0x420013('0x1a')][_0x420013('0xd')]=function(_0x5ca68b,_0x181264,_0x3f0cc4){const _0x3075d2=_0x420013,_0x261759=this;this['sequence'][_0x3075d2('0xe')](function(){const _0x43028d=_0x3075d2;return _0x261759[_0x43028d('0x1')]['addIndex'](_0x5ca68b,_0x181264,{'indexName':_0x3f0cc4})[_0x43028d('0x15')](function(){const _0xc4c47=_0x43028d;logger[_0xc4c47('0x2')](_0xc4c47('0x14'),_0x5ca68b,_0x181264[_0xc4c47('0x9')](','),_0x3f0cc4);})[_0x43028d('0x12')](function(_0x38a1be){const _0x986108=_0x43028d;logger[_0x986108('0x2')](JSON['stringify'](_0x38a1be));});});},Migration[_0x420013('0x1a')][_0x420013('0xf')]=function(_0xeeaa6d,_0x49dbda){const _0x33f5df=_0x420013,_0x5add08=this;this[_0x33f5df('0x16')][_0x33f5df('0xe')](function(){const _0xc2310f=_0x33f5df;return _0x5add08[_0xc2310f('0x1')][_0xc2310f('0xf')](_0xeeaa6d,_0x49dbda)['then'](function(){const _0x333cd4=_0xc2310f;logger[_0x333cd4('0x2')](_0x333cd4('0x1d'),_0xeeaa6d,_0x49dbda);})['catch'](function(_0x497db9){const _0x573884=_0xc2310f;logger['info'](JSON[_0x573884('0xb')](_0x497db9));});});},Migration[_0x420013('0x1a')]['query']=function(_0x3be316){const _0xf66d8f=_0x420013,_0x40d8f0=this;this[_0xf66d8f('0x16')]['enqueue'](function(){const _0x11147c=_0xf66d8f;return _0x40d8f0[_0x11147c('0x1')][_0x11147c('0xa')]['query'](_0x3be316)['then'](function(){const _0x5b44b3=_0x11147c;logger[_0x5b44b3('0x2')](_0x5b44b3('0x1e'),_0x3be316);})['catch'](function(_0x7181af){const _0x3dc414=_0x11147c;logger[_0x3dc414('0x2')](JSON[_0x3dc414('0xb')](_0x7181af));});});},Migration['prototype'][_0x420013('0x19')]=function(_0x315bc4,_0x3a768b){const _0x587d8e=_0x420013,_0x1a979b=this;this['sequence'][_0x587d8e('0xe')](function(){const _0x44404e=_0x587d8e;return _0x1a979b[_0x44404e('0x1')][_0x44404e('0x19')](_0x315bc4,_0x3a768b)[_0x44404e('0x15')](function(){const _0x5743ed=_0x44404e;logger['info'](_0x5743ed('0x1b'),_0x3a768b,_0x315bc4);})[_0x44404e('0x12')](function(_0x3f14e5){const _0x1c60c0=_0x44404e;logger[_0x1c60c0('0x2')](util[_0x1c60c0('0x10')](_0x3f14e5,{'showHidden':![],'depth':null}));});});},Migration[_0x420013('0x1a')][_0x420013('0x6')]=function(_0x33cfeb,_0x12784e,_0x420802){const _0x27c79e=_0x420013,_0x342846=this;this['sequence'][_0x27c79e('0xe')](function(){const _0x4bf42a=_0x27c79e;return _0x342846['queryInterface'][_0x4bf42a('0x6')](_0x33cfeb,_0x12784e,_0x420802)[_0x4bf42a('0x15')](function(){const _0x3b24b2=_0x4bf42a;logger[_0x3b24b2('0x2')](_0x3b24b2('0x1c'),_0x12784e,_0x420802,_0x33cfeb);})['catch'](function(_0x3f3b36){const _0x559428=_0x4bf42a;logger[_0x559428('0x2')](util[_0x559428('0x10')](_0x3f3b36,{'showHidden':![],'depth':null}));});});},Migration[_0x420013('0x1a')][_0x420013('0x17')]=function(_0x4a276f){const _0xe4bec9=_0x420013;this[_0xe4bec9('0x16')][_0xe4bec9('0xe')](function(){return _0x4a276f();});},module[_0x420013('0xc')]={'up':function(_0x1d3961){return new Promise(function(_0xe84a2){const _0x65765f=new Migration(_0x1d3961);_0x65765f['final'](_0xe84a2);});},'down':function(){}};
\ No newline at end of file
+const a963_0x3ad7=['then','join','prototype','sequelize','addIndex\x20%s\x20%s\x20%s','dropTable','catch','info','exports','addColumn','enqueue','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','queryInterface','../config/logger','stringify','table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','final','sequence','query\x20%s','addIndex','removeColumn','removeIndex','finally','changeColumn','query','inspect','tail'];(function(_0x5a3d31,_0x3ad713){const _0x13f567=function(_0x184fad){while(--_0x184fad){_0x5a3d31['push'](_0x5a3d31['shift']());}};_0x13f567(++_0x3ad713);}(a963_0x3ad7,0xf4));const a963_0x13f5=function(_0x5a3d31,_0x3ad713){_0x5a3d31=_0x5a3d31-0x0;let _0x13f567=a963_0x3ad7[_0x5a3d31];return _0x13f567;};const _0x12da3b=a963_0x13f5;'use strict';const util=require('util'),logger=require(_0x12da3b('0x2'))('migration'),Sequence=function(){};Sequence[_0x12da3b('0x13')][_0x12da3b('0x1b')]=function(_0x184fad){const _0x17bd4c=_0x12da3b;this[_0x17bd4c('0x10')]=this[_0x17bd4c('0x10')]?this[_0x17bd4c('0x10')][_0x17bd4c('0xc')](_0x184fad):_0x184fad();};const Migration=function(_0x1464ed){this['queryInterface']=_0x1464ed,this['sequence']=new Sequence();};Migration[_0x12da3b('0x13')][_0x12da3b('0xd')]=function(_0x108c11,_0x1e8eab,_0x3a9002){const _0x3a7544=_0x12da3b,_0x114a1a=this;this['sequence'][_0x3a7544('0x1b')](function(){const _0x2ac7ed=_0x3a7544;return _0x114a1a[_0x2ac7ed('0x1')][_0x2ac7ed('0xd')](_0x108c11,_0x1e8eab,_0x3a9002)['then'](function(){const _0x3f3330=_0x2ac7ed;logger[_0x3f3330('0x18')](_0x3f3330('0x0'),_0x1e8eab,_0x108c11);})['catch'](function(_0x5df899){const _0x1a1a47=_0x2ac7ed;logger['info'](JSON[_0x1a1a47('0x3')](_0x5df899));});});},Migration['prototype'][_0x12da3b('0x1a')]=function(_0xefdda9,_0x2453b1,_0x4fe734){const _0x4b9704=_0x12da3b,_0x15f112=this;this[_0x4b9704('0x7')][_0x4b9704('0x1b')](function(){const _0x119098=_0x4b9704;return _0x15f112['queryInterface']['addColumn'](_0xefdda9,_0x2453b1,_0x4fe734)[_0x119098('0x11')](function(){const _0x32e0e0=_0x119098;logger[_0x32e0e0('0x18')]('Added\x20column\x20%s\x20to\x20%s',_0x2453b1,_0xefdda9);})[_0x119098('0x17')](function(_0x4f6826){const _0x3e36e1=_0x119098;logger[_0x3e36e1('0x18')](JSON[_0x3e36e1('0x3')](_0x4f6826));});});},Migration[_0x12da3b('0x13')][_0x12da3b('0x16')]=function(_0x17c36e){const _0x35e88f=_0x12da3b,_0x1a259a=this;this[_0x35e88f('0x7')]['enqueue'](function(){const _0x3bde6d=_0x35e88f;return _0x1a259a[_0x3bde6d('0x1')][_0x3bde6d('0x16')](_0x17c36e,{'force':!![]})['then'](function(){const _0x453fa0=_0x3bde6d;logger['info'](_0x453fa0('0x4'),_0x17c36e);})[_0x3bde6d('0x17')](function(_0x28d3e8){const _0xd5652f=_0x3bde6d;logger[_0xd5652f('0x18')](JSON['stringify'](_0x28d3e8));});});},Migration[_0x12da3b('0x13')]['addIndex']=function(_0x1ccc49,_0x4f71b5,_0x384db8){const _0x5bbd2b=_0x12da3b,_0xd6f20b=this;this[_0x5bbd2b('0x7')][_0x5bbd2b('0x1b')](function(){const _0x31b54c=_0x5bbd2b;return _0xd6f20b['queryInterface'][_0x31b54c('0x9')](_0x1ccc49,_0x4f71b5,{'indexName':_0x384db8})[_0x31b54c('0x11')](function(){const _0x433c1b=_0x31b54c;logger[_0x433c1b('0x18')](_0x433c1b('0x15'),_0x1ccc49,_0x4f71b5[_0x433c1b('0x12')](','),_0x384db8);})[_0x31b54c('0x17')](function(_0x4604a2){const _0x469e00=_0x31b54c;logger[_0x469e00('0x18')](JSON[_0x469e00('0x3')](_0x4604a2));});});},Migration[_0x12da3b('0x13')][_0x12da3b('0xb')]=function(_0xdadedc,_0x353cb3){const _0x1bbd84=_0x12da3b,_0x24b852=this;this[_0x1bbd84('0x7')][_0x1bbd84('0x1b')](function(){const _0x200097=_0x1bbd84;return _0x24b852[_0x200097('0x1')]['removeIndex'](_0xdadedc,_0x353cb3)[_0x200097('0x11')](function(){const _0x373dae=_0x200097;logger[_0x373dae('0x18')]('removeIndex\x20%s\x20%s',_0xdadedc,_0x353cb3);})[_0x200097('0x17')](function(_0x47c945){const _0x471999=_0x200097;logger['info'](JSON[_0x471999('0x3')](_0x47c945));});});},Migration[_0x12da3b('0x13')][_0x12da3b('0xe')]=function(_0x3c5cdc){const _0xc8853f=_0x12da3b,_0x18b04a=this;this['sequence'][_0xc8853f('0x1b')](function(){const _0x480c39=_0xc8853f;return _0x18b04a[_0x480c39('0x1')][_0x480c39('0x14')][_0x480c39('0xe')](_0x3c5cdc)[_0x480c39('0x11')](function(){const _0x29e048=_0x480c39;logger[_0x29e048('0x18')](_0x29e048('0x8'),_0x3c5cdc);})[_0x480c39('0x17')](function(_0x502826){const _0x40694c=_0x480c39;logger[_0x40694c('0x18')](JSON[_0x40694c('0x3')](_0x502826));});});},Migration[_0x12da3b('0x13')][_0x12da3b('0xa')]=function(_0x487341,_0xc47d46){const _0x4bca86=this;this['sequence']['enqueue'](function(){const _0xcf789f=a963_0x13f5;return _0x4bca86[_0xcf789f('0x1')][_0xcf789f('0xa')](_0x487341,_0xc47d46)[_0xcf789f('0x11')](function(){const _0x1b5981=_0xcf789f;logger[_0x1b5981('0x18')](_0x1b5981('0x5'),_0xc47d46,_0x487341);})[_0xcf789f('0x17')](function(_0x6fbc38){const _0x448e7b=_0xcf789f;logger[_0x448e7b('0x18')](util[_0x448e7b('0xf')](_0x6fbc38,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x12da3b('0x1c')]=function(_0x4dedfe,_0x21d335,_0xe9e963){const _0x3267e0=_0x12da3b,_0x1ffaae=this;this[_0x3267e0('0x7')][_0x3267e0('0x1b')](function(){const _0x18dae6=_0x3267e0;return _0x1ffaae[_0x18dae6('0x1')][_0x18dae6('0x1c')](_0x4dedfe,_0x21d335,_0xe9e963)[_0x18dae6('0x11')](function(){const _0x3757e6=_0x18dae6;logger[_0x3757e6('0x18')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x21d335,_0xe9e963,_0x4dedfe);})['catch'](function(_0x197b59){const _0x1de6ad=_0x18dae6;logger['info'](util[_0x1de6ad('0xf')](_0x197b59,{'showHidden':![],'depth':null}));});});},Migration[_0x12da3b('0x13')][_0x12da3b('0x6')]=function(_0x329ca8){const _0x8a05ef=_0x12da3b;this['sequence'][_0x8a05ef('0x1b')](function(){return _0x329ca8();});},module[_0x12da3b('0x19')]={'up':function(_0x1616eb){return new Promise(function(_0x2d2b3f){const _0x347942=new Migration(_0x1616eb);_0x347942['final'](_0x2d2b3f);});},'down':function(){}};
\ No newline at end of file