Built motion from commit 8dca541896b0ff92bb88a36cc13f4f385b593b4b. Version 3.0.0...
[motion-next.git] / server / migrations / 2.5.3.js
index 9a6abb4..e0ad636 100644 (file)
@@ -1 +1 @@
-const a1016_0x56e3=['indicesType','query','join','queryInterface','stringify','info','removeColumn','then','indexName','color','chat_websites','sequence','changeColumn','sequelize','exports','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','renameColumn','Added\x20column\x20%s\x20to\x20%s','../config/logger','tail','addIndex','catch','enqueue','Removed\x20column\x20%s\x20from\x20%s','addColumn','query\x20%s','removeIndex','migration','STRING','util','dropTable','addIndex\x20%s\x20%s\x20%s\x20[%s]','color_button','finally','final','inspect','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x4857b9,_0x56e390){const _0x128a75=function(_0x57cbd3){while(--_0x57cbd3){_0x4857b9['push'](_0x4857b9['shift']());}};_0x128a75(++_0x56e390);}(a1016_0x56e3,0x14e));const a1016_0x128a=function(_0x4857b9,_0x56e390){_0x4857b9=_0x4857b9-0x0;let _0x128a75=a1016_0x56e3[_0x4857b9];return _0x128a75;};const _0x517fc4=a1016_0x128a;'use strict';const util=require(_0x517fc4('0x25')),logger=require(_0x517fc4('0x1a'))(_0x517fc4('0x23')),Sequence=function(){};Sequence[_0x517fc4('0x6')]['enqueue']=function(_0x57cbd3){const _0x45a30e=_0x517fc4;this[_0x45a30e('0x1b')]=this['tail']?this[_0x45a30e('0x1b')][_0x45a30e('0x3')](_0x57cbd3):_0x57cbd3();};const Migration=function(_0x1a0708){const _0x2fb97d=_0x517fc4;this['queryInterface']=_0x1a0708,this[_0x2fb97d('0x13')]=new Sequence();};Migration[_0x517fc4('0x6')][_0x517fc4('0x14')]=function(_0x4fb07a,_0x174549,_0x4ea45b){const _0x48dd1e=_0x517fc4,_0x213b53=this;this[_0x48dd1e('0x13')]['enqueue'](function(){const _0x281206=_0x48dd1e;return _0x213b53[_0x281206('0xb')][_0x281206('0x14')](_0x4fb07a,_0x174549,_0x4ea45b)[_0x281206('0xf')](function(){const _0x1e633b=_0x281206;logger[_0x1e633b('0xd')](_0x1e633b('0x7'),_0x174549,_0x4fb07a);})['catch'](function(_0xc290f1){const _0x434e64=_0x281206;logger[_0x434e64('0xd')](JSON[_0x434e64('0xc')](_0xc290f1));});});},Migration['prototype'][_0x517fc4('0x20')]=function(_0x5381be,_0x466a06,_0x28da50){const _0x3b8b62=_0x517fc4,_0x2c364c=this;this[_0x3b8b62('0x13')][_0x3b8b62('0x1e')](function(){const _0x2670da=_0x3b8b62;return _0x2c364c['queryInterface']['addColumn'](_0x5381be,_0x466a06,_0x28da50)[_0x2670da('0xf')](function(){const _0x3c0e9d=_0x2670da;logger[_0x3c0e9d('0xd')](_0x3c0e9d('0x19'),_0x466a06,_0x5381be);})['catch'](function(_0x55901c){const _0x1781e5=_0x2670da;logger[_0x1781e5('0xd')](JSON[_0x1781e5('0xc')](_0x55901c));});});},Migration[_0x517fc4('0x6')]['dropTable']=function(_0x188e11){const _0xe407c2=_0x517fc4,_0x15abb7=this;this[_0xe407c2('0x13')][_0xe407c2('0x1e')](function(){const _0x5f0b02=_0xe407c2;return _0x15abb7['queryInterface'][_0x5f0b02('0x0')](_0x188e11,{'force':!![]})[_0x5f0b02('0xf')](function(){const _0x4bcaa8=_0x5f0b02;logger[_0x4bcaa8('0xd')]('table\x20dropped\x20%s',_0x188e11);})['catch'](function(_0x54fc43){logger['info'](JSON['stringify'](_0x54fc43));});});},Migration[_0x517fc4('0x6')][_0x517fc4('0x1c')]=function(_0x39998d,_0x254695,_0x254dbf){const _0x135476=_0x517fc4,_0x2f907c=this;this[_0x135476('0x13')][_0x135476('0x1e')](function(){const _0x4e38aa=_0x135476;return _0x2f907c['queryInterface'][_0x4e38aa('0x1c')](_0x39998d,_0x254695,{'indexName':_0x254dbf[_0x4e38aa('0x10')],'indicesType':_0x254dbf[_0x4e38aa('0x8')]})['then'](function(){const _0x576a06=_0x4e38aa;logger['info'](_0x576a06('0x1'),_0x39998d,_0x254695[_0x576a06('0xa')](','),_0x254dbf[_0x576a06('0x10')],_0x254dbf[_0x576a06('0x8')]);})['catch'](function(_0x3a19b0){const _0x56e0d9=_0x4e38aa;logger[_0x56e0d9('0xd')](JSON['stringify'](_0x3a19b0));});});},Migration[_0x517fc4('0x6')][_0x517fc4('0x22')]=function(_0x46b4fc,_0x39a3f3){const _0x11f526=_0x517fc4,_0x313110=this;this[_0x11f526('0x13')][_0x11f526('0x1e')](function(){const _0x75633a=_0x11f526;return _0x313110['queryInterface'][_0x75633a('0x22')](_0x46b4fc,_0x39a3f3)['then'](function(){const _0x4060e6=_0x75633a;logger[_0x4060e6('0xd')]('removeIndex\x20%s\x20%s',_0x46b4fc,_0x39a3f3);})[_0x75633a('0x1d')](function(_0x344977){const _0x5a110a=_0x75633a;logger[_0x5a110a('0xd')](JSON[_0x5a110a('0xc')](_0x344977));});});},Migration['prototype'][_0x517fc4('0x9')]=function(_0x344add){const _0x688b2d=_0x517fc4,_0x40b27d=this;this[_0x688b2d('0x13')][_0x688b2d('0x1e')](function(){const _0x20f66b=_0x688b2d;return _0x40b27d[_0x20f66b('0xb')][_0x20f66b('0x15')]['query'](_0x344add)[_0x20f66b('0xf')](function(){const _0x50811f=_0x20f66b;logger[_0x50811f('0xd')](_0x50811f('0x21'),_0x344add);})[_0x20f66b('0x1d')](function(_0x20d109){const _0x1b9f03=_0x20f66b;logger[_0x1b9f03('0xd')](JSON[_0x1b9f03('0xc')](_0x20d109));});});},Migration['prototype'][_0x517fc4('0xe')]=function(_0x4ae226,_0x176d41){const _0x31eed4=_0x517fc4,_0x32cf64=this;this[_0x31eed4('0x13')]['enqueue'](function(){const _0x37c68f=_0x31eed4;return _0x32cf64[_0x37c68f('0xb')][_0x37c68f('0xe')](_0x4ae226,_0x176d41)['then'](function(){const _0x5301cc=_0x37c68f;logger['info'](_0x5301cc('0x1f'),_0x176d41,_0x4ae226);})[_0x37c68f('0x1d')](function(_0x1ee959){const _0x4f4c13=_0x37c68f;logger[_0x4f4c13('0xd')](util[_0x4f4c13('0x5')](_0x1ee959,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x22b3b7,_0x948e2b,_0x31e454){const _0x59916b=_0x517fc4,_0x275e5b=this;this[_0x59916b('0x13')]['enqueue'](function(){const _0x46aafb=_0x59916b;return _0x275e5b['queryInterface'][_0x46aafb('0x18')](_0x22b3b7,_0x948e2b,_0x31e454)[_0x46aafb('0xf')](function(){const _0x572adc=_0x46aafb;logger['info'](_0x572adc('0x17'),_0x948e2b,_0x31e454,_0x22b3b7);})['catch'](function(_0x5c1d2d){const _0x45149a=_0x46aafb;logger[_0x45149a('0xd')](util[_0x45149a('0x5')](_0x5c1d2d,{'showHidden':![],'depth':null}));});});},Migration[_0x517fc4('0x6')][_0x517fc4('0x4')]=function(_0x1ed397){const _0x4f3032=_0x517fc4;this[_0x4f3032('0x13')][_0x4f3032('0x1e')](function(){return _0x1ed397();});},module[_0x517fc4('0x16')]={'up':function(_0x235b22,_0x1a2f3e){return new Promise(function(_0x448214){const _0x93cccf=a1016_0x128a,_0x4cb3c4=new Migration(_0x235b22);_0x4cb3c4[_0x93cccf('0x14')](_0x93cccf('0x12'),_0x93cccf('0x11'),{'type':_0x1a2f3e[_0x93cccf('0x24')],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}}),_0x4cb3c4[_0x93cccf('0x14')]('chat_websites',_0x93cccf('0x2'),{'type':_0x1a2f3e[_0x93cccf('0x24')],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}}),_0x4cb3c4[_0x93cccf('0x4')](_0x448214);});},'down':function(){}};
\ No newline at end of file
+const a1016_0x4143=['removeIndex','Removed\x20column\x20%s\x20from\x20%s','sequelize','removeColumn','#011F6A','util','STRING','indexName','changeColumn','queryInterface','tail','info','addIndex\x20%s\x20%s\x20%s\x20[%s]','addColumn','query\x20%s','catch','stringify','color_button','migration','then','finally','prototype','../config/logger','join','color','chat_websites','Added\x20column\x20%s\x20to\x20%s','query','enqueue','removeIndex\x20%s\x20%s','final','indicesType','inspect','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence','addIndex'];(function(_0x1e11b7,_0x4143e3){const _0x7d26e2=function(_0x14a8fc){while(--_0x14a8fc){_0x1e11b7['push'](_0x1e11b7['shift']());}};_0x7d26e2(++_0x4143e3);}(a1016_0x4143,0x1be));const a1016_0x7d26=function(_0x1e11b7,_0x4143e3){_0x1e11b7=_0x1e11b7-0x0;let _0x7d26e2=a1016_0x4143[_0x1e11b7];return _0x7d26e2;};const _0x217f26=a1016_0x7d26;'use strict';const util=require(_0x217f26('0x3')),logger=require(_0x217f26('0x14'))(_0x217f26('0x10')),Sequence=function(){};Sequence[_0x217f26('0x13')]['enqueue']=function(_0x14a8fc){const _0x3f4749=_0x217f26;this[_0x3f4749('0x8')]=this[_0x3f4749('0x8')]?this['tail'][_0x3f4749('0x12')](_0x14a8fc):_0x14a8fc();};const Migration=function(_0x2d1e43){const _0x55815a=_0x217f26;this[_0x55815a('0x7')]=_0x2d1e43,this['sequence']=new Sequence();};Migration[_0x217f26('0x13')][_0x217f26('0x6')]=function(_0x2a0207,_0x4b38bc,_0x3dec60){const _0x467c41=_0x217f26,_0x3cd262=this;this['sequence'][_0x467c41('0x1a')](function(){const _0x368322=_0x467c41;return _0x3cd262[_0x368322('0x7')][_0x368322('0x6')](_0x2a0207,_0x4b38bc,_0x3dec60)['then'](function(){const _0xce4575=_0x368322;logger[_0xce4575('0x9')](_0xce4575('0x20'),_0x4b38bc,_0x2a0207);})[_0x368322('0xd')](function(_0x4ea663){const _0x2a3854=_0x368322;logger[_0x2a3854('0x9')](JSON[_0x2a3854('0xe')](_0x4ea663));});});},Migration[_0x217f26('0x13')][_0x217f26('0xb')]=function(_0x3d93f4,_0x5f117b,_0x1703a4){const _0x50702d=_0x217f26,_0x3f7c5f=this;this[_0x50702d('0x21')][_0x50702d('0x1a')](function(){const _0x1d679f=_0x50702d;return _0x3f7c5f[_0x1d679f('0x7')][_0x1d679f('0xb')](_0x3d93f4,_0x5f117b,_0x1703a4)['then'](function(){const _0x30057c=_0x1d679f;logger['info'](_0x30057c('0x18'),_0x5f117b,_0x3d93f4);})['catch'](function(_0x5dac5b){logger['info'](JSON['stringify'](_0x5dac5b));});});},Migration[_0x217f26('0x13')]['dropTable']=function(_0x562589){const _0x4a3402=_0x217f26,_0x2fa7cb=this;this[_0x4a3402('0x21')][_0x4a3402('0x1a')](function(){const _0x2565b9=_0x4a3402;return _0x2fa7cb[_0x2565b9('0x7')]['dropTable'](_0x562589,{'force':!![]})['then'](function(){const _0xd05304=_0x2565b9;logger[_0xd05304('0x9')]('table\x20dropped\x20%s',_0x562589);})[_0x2565b9('0xd')](function(_0x321d2c){const _0x2b3224=_0x2565b9;logger[_0x2b3224('0x9')](JSON['stringify'](_0x321d2c));});});},Migration[_0x217f26('0x13')][_0x217f26('0x22')]=function(_0x3eaca4,_0x3828b4,_0x277fb6){const _0x298c3e=_0x217f26,_0x94ced9=this;this[_0x298c3e('0x21')]['enqueue'](function(){const _0x57c481=_0x298c3e;return _0x94ced9[_0x57c481('0x7')][_0x57c481('0x22')](_0x3eaca4,_0x3828b4,{'indexName':_0x277fb6['indexName'],'indicesType':_0x277fb6[_0x57c481('0x1d')]})[_0x57c481('0x11')](function(){const _0x2f31e9=_0x57c481;logger[_0x2f31e9('0x9')](_0x2f31e9('0xa'),_0x3eaca4,_0x3828b4[_0x2f31e9('0x15')](','),_0x277fb6[_0x2f31e9('0x5')],_0x277fb6[_0x2f31e9('0x1d')]);})[_0x57c481('0xd')](function(_0x449d83){logger['info'](JSON['stringify'](_0x449d83));});});},Migration['prototype'][_0x217f26('0x23')]=function(_0x4a8c60,_0x3fa107){const _0x2aab56=_0x217f26,_0x1097ef=this;this[_0x2aab56('0x21')]['enqueue'](function(){const _0x463f31=_0x2aab56;return _0x1097ef[_0x463f31('0x7')][_0x463f31('0x23')](_0x4a8c60,_0x3fa107)[_0x463f31('0x11')](function(){const _0x2bb4af=_0x463f31;logger[_0x2bb4af('0x9')](_0x2bb4af('0x1b'),_0x4a8c60,_0x3fa107);})['catch'](function(_0x294f3a){const _0x829f13=_0x463f31;logger[_0x829f13('0x9')](JSON[_0x829f13('0xe')](_0x294f3a));});});},Migration['prototype'][_0x217f26('0x19')]=function(_0x157bf5){const _0x3170c0=_0x217f26,_0x230591=this;this['sequence'][_0x3170c0('0x1a')](function(){const _0x2f1712=_0x3170c0;return _0x230591[_0x2f1712('0x7')][_0x2f1712('0x0')][_0x2f1712('0x19')](_0x157bf5)['then'](function(){const _0x7c71f8=_0x2f1712;logger[_0x7c71f8('0x9')](_0x7c71f8('0xc'),_0x157bf5);})[_0x2f1712('0xd')](function(_0x37bceb){const _0x2ab8fe=_0x2f1712;logger['info'](JSON[_0x2ab8fe('0xe')](_0x37bceb));});});},Migration[_0x217f26('0x13')][_0x217f26('0x1')]=function(_0x5bcb61,_0x4f001d){const _0x5ab707=_0x217f26,_0xc8421=this;this[_0x5ab707('0x21')][_0x5ab707('0x1a')](function(){const _0x65ada7=_0x5ab707;return _0xc8421['queryInterface'][_0x65ada7('0x1')](_0x5bcb61,_0x4f001d)['then'](function(){const _0x1f8239=_0x65ada7;logger[_0x1f8239('0x9')](_0x1f8239('0x24'),_0x4f001d,_0x5bcb61);})[_0x65ada7('0xd')](function(_0x465475){const _0x187dd5=_0x65ada7;logger[_0x187dd5('0x9')](util[_0x187dd5('0x1e')](_0x465475,{'showHidden':![],'depth':null}));});});},Migration[_0x217f26('0x13')][_0x217f26('0x1f')]=function(_0x4d5078,_0x47e437,_0xee49aa){const _0x179504=_0x217f26,_0x26ac69=this;this[_0x179504('0x21')][_0x179504('0x1a')](function(){const _0x2f8f07=_0x179504;return _0x26ac69['queryInterface'][_0x2f8f07('0x1f')](_0x4d5078,_0x47e437,_0xee49aa)[_0x2f8f07('0x11')](function(){const _0x2fb875=_0x2f8f07;logger[_0x2fb875('0x9')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x47e437,_0xee49aa,_0x4d5078);})[_0x2f8f07('0xd')](function(_0x495cb4){const _0x265b47=_0x2f8f07;logger[_0x265b47('0x9')](util[_0x265b47('0x1e')](_0x495cb4,{'showHidden':![],'depth':null}));});});},Migration[_0x217f26('0x13')][_0x217f26('0x1c')]=function(_0x4c2995){const _0x22cd44=_0x217f26;this['sequence'][_0x22cd44('0x1a')](function(){return _0x4c2995();});},module['exports']={'up':function(_0xc2f277,_0x2d845a){return new Promise(function(_0x1f5021){const _0x5c5030=a1016_0x7d26,_0x45a86b=new Migration(_0xc2f277);_0x45a86b[_0x5c5030('0x6')](_0x5c5030('0x17'),_0x5c5030('0x16'),{'type':_0x2d845a[_0x5c5030('0x4')],'allowNull':![],'defaultValue':_0x5c5030('0x2'),'validate':{'notEmpty':!![]}}),_0x45a86b['changeColumn'](_0x5c5030('0x17'),_0x5c5030('0xf'),{'type':_0x2d845a['STRING'],'allowNull':![],'defaultValue':_0x5c5030('0x2'),'validate':{'notEmpty':!![]}}),_0x45a86b[_0x5c5030('0x1c')](_0x1f5021);});},'down':function(){}};
\ No newline at end of file