Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.6.js
index baad346..0919809 100644 (file)
@@ -1 +1 @@
-const a979_0x2cc0=['enqueue','changeColumn','../config/logger','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','removeIndex','then','indicesType','query','renameColumn','sequelize','addColumn','sequence','util','prototype','removeColumn','Added\x20column\x20%s\x20to\x20%s','catch','stringify','Removed\x20column\x20%s\x20from\x20%s','inspect','indexName','migration','removeIndex\x20%s\x20%s','info','join','queryInterface','addIndex','final','exports','tail'];(function(_0x3997f5,_0x2cc07d){const _0x2149c4=function(_0x5cabc7){while(--_0x5cabc7){_0x3997f5['push'](_0x3997f5['shift']());}};_0x2149c4(++_0x2cc07d);}(a979_0x2cc0,0x82));const a979_0x2149=function(_0x3997f5,_0x2cc07d){_0x3997f5=_0x3997f5-0x0;let _0x2149c4=a979_0x2cc0[_0x3997f5];return _0x2149c4;};const _0x4286c3=a979_0x2149;'use strict';const util=require(_0x4286c3('0xc')),logger=require(_0x4286c3('0x0'))(_0x4286c3('0x15')),Sequence=function(){};Sequence[_0x4286c3('0xd')]['enqueue']=function(_0x5cabc7){const _0x300457=_0x4286c3;this['tail']=this[_0x300457('0x1d')]?this['tail']['finally'](_0x5cabc7):_0x5cabc7();};const Migration=function(_0x236c15){const _0x575c20=_0x4286c3;this[_0x575c20('0x19')]=_0x236c15,this['sequence']=new Sequence();};Migration[_0x4286c3('0xd')][_0x4286c3('0x1f')]=function(_0x1c9b58,_0x20309c,_0x2dbfe8){const _0x3d5413=_0x4286c3,_0x1d01af=this;this[_0x3d5413('0xb')][_0x3d5413('0x1e')](function(){const _0x1e02b1=_0x3d5413;return _0x1d01af[_0x1e02b1('0x19')][_0x1e02b1('0x1f')](_0x1c9b58,_0x20309c,_0x2dbfe8)[_0x1e02b1('0x5')](function(){const _0x58f0be=_0x1e02b1;logger[_0x58f0be('0x17')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x20309c,_0x1c9b58);})[_0x1e02b1('0x10')](function(_0x3d4dec){const _0x49863e=_0x1e02b1;logger['info'](JSON[_0x49863e('0x11')](_0x3d4dec));});});},Migration[_0x4286c3('0xd')][_0x4286c3('0xa')]=function(_0x4a1c0c,_0x194d8e,_0x4a824b){const _0x4a73e7=_0x4286c3,_0x35c259=this;this[_0x4a73e7('0xb')][_0x4a73e7('0x1e')](function(){const _0x14ae86=_0x4a73e7;return _0x35c259[_0x14ae86('0x19')]['addColumn'](_0x4a1c0c,_0x194d8e,_0x4a824b)[_0x14ae86('0x5')](function(){const _0x5af04a=_0x14ae86;logger[_0x5af04a('0x17')](_0x5af04a('0xf'),_0x194d8e,_0x4a1c0c);})[_0x14ae86('0x10')](function(_0x299f65){const _0x1816dc=_0x14ae86;logger[_0x1816dc('0x17')](JSON['stringify'](_0x299f65));});});},Migration['prototype'][_0x4286c3('0x1')]=function(_0x2376d6){const _0x1903b3=_0x4286c3,_0x5995f0=this;this[_0x1903b3('0xb')][_0x1903b3('0x1e')](function(){const _0x5317c7=_0x1903b3;return _0x5995f0[_0x5317c7('0x19')]['dropTable'](_0x2376d6,{'force':!![]})[_0x5317c7('0x5')](function(){const _0x111c51=_0x5317c7;logger[_0x111c51('0x17')](_0x111c51('0x3'),_0x2376d6);})['catch'](function(_0x4b109e){const _0x2bfddb=_0x5317c7;logger[_0x2bfddb('0x17')](JSON[_0x2bfddb('0x11')](_0x4b109e));});});},Migration[_0x4286c3('0xd')][_0x4286c3('0x1a')]=function(_0x517e3a,_0x2dba9e,_0x14830c){const _0x9616e0=_0x4286c3,_0x44a3d2=this;this[_0x9616e0('0xb')][_0x9616e0('0x1e')](function(){const _0xb0a954=_0x9616e0;return _0x44a3d2[_0xb0a954('0x19')][_0xb0a954('0x1a')](_0x517e3a,_0x2dba9e,{'indexName':_0x14830c[_0xb0a954('0x14')],'indicesType':_0x14830c['indicesType']})[_0xb0a954('0x5')](function(){const _0x4def41=_0xb0a954;logger[_0x4def41('0x17')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x517e3a,_0x2dba9e[_0x4def41('0x18')](','),_0x14830c[_0x4def41('0x14')],_0x14830c[_0x4def41('0x6')]);})[_0xb0a954('0x10')](function(_0x4e68d){const _0x375038=_0xb0a954;logger[_0x375038('0x17')](JSON['stringify'](_0x4e68d));});});},Migration[_0x4286c3('0xd')][_0x4286c3('0x4')]=function(_0x538480,_0xadf5c1){const _0x543e64=_0x4286c3,_0x2740a9=this;this[_0x543e64('0xb')]['enqueue'](function(){const _0x319d62=_0x543e64;return _0x2740a9[_0x319d62('0x19')]['removeIndex'](_0x538480,_0xadf5c1)[_0x319d62('0x5')](function(){const _0x2a4166=_0x319d62;logger[_0x2a4166('0x17')](_0x2a4166('0x16'),_0x538480,_0xadf5c1);})[_0x319d62('0x10')](function(_0x190350){const _0x2fdbaf=_0x319d62;logger[_0x2fdbaf('0x17')](JSON[_0x2fdbaf('0x11')](_0x190350));});});},Migration[_0x4286c3('0xd')]['query']=function(_0x234f69){const _0x101f8c=this;this['sequence']['enqueue'](function(){const _0x82c474=a979_0x2149;return _0x101f8c[_0x82c474('0x19')][_0x82c474('0x9')][_0x82c474('0x7')](_0x234f69)['then'](function(){const _0x2911ec=_0x82c474;logger[_0x2911ec('0x17')]('query\x20%s',_0x234f69);})[_0x82c474('0x10')](function(_0x5165d6){const _0x4286e5=_0x82c474;logger[_0x4286e5('0x17')](JSON[_0x4286e5('0x11')](_0x5165d6));});});},Migration[_0x4286c3('0xd')][_0x4286c3('0xe')]=function(_0xe288f2,_0x42beed){const _0x3839a1=_0x4286c3,_0xe311a5=this;this['sequence'][_0x3839a1('0x1e')](function(){const _0x5260f1=_0x3839a1;return _0xe311a5['queryInterface'][_0x5260f1('0xe')](_0xe288f2,_0x42beed)[_0x5260f1('0x5')](function(){const _0x5e2fc1=_0x5260f1;logger[_0x5e2fc1('0x17')](_0x5e2fc1('0x12'),_0x42beed,_0xe288f2);})[_0x5260f1('0x10')](function(_0x5487aa){const _0x49c9ec=_0x5260f1;logger[_0x49c9ec('0x17')](util[_0x49c9ec('0x13')](_0x5487aa,{'showHidden':![],'depth':null}));});});},Migration[_0x4286c3('0xd')][_0x4286c3('0x8')]=function(_0x309970,_0x2850ee,_0x2f0299){const _0x196b2f=_0x4286c3,_0x2281a5=this;this[_0x196b2f('0xb')][_0x196b2f('0x1e')](function(){const _0x20916d=_0x196b2f;return _0x2281a5[_0x20916d('0x19')][_0x20916d('0x8')](_0x309970,_0x2850ee,_0x2f0299)[_0x20916d('0x5')](function(){const _0x6ef368=_0x20916d;logger[_0x6ef368('0x17')](_0x6ef368('0x2'),_0x2850ee,_0x2f0299,_0x309970);})['catch'](function(_0x50ebb6){const _0x593b88=_0x20916d;logger[_0x593b88('0x17')](util[_0x593b88('0x13')](_0x50ebb6,{'showHidden':![],'depth':null}));});});},Migration[_0x4286c3('0xd')][_0x4286c3('0x1b')]=function(_0x5172ad){const _0x4242db=_0x4286c3;this[_0x4242db('0xb')]['enqueue'](function(){return _0x5172ad();});},module[_0x4286c3('0x1c')]={'up':function(_0x358db6){return new Promise(function(_0x25a67a){const _0x307354=new Migration(_0x358db6);_0x307354['final'](_0x25a67a);});},'down':function(){}};
\ No newline at end of file
+const a979_0x33a5=['removeIndex\x20%s\x20%s','catch','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequelize','prototype','query','query\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','sequence','indexName','join','removeColumn','changeColumn','final','table\x20dropped\x20%s','removeIndex','exports','addIndex','renameColumn','finally','dropTable','tail','Removed\x20column\x20%s\x20from\x20%s','indicesType','addColumn','enqueue','info','queryInterface'];(function(_0x41fbb3,_0x33a512){const _0x42f482=function(_0x4702ef){while(--_0x4702ef){_0x41fbb3['push'](_0x41fbb3['shift']());}};_0x42f482(++_0x33a512);}(a979_0x33a5,0x185));const a979_0x42f4=function(_0x41fbb3,_0x33a512){_0x41fbb3=_0x41fbb3-0x0;let _0x42f482=a979_0x33a5[_0x41fbb3];return _0x42f482;};const _0x5ac132=a979_0x42f4;'use strict';const util=require('util'),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence['prototype'][_0x5ac132('0xb')]=function(_0x4702ef){const _0x5ae252=_0x5ac132;this[_0x5ae252('0x7')]=this['tail']?this[_0x5ae252('0x7')][_0x5ae252('0x5')](_0x4702ef):_0x4702ef();};const Migration=function(_0x147000){const _0xf938a6=_0x5ac132;this[_0xf938a6('0xd')]=_0x147000,this[_0xf938a6('0x19')]=new Sequence();};Migration[_0x5ac132('0x12')][_0x5ac132('0x1d')]=function(_0x4060b6,_0x46219e,_0x1f4b98){const _0x1126e8=this;this['sequence']['enqueue'](function(){const _0x39f91b=a979_0x42f4;return _0x1126e8[_0x39f91b('0xd')][_0x39f91b('0x1d')](_0x4060b6,_0x46219e,_0x1f4b98)[_0x39f91b('0x18')](function(){const _0x293dca=_0x39f91b;logger[_0x293dca('0xc')](_0x293dca('0x15'),_0x46219e,_0x4060b6);})[_0x39f91b('0xf')](function(_0x4dca5d){const _0x523fa9=_0x39f91b;logger[_0x523fa9('0xc')](JSON[_0x523fa9('0x16')](_0x4dca5d));});});},Migration[_0x5ac132('0x12')][_0x5ac132('0xa')]=function(_0x5babc4,_0x27a07c,_0x49cdba){const _0x5a4f88=_0x5ac132,_0x599e7b=this;this[_0x5a4f88('0x19')][_0x5a4f88('0xb')](function(){const _0xee8416=_0x5a4f88;return _0x599e7b[_0xee8416('0xd')]['addColumn'](_0x5babc4,_0x27a07c,_0x49cdba)[_0xee8416('0x18')](function(){const _0x5b9654=_0xee8416;logger[_0x5b9654('0xc')]('Added\x20column\x20%s\x20to\x20%s',_0x27a07c,_0x5babc4);})[_0xee8416('0xf')](function(_0x33e4d4){const _0x49cf91=_0xee8416;logger['info'](JSON[_0x49cf91('0x16')](_0x33e4d4));});});},Migration[_0x5ac132('0x12')][_0x5ac132('0x6')]=function(_0x2937d7){const _0x1f3e11=_0x5ac132,_0x171b53=this;this[_0x1f3e11('0x19')]['enqueue'](function(){const _0x527b17=_0x1f3e11;return _0x171b53['queryInterface'][_0x527b17('0x6')](_0x2937d7,{'force':!![]})[_0x527b17('0x18')](function(){const _0x5688a4=_0x527b17;logger['info'](_0x5688a4('0x0'),_0x2937d7);})[_0x527b17('0xf')](function(_0xfc7aca){const _0x9541dc=_0x527b17;logger[_0x9541dc('0xc')](JSON['stringify'](_0xfc7aca));});});},Migration[_0x5ac132('0x12')]['addIndex']=function(_0x137964,_0x38a38b,_0x21cec3){const _0x4b00d2=_0x5ac132,_0x4dfbc2=this;this[_0x4b00d2('0x19')]['enqueue'](function(){const _0x31783f=_0x4b00d2;return _0x4dfbc2[_0x31783f('0xd')][_0x31783f('0x3')](_0x137964,_0x38a38b,{'indexName':_0x21cec3['indexName'],'indicesType':_0x21cec3[_0x31783f('0x9')]})[_0x31783f('0x18')](function(){const _0xa317cf=_0x31783f;logger['info'](_0xa317cf('0x10'),_0x137964,_0x38a38b[_0xa317cf('0x1b')](','),_0x21cec3[_0xa317cf('0x1a')],_0x21cec3[_0xa317cf('0x9')]);})[_0x31783f('0xf')](function(_0x130889){const _0x70c12d=_0x31783f;logger[_0x70c12d('0xc')](JSON['stringify'](_0x130889));});});},Migration[_0x5ac132('0x12')][_0x5ac132('0x1')]=function(_0x42f94e,_0x5ee8df){const _0x81caef=_0x5ac132,_0x40226a=this;this[_0x81caef('0x19')][_0x81caef('0xb')](function(){const _0x5d8247=_0x81caef;return _0x40226a[_0x5d8247('0xd')][_0x5d8247('0x1')](_0x42f94e,_0x5ee8df)[_0x5d8247('0x18')](function(){const _0x8201fd=_0x5d8247;logger[_0x8201fd('0xc')](_0x8201fd('0xe'),_0x42f94e,_0x5ee8df);})['catch'](function(_0x3e0b19){const _0x174b39=_0x5d8247;logger['info'](JSON[_0x174b39('0x16')](_0x3e0b19));});});},Migration[_0x5ac132('0x12')][_0x5ac132('0x13')]=function(_0x3b3426){const _0x5ab584=_0x5ac132,_0x25ccab=this;this[_0x5ab584('0x19')][_0x5ab584('0xb')](function(){const _0x2af2b1=_0x5ab584;return _0x25ccab['queryInterface'][_0x2af2b1('0x11')]['query'](_0x3b3426)[_0x2af2b1('0x18')](function(){const _0x25895b=_0x2af2b1;logger['info'](_0x25895b('0x14'),_0x3b3426);})[_0x2af2b1('0xf')](function(_0x197d57){const _0x5d655f=_0x2af2b1;logger[_0x5d655f('0xc')](JSON[_0x5d655f('0x16')](_0x197d57));});});},Migration[_0x5ac132('0x12')]['removeColumn']=function(_0x55b59b,_0x24a315){const _0x4f3b0a=_0x5ac132,_0x47e106=this;this[_0x4f3b0a('0x19')][_0x4f3b0a('0xb')](function(){const _0xf6c312=_0x4f3b0a;return _0x47e106[_0xf6c312('0xd')][_0xf6c312('0x1c')](_0x55b59b,_0x24a315)[_0xf6c312('0x18')](function(){const _0x3124d1=_0xf6c312;logger['info'](_0x3124d1('0x8'),_0x24a315,_0x55b59b);})['catch'](function(_0x55c808){const _0x35c02e=_0xf6c312;logger[_0x35c02e('0xc')](util['inspect'](_0x55c808,{'showHidden':![],'depth':null}));});});},Migration[_0x5ac132('0x12')][_0x5ac132('0x4')]=function(_0xf7a912,_0x46a01e,_0x4dc019){const _0x30bde6=_0x5ac132,_0x13fb07=this;this[_0x30bde6('0x19')][_0x30bde6('0xb')](function(){const _0x28eb0f=_0x30bde6;return _0x13fb07[_0x28eb0f('0xd')][_0x28eb0f('0x4')](_0xf7a912,_0x46a01e,_0x4dc019)['then'](function(){const _0x3f248c=_0x28eb0f;logger[_0x3f248c('0xc')](_0x3f248c('0x17'),_0x46a01e,_0x4dc019,_0xf7a912);})[_0x28eb0f('0xf')](function(_0x378c71){const _0x1ed4df=_0x28eb0f;logger[_0x1ed4df('0xc')](util['inspect'](_0x378c71,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x4c655d){const _0x1076a8=_0x5ac132;this[_0x1076a8('0x19')][_0x1076a8('0xb')](function(){return _0x4c655d();});},module[_0x5ac132('0x2')]={'up':function(_0xaf8965){return new Promise(function(_0x1baea6){const _0x34272b=a979_0x42f4,_0x53d537=new Migration(_0xaf8965);_0x53d537[_0x34272b('0x1e')](_0x1baea6);});},'down':function(){}};
\ No newline at end of file