Built motion from commit 459747fdfe53bbf13fbede61eeaffea1f1438f86. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.8.js
index 3230761..befa855 100644 (file)
@@ -1 +1 @@
-const a981_0xdbc0=['sequence','Removed\x20column\x20%s\x20from\x20%s','addIndex','queryInterface','inspect','then','final','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','info','finally','renameColumn','removeIndex\x20%s\x20%s','../config/logger','enqueue','tail','join','dropTable','changeColumn','addColumn','query','removeColumn','util','sequelize','prototype','catch','removeIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s'];(function(_0x54b771,_0xdbc0f1){const _0x4375b4=function(_0x37e1d7){while(--_0x37e1d7){_0x54b771['push'](_0x54b771['shift']());}};_0x4375b4(++_0xdbc0f1);}(a981_0xdbc0,0x1ef));const a981_0x4375=function(_0x54b771,_0xdbc0f1){_0x54b771=_0x54b771-0x0;let _0x4375b4=a981_0xdbc0[_0x54b771];return _0x4375b4;};const _0x490af5=a981_0x4375;'use strict';const util=require(_0x490af5('0x14')),logger=require(_0x490af5('0xb'))('migration'),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x37e1d7){const _0x4492a2=_0x490af5;this[_0x4492a2('0xd')]=this[_0x4492a2('0xd')]?this[_0x4492a2('0xd')][_0x4492a2('0x8')](_0x37e1d7):_0x37e1d7();};const Migration=function(_0x2d708b){const _0x27f1eb=_0x490af5;this[_0x27f1eb('0x1')]=_0x2d708b,this['sequence']=new Sequence();};Migration[_0x490af5('0x16')][_0x490af5('0x10')]=function(_0x1a7c94,_0x5309c9,_0x127152){const _0x54f714=_0x490af5,_0x31dc93=this;this[_0x54f714('0x1b')]['enqueue'](function(){const _0x40a412=_0x54f714;return _0x31dc93[_0x40a412('0x1')]['changeColumn'](_0x1a7c94,_0x5309c9,_0x127152)[_0x40a412('0x3')](function(){const _0x2d0743=_0x40a412;logger['info'](_0x2d0743('0x5'),_0x5309c9,_0x1a7c94);})[_0x40a412('0x17')](function(_0x550b60){const _0x5ebb57=_0x40a412;logger['info'](JSON[_0x5ebb57('0x6')](_0x550b60));});});},Migration[_0x490af5('0x16')]['addColumn']=function(_0x29b011,_0x532321,_0x46df7b){const _0x2ffb53=this;this['sequence']['enqueue'](function(){const _0x538214=a981_0x4375;return _0x2ffb53[_0x538214('0x1')][_0x538214('0x11')](_0x29b011,_0x532321,_0x46df7b)[_0x538214('0x3')](function(){const _0x2765c2=_0x538214;logger[_0x2765c2('0x7')]('Added\x20column\x20%s\x20to\x20%s',_0x532321,_0x29b011);})[_0x538214('0x17')](function(_0x4ae14d){const _0x52af80=_0x538214;logger[_0x52af80('0x7')](JSON['stringify'](_0x4ae14d));});});},Migration[_0x490af5('0x16')][_0x490af5('0xf')]=function(_0x374d08){const _0xfa4324=_0x490af5,_0x12cb34=this;this[_0xfa4324('0x1b')][_0xfa4324('0xc')](function(){const _0x1e8e35=_0xfa4324;return _0x12cb34['queryInterface'][_0x1e8e35('0xf')](_0x374d08,{'force':!![]})[_0x1e8e35('0x3')](function(){const _0xe7cc09=_0x1e8e35;logger[_0xe7cc09('0x7')](_0xe7cc09('0x1a'),_0x374d08);})[_0x1e8e35('0x17')](function(_0xf9cd34){const _0x216da8=_0x1e8e35;logger[_0x216da8('0x7')](JSON[_0x216da8('0x6')](_0xf9cd34));});});},Migration[_0x490af5('0x16')][_0x490af5('0x0')]=function(_0xca253d,_0x5b1dbf,_0x4d1c49){const _0x15e508=_0x490af5,_0x334146=this;this['sequence'][_0x15e508('0xc')](function(){const _0x419af8=_0x15e508;return _0x334146[_0x419af8('0x1')][_0x419af8('0x0')](_0xca253d,_0x5b1dbf,{'indexName':_0x4d1c49})[_0x419af8('0x3')](function(){const _0xccac33=_0x419af8;logger['info']('addIndex\x20%s\x20%s\x20%s',_0xca253d,_0x5b1dbf[_0xccac33('0xe')](','),_0x4d1c49);})[_0x419af8('0x17')](function(_0x19f573){const _0x3882c6=_0x419af8;logger['info'](JSON[_0x3882c6('0x6')](_0x19f573));});});},Migration[_0x490af5('0x16')][_0x490af5('0x18')]=function(_0x256f93,_0x5555c0){const _0x370210=_0x490af5,_0x57329b=this;this[_0x370210('0x1b')][_0x370210('0xc')](function(){const _0x532e81=_0x370210;return _0x57329b[_0x532e81('0x1')][_0x532e81('0x18')](_0x256f93,_0x5555c0)['then'](function(){const _0x245374=_0x532e81;logger['info'](_0x245374('0xa'),_0x256f93,_0x5555c0);})[_0x532e81('0x17')](function(_0x308676){logger['info'](JSON['stringify'](_0x308676));});});},Migration['prototype']['query']=function(_0x3283a8){const _0x1f6322=_0x490af5,_0x397427=this;this[_0x1f6322('0x1b')][_0x1f6322('0xc')](function(){const _0x58ac15=_0x1f6322;return _0x397427['queryInterface'][_0x58ac15('0x15')][_0x58ac15('0x12')](_0x3283a8)[_0x58ac15('0x3')](function(){logger['info']('query\x20%s',_0x3283a8);})[_0x58ac15('0x17')](function(_0x43c80a){logger['info'](JSON['stringify'](_0x43c80a));});});},Migration['prototype'][_0x490af5('0x13')]=function(_0x1b6432,_0x39353a){const _0x41a0fc=_0x490af5,_0x58ecb2=this;this[_0x41a0fc('0x1b')]['enqueue'](function(){const _0x1d4941=_0x41a0fc;return _0x58ecb2[_0x1d4941('0x1')][_0x1d4941('0x13')](_0x1b6432,_0x39353a)[_0x1d4941('0x3')](function(){const _0x3650f8=_0x1d4941;logger['info'](_0x3650f8('0x1c'),_0x39353a,_0x1b6432);})[_0x1d4941('0x17')](function(_0x1ef08c){const _0x58fe03=_0x1d4941;logger[_0x58fe03('0x7')](util[_0x58fe03('0x2')](_0x1ef08c,{'showHidden':![],'depth':null}));});});},Migration[_0x490af5('0x16')][_0x490af5('0x9')]=function(_0xa22592,_0x32df85,_0x31eac9){const _0x15e0fd=_0x490af5,_0x5e402e=this;this[_0x15e0fd('0x1b')][_0x15e0fd('0xc')](function(){const _0x18f4fe=_0x15e0fd;return _0x5e402e['queryInterface'][_0x18f4fe('0x9')](_0xa22592,_0x32df85,_0x31eac9)[_0x18f4fe('0x3')](function(){const _0x5de08e=_0x18f4fe;logger['info'](_0x5de08e('0x19'),_0x32df85,_0x31eac9,_0xa22592);})['catch'](function(_0x10ec79){logger['info'](util['inspect'](_0x10ec79,{'showHidden':![],'depth':null}));});});},Migration[_0x490af5('0x16')][_0x490af5('0x4')]=function(_0x18e379){const _0x124aee=_0x490af5;this[_0x124aee('0x1b')]['enqueue'](function(){return _0x18e379();});},module['exports']={'up':function(_0x87ac1){return new Promise(function(_0x5debb6){const _0x2f8301=a981_0x4375,_0x335984=new Migration(_0x87ac1);_0x335984[_0x2f8301('0x4')](_0x5debb6);});},'down':function(){}};
\ No newline at end of file
+const a981_0x4830=['enqueue','migration','removeIndex\x20%s\x20%s','join','then','addIndex','changeColumn','final','inspect','renameColumn','prototype','sequence','dropTable','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','../config/logger','queryInterface','stringify','info','query\x20%s','exports','addIndex\x20%s\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','finally','query','tail','sequelize','catch','addColumn','removeIndex'];(function(_0x54b492,_0x4830eb){const _0x541030=function(_0x1ae8f8){while(--_0x1ae8f8){_0x54b492['push'](_0x54b492['shift']());}};_0x541030(++_0x4830eb);}(a981_0x4830,0xfd));const a981_0x5410=function(_0x54b492,_0x4830eb){_0x54b492=_0x54b492-0x0;let _0x541030=a981_0x4830[_0x54b492];return _0x541030;};const _0xc72c0c=a981_0x5410;'use strict';const util=require('util'),logger=require(_0xc72c0c('0x2'))(_0xc72c0c('0x12')),Sequence=function(){};Sequence['prototype'][_0xc72c0c('0x11')]=function(_0x1ae8f8){const _0x5cf536=_0xc72c0c;this[_0x5cf536('0xc')]=this[_0x5cf536('0xc')]?this[_0x5cf536('0xc')][_0x5cf536('0xa')](_0x1ae8f8):_0x1ae8f8();};const Migration=function(_0x402662){const _0x5d4701=_0xc72c0c;this[_0x5d4701('0x3')]=_0x402662,this[_0x5d4701('0x1c')]=new Sequence();};Migration[_0xc72c0c('0x1b')][_0xc72c0c('0x17')]=function(_0x5313b1,_0x5c1f12,_0x2097b0){const _0x17f331=_0xc72c0c,_0x487a9c=this;this[_0x17f331('0x1c')][_0x17f331('0x11')](function(){const _0x25658c=_0x17f331;return _0x487a9c['queryInterface'][_0x25658c('0x17')](_0x5313b1,_0x5c1f12,_0x2097b0)[_0x25658c('0x15')](function(){const _0x2bb8ee=_0x25658c;logger[_0x2bb8ee('0x5')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x5c1f12,_0x5313b1);})[_0x25658c('0xe')](function(_0x2137fb){const _0x41efe1=_0x25658c;logger[_0x41efe1('0x5')](JSON[_0x41efe1('0x4')](_0x2137fb));});});},Migration[_0xc72c0c('0x1b')][_0xc72c0c('0xf')]=function(_0x566c33,_0xd2652c,_0x3278c8){const _0x5b159a=_0xc72c0c,_0x69c620=this;this[_0x5b159a('0x1c')][_0x5b159a('0x11')](function(){const _0x2313bc=_0x5b159a;return _0x69c620[_0x2313bc('0x3')][_0x2313bc('0xf')](_0x566c33,_0xd2652c,_0x3278c8)['then'](function(){const _0x479b8c=_0x2313bc;logger['info'](_0x479b8c('0x0'),_0xd2652c,_0x566c33);})[_0x2313bc('0xe')](function(_0x2af5ad){const _0x1a3c7e=_0x2313bc;logger[_0x1a3c7e('0x5')](JSON[_0x1a3c7e('0x4')](_0x2af5ad));});});},Migration[_0xc72c0c('0x1b')][_0xc72c0c('0x1d')]=function(_0x35dd7e){const _0x274101=_0xc72c0c,_0xa002a7=this;this[_0x274101('0x1c')]['enqueue'](function(){const _0x207fe9=_0x274101;return _0xa002a7[_0x207fe9('0x3')][_0x207fe9('0x1d')](_0x35dd7e,{'force':!![]})[_0x207fe9('0x15')](function(){logger['info']('table\x20dropped\x20%s',_0x35dd7e);})['catch'](function(_0x31d7c8){const _0x4066dd=_0x207fe9;logger[_0x4066dd('0x5')](JSON[_0x4066dd('0x4')](_0x31d7c8));});});},Migration[_0xc72c0c('0x1b')][_0xc72c0c('0x16')]=function(_0x5c0db2,_0x268426,_0x2007a3){const _0x4cf8b4=_0xc72c0c,_0x408c70=this;this[_0x4cf8b4('0x1c')][_0x4cf8b4('0x11')](function(){const _0x4d158d=_0x4cf8b4;return _0x408c70[_0x4d158d('0x3')]['addIndex'](_0x5c0db2,_0x268426,{'indexName':_0x2007a3})[_0x4d158d('0x15')](function(){const _0x243702=_0x4d158d;logger['info'](_0x243702('0x8'),_0x5c0db2,_0x268426[_0x243702('0x14')](','),_0x2007a3);})[_0x4d158d('0xe')](function(_0x344cbe){const _0x4d4ca9=_0x4d158d;logger[_0x4d4ca9('0x5')](JSON[_0x4d4ca9('0x4')](_0x344cbe));});});},Migration[_0xc72c0c('0x1b')][_0xc72c0c('0x10')]=function(_0x558d63,_0x1a98d0){const _0x4c464a=_0xc72c0c,_0x3a4330=this;this[_0x4c464a('0x1c')][_0x4c464a('0x11')](function(){const _0x281f86=_0x4c464a;return _0x3a4330['queryInterface'][_0x281f86('0x10')](_0x558d63,_0x1a98d0)['then'](function(){const _0x32e591=_0x281f86;logger[_0x32e591('0x5')](_0x32e591('0x13'),_0x558d63,_0x1a98d0);})[_0x281f86('0xe')](function(_0xe2c8b6){const _0x374282=_0x281f86;logger[_0x374282('0x5')](JSON[_0x374282('0x4')](_0xe2c8b6));});});},Migration[_0xc72c0c('0x1b')][_0xc72c0c('0xb')]=function(_0xc1ef55){const _0x4a4597=_0xc72c0c,_0x451c78=this;this['sequence'][_0x4a4597('0x11')](function(){const _0x439cf5=_0x4a4597;return _0x451c78[_0x439cf5('0x3')][_0x439cf5('0xd')][_0x439cf5('0xb')](_0xc1ef55)[_0x439cf5('0x15')](function(){const _0x338984=_0x439cf5;logger['info'](_0x338984('0x6'),_0xc1ef55);})['catch'](function(_0xd00f80){const _0x45bcaa=_0x439cf5;logger[_0x45bcaa('0x5')](JSON[_0x45bcaa('0x4')](_0xd00f80));});});},Migration['prototype']['removeColumn']=function(_0x57cd6c,_0x441c6e){const _0x1065b4=_0xc72c0c,_0x3b0ab0=this;this[_0x1065b4('0x1c')][_0x1065b4('0x11')](function(){const _0x20c23f=_0x1065b4;return _0x3b0ab0[_0x20c23f('0x3')]['removeColumn'](_0x57cd6c,_0x441c6e)[_0x20c23f('0x15')](function(){const _0x170db7=_0x20c23f;logger[_0x170db7('0x5')](_0x170db7('0x9'),_0x441c6e,_0x57cd6c);})[_0x20c23f('0xe')](function(_0x1af957){const _0x5813a6=_0x20c23f;logger[_0x5813a6('0x5')](util[_0x5813a6('0x19')](_0x1af957,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0xc72c0c('0x1a')]=function(_0xc9f854,_0x384b06,_0x17d710){const _0x18f258=_0xc72c0c,_0x5ece45=this;this[_0x18f258('0x1c')]['enqueue'](function(){const _0x5411fc=_0x18f258;return _0x5ece45[_0x5411fc('0x3')][_0x5411fc('0x1a')](_0xc9f854,_0x384b06,_0x17d710)[_0x5411fc('0x15')](function(){const _0x2c7cdd=_0x5411fc;logger[_0x2c7cdd('0x5')](_0x2c7cdd('0x1'),_0x384b06,_0x17d710,_0xc9f854);})['catch'](function(_0x42ed90){const _0x4519eb=_0x5411fc;logger['info'](util[_0x4519eb('0x19')](_0x42ed90,{'showHidden':![],'depth':null}));});});},Migration[_0xc72c0c('0x1b')][_0xc72c0c('0x18')]=function(_0x7820a6){const _0x37d70d=_0xc72c0c;this[_0x37d70d('0x1c')][_0x37d70d('0x11')](function(){return _0x7820a6();});},module[_0xc72c0c('0x7')]={'up':function(_0x288c19){return new Promise(function(_0x9a1c1a){const _0x541ee8=a981_0x5410,_0x49f6c1=new Migration(_0x288c19);_0x49f6c1[_0x541ee8('0x18')](_0x9a1c1a);});},'down':function(){}};
\ No newline at end of file