Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.78.js
index 234664e..69496db 100644 (file)
@@ -1 +1 @@
-const a957_0x3087=['changeColumn','removeIndex','stringify','../config/logger','renameColumn','addIndex','addColumn','queryInterface','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query\x20%s','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','Removed\x20column\x20%s\x20from\x20%s','prototype','exports','then','info','final','query','addIndex\x20%s\x20%s\x20%s','dropTable','sequence','inspect','enqueue','sequelize'];(function(_0x2318fc,_0x3087ab){const _0x365a10=function(_0x47e0b7){while(--_0x47e0b7){_0x2318fc['push'](_0x2318fc['shift']());}};_0x365a10(++_0x3087ab);}(a957_0x3087,0x8f));const a957_0x365a=function(_0x2318fc,_0x3087ab){_0x2318fc=_0x2318fc-0x0;let _0x365a10=a957_0x3087[_0x2318fc];return _0x365a10;};const _0x14a78f=a957_0x365a;'use strict';const util=require('util'),logger=require(_0x14a78f('0x10'))('migration'),Sequence=function(){};Sequence[_0x14a78f('0x1')][_0x14a78f('0xb')]=function(_0x47e0b7){const _0x443571=_0x14a78f;this[_0x443571('0x19')]=this[_0x443571('0x19')]?this['tail']['finally'](_0x47e0b7):_0x47e0b7();};const Migration=function(_0x5dfe95){const _0x19f0fe=_0x14a78f;this[_0x19f0fe('0x14')]=_0x5dfe95,this['sequence']=new Sequence();};Migration[_0x14a78f('0x1')]['changeColumn']=function(_0xc32cfa,_0x16fade,_0x220f15){const _0x1471df=_0x14a78f,_0x12fe59=this;this[_0x1471df('0x9')]['enqueue'](function(){const _0x22ef6f=_0x1471df;return _0x12fe59[_0x22ef6f('0x14')][_0x22ef6f('0xd')](_0xc32cfa,_0x16fade,_0x220f15)[_0x22ef6f('0x3')](function(){const _0x34f702=_0x22ef6f;logger[_0x34f702('0x4')](_0x34f702('0x18'),_0x16fade,_0xc32cfa);})[_0x22ef6f('0x17')](function(_0x3f415c){const _0x125359=_0x22ef6f;logger[_0x125359('0x4')](JSON[_0x125359('0xf')](_0x3f415c));});});},Migration['prototype'][_0x14a78f('0x13')]=function(_0xfdd8fa,_0x12827f,_0x97d963){const _0x3df5d4=_0x14a78f,_0xc9017a=this;this[_0x3df5d4('0x9')][_0x3df5d4('0xb')](function(){const _0x1b100d=_0x3df5d4;return _0xc9017a[_0x1b100d('0x14')][_0x1b100d('0x13')](_0xfdd8fa,_0x12827f,_0x97d963)[_0x1b100d('0x3')](function(){const _0x20a922=_0x1b100d;logger[_0x20a922('0x4')]('Added\x20column\x20%s\x20to\x20%s',_0x12827f,_0xfdd8fa);})['catch'](function(_0x11d0b0){const _0x73926=_0x1b100d;logger['info'](JSON[_0x73926('0xf')](_0x11d0b0));});});},Migration[_0x14a78f('0x1')][_0x14a78f('0x8')]=function(_0x251ff2){const _0x781700=_0x14a78f,_0x4975a9=this;this[_0x781700('0x9')]['enqueue'](function(){const _0x10fa80=_0x781700;return _0x4975a9[_0x10fa80('0x14')]['dropTable'](_0x251ff2,{'force':!![]})['then'](function(){const _0x3c48c0=_0x10fa80;logger[_0x3c48c0('0x4')]('table\x20dropped\x20%s',_0x251ff2);})['catch'](function(_0x5f484d){const _0x50518e=_0x10fa80;logger['info'](JSON[_0x50518e('0xf')](_0x5f484d));});});},Migration[_0x14a78f('0x1')][_0x14a78f('0x12')]=function(_0x410e0b,_0x24bb6e,_0xdc3c3e){const _0x2aa1c1=_0x14a78f,_0x2b00ef=this;this[_0x2aa1c1('0x9')][_0x2aa1c1('0xb')](function(){const _0x49adde=_0x2aa1c1;return _0x2b00ef['queryInterface'][_0x49adde('0x12')](_0x410e0b,_0x24bb6e,{'indexName':_0xdc3c3e})['then'](function(){const _0x40b469=_0x49adde;logger[_0x40b469('0x4')](_0x40b469('0x7'),_0x410e0b,_0x24bb6e['join'](','),_0xdc3c3e);})[_0x49adde('0x17')](function(_0x5e5d69){const _0x309542=_0x49adde;logger['info'](JSON[_0x309542('0xf')](_0x5e5d69));});});},Migration[_0x14a78f('0x1')][_0x14a78f('0xe')]=function(_0x34a9a,_0x4cde5a){const _0x595b7e=_0x14a78f,_0xc085fe=this;this[_0x595b7e('0x9')][_0x595b7e('0xb')](function(){const _0x50367b=_0x595b7e;return _0xc085fe['queryInterface'][_0x50367b('0xe')](_0x34a9a,_0x4cde5a)['then'](function(){const _0x240f8c=_0x50367b;logger[_0x240f8c('0x4')]('removeIndex\x20%s\x20%s',_0x34a9a,_0x4cde5a);})['catch'](function(_0x2c468a){const _0x58ea3d=_0x50367b;logger[_0x58ea3d('0x4')](JSON[_0x58ea3d('0xf')](_0x2c468a));});});},Migration[_0x14a78f('0x1')]['query']=function(_0x5e9787){const _0x4df4b2=_0x14a78f,_0x21842d=this;this['sequence'][_0x4df4b2('0xb')](function(){const _0x2abd2a=_0x4df4b2;return _0x21842d[_0x2abd2a('0x14')][_0x2abd2a('0xc')][_0x2abd2a('0x6')](_0x5e9787)[_0x2abd2a('0x3')](function(){const _0x4e822f=_0x2abd2a;logger[_0x4e822f('0x4')](_0x4e822f('0x16'),_0x5e9787);})[_0x2abd2a('0x17')](function(_0x4d94d9){const _0x588310=_0x2abd2a;logger[_0x588310('0x4')](JSON[_0x588310('0xf')](_0x4d94d9));});});},Migration[_0x14a78f('0x1')]['removeColumn']=function(_0x3936de,_0x1eeb48){const _0x4be9b4=_0x14a78f,_0x4f92e5=this;this[_0x4be9b4('0x9')][_0x4be9b4('0xb')](function(){const _0x53b05f=_0x4be9b4;return _0x4f92e5[_0x53b05f('0x14')]['removeColumn'](_0x3936de,_0x1eeb48)[_0x53b05f('0x3')](function(){const _0x32f9d8=_0x53b05f;logger[_0x32f9d8('0x4')](_0x32f9d8('0x0'),_0x1eeb48,_0x3936de);})[_0x53b05f('0x17')](function(_0x585e76){const _0x355179=_0x53b05f;logger[_0x355179('0x4')](util[_0x355179('0xa')](_0x585e76,{'showHidden':![],'depth':null}));});});},Migration[_0x14a78f('0x1')][_0x14a78f('0x11')]=function(_0x369218,_0x171fc4,_0x1cf385){const _0x90ae0=this;this['sequence']['enqueue'](function(){const _0x4703fc=a957_0x365a;return _0x90ae0[_0x4703fc('0x14')][_0x4703fc('0x11')](_0x369218,_0x171fc4,_0x1cf385)[_0x4703fc('0x3')](function(){const _0x3e7014=_0x4703fc;logger[_0x3e7014('0x4')](_0x3e7014('0x15'),_0x171fc4,_0x1cf385,_0x369218);})[_0x4703fc('0x17')](function(_0xb36c95){const _0x5218c7=_0x4703fc;logger[_0x5218c7('0x4')](util[_0x5218c7('0xa')](_0xb36c95,{'showHidden':![],'depth':null}));});});},Migration[_0x14a78f('0x1')][_0x14a78f('0x5')]=function(_0x8728e2){const _0x5b8d08=_0x14a78f;this[_0x5b8d08('0x9')][_0x5b8d08('0xb')](function(){return _0x8728e2();});},module[_0x14a78f('0x2')]={'up':function(_0x5b4531){return new Promise(function(_0x4936a4){const _0x1210d0=a957_0x365a,_0x4a72c9=new Migration(_0x5b4531);_0x4a72c9[_0x1210d0('0x6')]('ALTER\x20TABLE\x20square_messages\x20ENCRYPTION=\x27Y\x27;'),_0x4a72c9[_0x1210d0('0x5')](_0x4936a4);});},'down':function(){}};
\ No newline at end of file
+const a957_0x22fd=['../config/logger','Added\x20column\x20%s\x20to\x20%s','util','stringify','info','changeColumn','migration','ALTER\x20TABLE\x20square_messages\x20ENCRYPTION=\x27Y\x27;','table\x20dropped\x20%s','then','addIndex\x20%s\x20%s\x20%s','queryInterface','dropTable','join','final','addColumn','removeIndex\x20%s\x20%s','inspect','enqueue','renameColumn','catch','query','sequence','addIndex','prototype','removeIndex','exports','query\x20%s'];(function(_0x1d841b,_0x22fd7f){const _0x3fa8bd=function(_0x5d6abd){while(--_0x5d6abd){_0x1d841b['push'](_0x1d841b['shift']());}};_0x3fa8bd(++_0x22fd7f);}(a957_0x22fd,0x66));const a957_0x3fa8=function(_0x1d841b,_0x22fd7f){_0x1d841b=_0x1d841b-0x0;let _0x3fa8bd=a957_0x22fd[_0x1d841b];return _0x3fa8bd;};const _0x29747d=a957_0x3fa8;'use strict';const util=require(_0x29747d('0xc')),logger=require(_0x29747d('0xa'))(_0x29747d('0x10')),Sequence=function(){};Sequence[_0x29747d('0x6')][_0x29747d('0x0')]=function(_0x5d6abd){this['tail']=this['tail']?this['tail']['finally'](_0x5d6abd):_0x5d6abd();};const Migration=function(_0x23bbc1){const _0x5872ac=_0x29747d;this[_0x5872ac('0x15')]=_0x23bbc1,this['sequence']=new Sequence();};Migration[_0x29747d('0x6')][_0x29747d('0xf')]=function(_0x29cdcd,_0x2c0f07,_0x14e7fe){const _0x16e7c2=_0x29747d,_0x25d108=this;this[_0x16e7c2('0x4')]['enqueue'](function(){const _0x1b819f=_0x16e7c2;return _0x25d108[_0x1b819f('0x15')]['changeColumn'](_0x29cdcd,_0x2c0f07,_0x14e7fe)[_0x1b819f('0x13')](function(){const _0x561259=_0x1b819f;logger[_0x561259('0xe')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x2c0f07,_0x29cdcd);})['catch'](function(_0x5d580b){const _0x945efc=_0x1b819f;logger[_0x945efc('0xe')](JSON[_0x945efc('0xd')](_0x5d580b));});});},Migration['prototype'][_0x29747d('0x19')]=function(_0x7ad10b,_0x9940b9,_0x3e32d1){const _0x3d10c6=_0x29747d,_0x439263=this;this[_0x3d10c6('0x4')][_0x3d10c6('0x0')](function(){const _0x30b8af=_0x3d10c6;return _0x439263[_0x30b8af('0x15')][_0x30b8af('0x19')](_0x7ad10b,_0x9940b9,_0x3e32d1)[_0x30b8af('0x13')](function(){const _0x523f45=_0x30b8af;logger['info'](_0x523f45('0xb'),_0x9940b9,_0x7ad10b);})[_0x30b8af('0x2')](function(_0x35dd6b){logger['info'](JSON['stringify'](_0x35dd6b));});});},Migration[_0x29747d('0x6')]['dropTable']=function(_0x166239){const _0x1ce0bf=_0x29747d,_0x1f5708=this;this['sequence'][_0x1ce0bf('0x0')](function(){const _0xc5fff9=_0x1ce0bf;return _0x1f5708[_0xc5fff9('0x15')][_0xc5fff9('0x16')](_0x166239,{'force':!![]})[_0xc5fff9('0x13')](function(){const _0x4413c5=_0xc5fff9;logger[_0x4413c5('0xe')](_0x4413c5('0x12'),_0x166239);})[_0xc5fff9('0x2')](function(_0x5b8f64){const _0x10addc=_0xc5fff9;logger[_0x10addc('0xe')](JSON['stringify'](_0x5b8f64));});});},Migration[_0x29747d('0x6')][_0x29747d('0x5')]=function(_0x589114,_0x2fe668,_0x451301){const _0x5b5b62=this;this['sequence']['enqueue'](function(){const _0x2922ca=a957_0x3fa8;return _0x5b5b62['queryInterface'][_0x2922ca('0x5')](_0x589114,_0x2fe668,{'indexName':_0x451301})[_0x2922ca('0x13')](function(){const _0x23e50b=_0x2922ca;logger[_0x23e50b('0xe')](_0x23e50b('0x14'),_0x589114,_0x2fe668[_0x23e50b('0x17')](','),_0x451301);})[_0x2922ca('0x2')](function(_0x3caf8c){const _0xf6f5c0=_0x2922ca;logger[_0xf6f5c0('0xe')](JSON[_0xf6f5c0('0xd')](_0x3caf8c));});});},Migration[_0x29747d('0x6')]['removeIndex']=function(_0xd43194,_0x3a2daf){const _0x2574ff=_0x29747d,_0x1aec03=this;this[_0x2574ff('0x4')][_0x2574ff('0x0')](function(){const _0x4f3ab8=_0x2574ff;return _0x1aec03[_0x4f3ab8('0x15')][_0x4f3ab8('0x7')](_0xd43194,_0x3a2daf)['then'](function(){const _0x58075a=_0x4f3ab8;logger['info'](_0x58075a('0x1a'),_0xd43194,_0x3a2daf);})['catch'](function(_0x2e6244){const _0x4e8ef8=_0x4f3ab8;logger[_0x4e8ef8('0xe')](JSON[_0x4e8ef8('0xd')](_0x2e6244));});});},Migration['prototype']['query']=function(_0x55302c){const _0xae6a4e=_0x29747d,_0x485474=this;this['sequence'][_0xae6a4e('0x0')](function(){const _0x22cee5=_0xae6a4e;return _0x485474[_0x22cee5('0x15')]['sequelize'][_0x22cee5('0x3')](_0x55302c)[_0x22cee5('0x13')](function(){const _0x5b4166=_0x22cee5;logger[_0x5b4166('0xe')](_0x5b4166('0x9'),_0x55302c);})[_0x22cee5('0x2')](function(_0x32d2f2){const _0x18b167=_0x22cee5;logger['info'](JSON[_0x18b167('0xd')](_0x32d2f2));});});},Migration['prototype']['removeColumn']=function(_0x512625,_0x1f5cd7){const _0x40b18b=_0x29747d,_0x1e09f2=this;this[_0x40b18b('0x4')][_0x40b18b('0x0')](function(){const _0x5da09c=_0x40b18b;return _0x1e09f2['queryInterface']['removeColumn'](_0x512625,_0x1f5cd7)[_0x5da09c('0x13')](function(){const _0xe96ba7=_0x5da09c;logger[_0xe96ba7('0xe')]('Removed\x20column\x20%s\x20from\x20%s',_0x1f5cd7,_0x512625);})[_0x5da09c('0x2')](function(_0x5bc568){const _0x5bb712=_0x5da09c;logger[_0x5bb712('0xe')](util[_0x5bb712('0x1b')](_0x5bc568,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x29747d('0x1')]=function(_0x400b0c,_0x4125b7,_0x4ebf2b){const _0xbb0a00=_0x29747d,_0x2387c2=this;this[_0xbb0a00('0x4')][_0xbb0a00('0x0')](function(){const _0x3827e5=_0xbb0a00;return _0x2387c2[_0x3827e5('0x15')][_0x3827e5('0x1')](_0x400b0c,_0x4125b7,_0x4ebf2b)['then'](function(){const _0x2a04d0=_0x3827e5;logger[_0x2a04d0('0xe')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4125b7,_0x4ebf2b,_0x400b0c);})['catch'](function(_0x10a428){const _0x1bd290=_0x3827e5;logger[_0x1bd290('0xe')](util['inspect'](_0x10a428,{'showHidden':![],'depth':null}));});});},Migration[_0x29747d('0x6')][_0x29747d('0x18')]=function(_0xcfe33){this['sequence']['enqueue'](function(){return _0xcfe33();});},module[_0x29747d('0x8')]={'up':function(_0x344096){return new Promise(function(_0x2bae4c){const _0xe6dd66=a957_0x3fa8,_0x532363=new Migration(_0x344096);_0x532363[_0xe6dd66('0x3')](_0xe6dd66('0x11')),_0x532363['final'](_0x2bae4c);});},'down':function(){}};
\ No newline at end of file