Built motion from commit b517aaa2a6638133380e4d135c64a80893061362. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.5.js
index 7c19387..6ce6e88 100644 (file)
@@ -1 +1 @@
-const a1008_0x34d7=['Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','prototype','addIndex\x20%s\x20%s\x20%s\x20[%s]','renameColumn','catch','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','indexName','dropTable','exports','sequelize','sequence','stringify','then','removeColumn','queryInterface','tail','inspect','addIndex','final','finally','info','removeIndex\x20%s\x20%s','query','indicesType','removeIndex','addColumn','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\x20%s'];(function(_0x59a7ae,_0x34d7c5){const _0x4654de=function(_0x2e1f5f){while(--_0x2e1f5f){_0x59a7ae['push'](_0x59a7ae['shift']());}};_0x4654de(++_0x34d7c5);}(a1008_0x34d7,0x1c8));const a1008_0x4654=function(_0x59a7ae,_0x34d7c5){_0x59a7ae=_0x59a7ae-0x0;let _0x4654de=a1008_0x34d7[_0x59a7ae];return _0x4654de;};const _0x2adfac=a1008_0x4654;'use strict';const util=require('util'),logger=require(_0x2adfac('0x19'))('migration'),Sequence=function(){};Sequence[_0x2adfac('0x1a')][_0x2adfac('0x1')]=function(_0x2e1f5f){const _0x1aafb2=_0x2adfac;this['tail']=this[_0x1aafb2('0xb')]?this[_0x1aafb2('0xb')][_0x1aafb2('0xf')](_0x2e1f5f):_0x2e1f5f();};const Migration=function(_0x36f30b){const _0x389907=_0x2adfac;this[_0x389907('0xa')]=_0x36f30b,this[_0x389907('0x6')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x4722e7,_0x3f8122,_0x4f1bf7){const _0x59603f=_0x2adfac,_0x45cc4b=this;this[_0x59603f('0x6')][_0x59603f('0x1')](function(){const _0x27b03f=_0x59603f;return _0x45cc4b['queryInterface']['changeColumn'](_0x4722e7,_0x3f8122,_0x4f1bf7)['then'](function(){const _0x4846cd=a1008_0x4654;logger[_0x4846cd('0x10')](_0x4846cd('0x18'),_0x3f8122,_0x4722e7);})[_0x27b03f('0x1d')](function(_0x356bd7){const _0x1302dd=_0x27b03f;logger[_0x1302dd('0x10')](JSON[_0x1302dd('0x7')](_0x356bd7));});});},Migration[_0x2adfac('0x1a')]['addColumn']=function(_0x5cea1a,_0x599edc,_0x5e9dc8){const _0xf6b00d=_0x2adfac,_0x3d87fd=this;this[_0xf6b00d('0x6')][_0xf6b00d('0x1')](function(){const _0x3856f8=_0xf6b00d;return _0x3d87fd[_0x3856f8('0xa')][_0x3856f8('0x15')](_0x5cea1a,_0x599edc,_0x5e9dc8)[_0x3856f8('0x8')](function(){const _0x41fbcf=_0x3856f8;logger[_0x41fbcf('0x10')](_0x41fbcf('0x17'),_0x599edc,_0x5cea1a);})[_0x3856f8('0x1d')](function(_0x41bd5d){const _0x13012a=_0x3856f8;logger[_0x13012a('0x10')](JSON[_0x13012a('0x7')](_0x41bd5d));});});},Migration['prototype'][_0x2adfac('0x3')]=function(_0x24067c){const _0x58ee03=_0x2adfac,_0x488629=this;this[_0x58ee03('0x6')]['enqueue'](function(){const _0x46341b=_0x58ee03;return _0x488629['queryInterface'][_0x46341b('0x3')](_0x24067c,{'force':!![]})[_0x46341b('0x8')](function(){const _0x4cf6e6=_0x46341b;logger[_0x4cf6e6('0x10')](_0x4cf6e6('0x16'),_0x24067c);})[_0x46341b('0x1d')](function(_0x32512c){const _0x1bc8a6=_0x46341b;logger[_0x1bc8a6('0x10')](JSON[_0x1bc8a6('0x7')](_0x32512c));});});},Migration['prototype'][_0x2adfac('0xd')]=function(_0x168b4d,_0x209be1,_0x4e1a89){const _0x3af9cb=_0x2adfac,_0x70304e=this;this[_0x3af9cb('0x6')]['enqueue'](function(){const _0x5048e4=_0x3af9cb;return _0x70304e[_0x5048e4('0xa')][_0x5048e4('0xd')](_0x168b4d,_0x209be1,{'indexName':_0x4e1a89[_0x5048e4('0x2')],'indicesType':_0x4e1a89['indicesType']})[_0x5048e4('0x8')](function(){const _0x221410=_0x5048e4;logger[_0x221410('0x10')](_0x221410('0x1b'),_0x168b4d,_0x209be1['join'](','),_0x4e1a89[_0x221410('0x2')],_0x4e1a89[_0x221410('0x13')]);})['catch'](function(_0x348943){const _0x1837f1=_0x5048e4;logger[_0x1837f1('0x10')](JSON[_0x1837f1('0x7')](_0x348943));});});},Migration[_0x2adfac('0x1a')][_0x2adfac('0x14')]=function(_0x5bc052,_0x44d72b){const _0x13f94d=_0x2adfac,_0x3f79ec=this;this[_0x13f94d('0x6')][_0x13f94d('0x1')](function(){const _0x3d9260=_0x13f94d;return _0x3f79ec['queryInterface']['removeIndex'](_0x5bc052,_0x44d72b)[_0x3d9260('0x8')](function(){const _0x5ade3e=_0x3d9260;logger[_0x5ade3e('0x10')](_0x5ade3e('0x11'),_0x5bc052,_0x44d72b);})[_0x3d9260('0x1d')](function(_0x22fd8d){logger['info'](JSON['stringify'](_0x22fd8d));});});},Migration[_0x2adfac('0x1a')][_0x2adfac('0x12')]=function(_0x22416d){const _0x236678=_0x2adfac,_0x3bd575=this;this[_0x236678('0x6')][_0x236678('0x1')](function(){const _0x3d78e6=_0x236678;return _0x3bd575[_0x3d78e6('0xa')][_0x3d78e6('0x5')]['query'](_0x22416d)[_0x3d78e6('0x8')](function(){const _0x58ac27=_0x3d78e6;logger[_0x58ac27('0x10')]('query\x20%s',_0x22416d);})[_0x3d78e6('0x1d')](function(_0x27e023){logger['info'](JSON['stringify'](_0x27e023));});});},Migration[_0x2adfac('0x1a')]['removeColumn']=function(_0x5f5848,_0x4f4063){const _0x2e98b5=_0x2adfac,_0x5ad794=this;this[_0x2e98b5('0x6')][_0x2e98b5('0x1')](function(){const _0x22d549=_0x2e98b5;return _0x5ad794[_0x22d549('0xa')][_0x22d549('0x9')](_0x5f5848,_0x4f4063)[_0x22d549('0x8')](function(){const _0x5d9774=_0x22d549;logger[_0x5d9774('0x10')]('Removed\x20column\x20%s\x20from\x20%s',_0x4f4063,_0x5f5848);})[_0x22d549('0x1d')](function(_0x37e65b){const _0x5bc1da=_0x22d549;logger[_0x5bc1da('0x10')](util[_0x5bc1da('0xc')](_0x37e65b,{'showHidden':![],'depth':null}));});});},Migration[_0x2adfac('0x1a')][_0x2adfac('0x1c')]=function(_0xeab91e,_0x1e4bb9,_0xd00ac4){const _0x3a6b94=_0x2adfac,_0x4435c6=this;this['sequence'][_0x3a6b94('0x1')](function(){const _0x525849=_0x3a6b94;return _0x4435c6[_0x525849('0xa')][_0x525849('0x1c')](_0xeab91e,_0x1e4bb9,_0xd00ac4)[_0x525849('0x8')](function(){const _0x47a50=_0x525849;logger[_0x47a50('0x10')](_0x47a50('0x0'),_0x1e4bb9,_0xd00ac4,_0xeab91e);})[_0x525849('0x1d')](function(_0x44b98b){const _0x4e5123=_0x525849;logger[_0x4e5123('0x10')](util['inspect'](_0x44b98b,{'showHidden':![],'depth':null}));});});},Migration[_0x2adfac('0x1a')][_0x2adfac('0xe')]=function(_0x16e709){const _0x51be4f=_0x2adfac;this[_0x51be4f('0x6')][_0x51be4f('0x1')](function(){return _0x16e709();});},module[_0x2adfac('0x4')]={'up':function(_0xcfafaa){return new Promise(function(_0x3c0068){const _0x58c6c9=new Migration(_0xcfafaa);_0x58c6c9['final'](_0x3c0068);});},'down':function(){}};
\ No newline at end of file
+const a1008_0x1292=['addIndex','removeIndex','then','info','dropTable','renameColumn','sequelize','../config/logger','removeColumn','query','addIndex\x20%s\x20%s\x20%s\x20[%s]','catch','table\x20dropped\x20%s','util','Added\x20column\x20%s\x20to\x20%s','query\x20%s','enqueue','inspect','final','stringify','join','migration','finally','prototype','queryInterface','exports','sequence','removeIndex\x20%s\x20%s','indicesType','Removed\x20column\x20%s\x20from\x20%s','addColumn','changeColumn','indexName','tail'];(function(_0x217e19,_0x129214){const _0x296e32=function(_0x366173){while(--_0x366173){_0x217e19['push'](_0x217e19['shift']());}};_0x296e32(++_0x129214);}(a1008_0x1292,0x193));const a1008_0x296e=function(_0x217e19,_0x129214){_0x217e19=_0x217e19-0x0;let _0x296e32=a1008_0x1292[_0x217e19];return _0x296e32;};const _0x10f53e=a1008_0x296e;'use strict';const util=require(_0x10f53e('0x12')),logger=require(_0x10f53e('0xc'))(_0x10f53e('0x1a')),Sequence=function(){};Sequence['prototype'][_0x10f53e('0x15')]=function(_0x366173){const _0xa7665=_0x10f53e;this[_0xa7665('0x4')]=this['tail']?this[_0xa7665('0x4')][_0xa7665('0x1b')](_0x366173):_0x366173();};const Migration=function(_0x436529){const _0x536d21=_0x10f53e;this[_0x536d21('0x1d')]=_0x436529,this[_0x536d21('0x1f')]=new Sequence();};Migration[_0x10f53e('0x1c')][_0x10f53e('0x2')]=function(_0x2ee5f6,_0xaed044,_0x50d792){const _0x587ecf=_0x10f53e,_0x3bcadb=this;this[_0x587ecf('0x1f')][_0x587ecf('0x15')](function(){const _0x686b97=_0x587ecf;return _0x3bcadb[_0x686b97('0x1d')][_0x686b97('0x2')](_0x2ee5f6,_0xaed044,_0x50d792)[_0x686b97('0x7')](function(){const _0x34ddc6=_0x686b97;logger[_0x34ddc6('0x8')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xaed044,_0x2ee5f6);})['catch'](function(_0x3e1317){const _0x23afa7=_0x686b97;logger[_0x23afa7('0x8')](JSON[_0x23afa7('0x18')](_0x3e1317));});});},Migration[_0x10f53e('0x1c')][_0x10f53e('0x1')]=function(_0xf53e11,_0x498d1f,_0x2355c8){const _0x3ea39f=_0x10f53e,_0x3a154f=this;this[_0x3ea39f('0x1f')]['enqueue'](function(){const _0xc205f0=_0x3ea39f;return _0x3a154f[_0xc205f0('0x1d')][_0xc205f0('0x1')](_0xf53e11,_0x498d1f,_0x2355c8)['then'](function(){const _0x57c622=_0xc205f0;logger[_0x57c622('0x8')](_0x57c622('0x13'),_0x498d1f,_0xf53e11);})['catch'](function(_0x4feb13){const _0x41a513=_0xc205f0;logger['info'](JSON[_0x41a513('0x18')](_0x4feb13));});});},Migration[_0x10f53e('0x1c')]['dropTable']=function(_0x13c4dc){const _0x32bb91=_0x10f53e,_0x36f33d=this;this[_0x32bb91('0x1f')]['enqueue'](function(){const _0x2c574c=_0x32bb91;return _0x36f33d[_0x2c574c('0x1d')][_0x2c574c('0x9')](_0x13c4dc,{'force':!![]})[_0x2c574c('0x7')](function(){const _0x362339=_0x2c574c;logger[_0x362339('0x8')](_0x362339('0x11'),_0x13c4dc);})['catch'](function(_0x491d19){const _0x31ea6d=_0x2c574c;logger['info'](JSON[_0x31ea6d('0x18')](_0x491d19));});});},Migration['prototype'][_0x10f53e('0x5')]=function(_0x551329,_0x2c976d,_0x341551){const _0x3b4338=_0x10f53e,_0x4546ce=this;this[_0x3b4338('0x1f')][_0x3b4338('0x15')](function(){const _0x16eff8=_0x3b4338;return _0x4546ce['queryInterface'][_0x16eff8('0x5')](_0x551329,_0x2c976d,{'indexName':_0x341551[_0x16eff8('0x3')],'indicesType':_0x341551[_0x16eff8('0x21')]})[_0x16eff8('0x7')](function(){const _0x101fdd=_0x16eff8;logger[_0x101fdd('0x8')](_0x101fdd('0xf'),_0x551329,_0x2c976d[_0x101fdd('0x19')](','),_0x341551[_0x101fdd('0x3')],_0x341551[_0x101fdd('0x21')]);})[_0x16eff8('0x10')](function(_0x5749c2){const _0x26713b=_0x16eff8;logger[_0x26713b('0x8')](JSON[_0x26713b('0x18')](_0x5749c2));});});},Migration['prototype'][_0x10f53e('0x6')]=function(_0x575684,_0x273681){const _0x36324c=_0x10f53e,_0x2114b4=this;this[_0x36324c('0x1f')][_0x36324c('0x15')](function(){const _0x39a8ee=_0x36324c;return _0x2114b4[_0x39a8ee('0x1d')][_0x39a8ee('0x6')](_0x575684,_0x273681)[_0x39a8ee('0x7')](function(){const _0x2fc977=_0x39a8ee;logger[_0x2fc977('0x8')](_0x2fc977('0x20'),_0x575684,_0x273681);})['catch'](function(_0x4755cc){const _0x25d321=_0x39a8ee;logger[_0x25d321('0x8')](JSON[_0x25d321('0x18')](_0x4755cc));});});},Migration[_0x10f53e('0x1c')][_0x10f53e('0xe')]=function(_0x15b919){const _0x41b327=_0x10f53e,_0x2ccc47=this;this[_0x41b327('0x1f')][_0x41b327('0x15')](function(){const _0x5a525a=_0x41b327;return _0x2ccc47[_0x5a525a('0x1d')][_0x5a525a('0xb')][_0x5a525a('0xe')](_0x15b919)['then'](function(){const _0x4f3ea0=_0x5a525a;logger[_0x4f3ea0('0x8')](_0x4f3ea0('0x14'),_0x15b919);})[_0x5a525a('0x10')](function(_0xd57cbc){const _0x44d4c9=_0x5a525a;logger[_0x44d4c9('0x8')](JSON[_0x44d4c9('0x18')](_0xd57cbc));});});},Migration[_0x10f53e('0x1c')][_0x10f53e('0xd')]=function(_0xcc6c20,_0x12da34){const _0x1e9682=_0x10f53e,_0x440ac2=this;this[_0x1e9682('0x1f')]['enqueue'](function(){const _0x5b5c23=_0x1e9682;return _0x440ac2[_0x5b5c23('0x1d')][_0x5b5c23('0xd')](_0xcc6c20,_0x12da34)[_0x5b5c23('0x7')](function(){const _0x501f10=_0x5b5c23;logger[_0x501f10('0x8')](_0x501f10('0x0'),_0x12da34,_0xcc6c20);})['catch'](function(_0x1f7280){const _0x364901=_0x5b5c23;logger[_0x364901('0x8')](util[_0x364901('0x16')](_0x1f7280,{'showHidden':![],'depth':null}));});});},Migration[_0x10f53e('0x1c')][_0x10f53e('0xa')]=function(_0x1c361b,_0x209984,_0x3961ff){const _0x50ebde=_0x10f53e,_0xb1e99f=this;this[_0x50ebde('0x1f')]['enqueue'](function(){const _0x23e1a1=_0x50ebde;return _0xb1e99f[_0x23e1a1('0x1d')][_0x23e1a1('0xa')](_0x1c361b,_0x209984,_0x3961ff)[_0x23e1a1('0x7')](function(){const _0x427412=_0x23e1a1;logger[_0x427412('0x8')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x209984,_0x3961ff,_0x1c361b);})[_0x23e1a1('0x10')](function(_0x4b18e5){const _0x520709=_0x23e1a1;logger[_0x520709('0x8')](util[_0x520709('0x16')](_0x4b18e5,{'showHidden':![],'depth':null}));});});},Migration[_0x10f53e('0x1c')][_0x10f53e('0x17')]=function(_0x2431dd){const _0x55c275=_0x10f53e;this['sequence'][_0x55c275('0x15')](function(){return _0x2431dd();});},module[_0x10f53e('0x1e')]={'up':function(_0x32119e){return new Promise(function(_0x1d7873){const _0x1c347f=new Migration(_0x32119e);_0x1c347f['final'](_0x1d7873);});},'down':function(){}};
\ No newline at end of file