Built motion from commit b517aaa2a6638133380e4d135c64a80893061362. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.1.js
index 96035e4..53c718b 100644 (file)
@@ -1 +1 @@
-const a973_0x5bc0=['renameColumn','removeColumn','inspect','final','addColumn','tail','exports','enqueue','info','sequence','Added\x20column\x20%s\x20to\x20%s','query\x20%s','stringify','removeIndex\x20%s\x20%s','queryInterface','then','prototype','query','addIndex','util','sequelize','changeColumn','catch','dropTable','finally','Removed\x20column\x20%s\x20from\x20%s','../config/logger'];(function(_0x55c805,_0x5bc0f1){const _0x515b43=function(_0x12528d){while(--_0x12528d){_0x55c805['push'](_0x55c805['shift']());}};_0x515b43(++_0x5bc0f1);}(a973_0x5bc0,0xb7));const a973_0x515b=function(_0x55c805,_0x5bc0f1){_0x55c805=_0x55c805-0x0;let _0x515b43=a973_0x5bc0[_0x55c805];return _0x515b43;};const _0x50467d=a973_0x515b;'use strict';const util=require(_0x50467d('0x19')),logger=require(_0x50467d('0x5'))('migration'),Sequence=function(){};Sequence[_0x50467d('0x16')][_0x50467d('0xd')]=function(_0x12528d){const _0x4b8338=_0x50467d;this[_0x4b8338('0xb')]=this['tail']?this['tail'][_0x4b8338('0x3')](_0x12528d):_0x12528d();};const Migration=function(_0x170c21){const _0x2d595c=_0x50467d;this[_0x2d595c('0x14')]=_0x170c21,this[_0x2d595c('0xf')]=new Sequence();};Migration[_0x50467d('0x16')]['changeColumn']=function(_0x4f52b8,_0x274187,_0x3a5bf1){const _0x415666=_0x50467d,_0x4611a2=this;this[_0x415666('0xf')][_0x415666('0xd')](function(){const _0x5b95b9=_0x415666;return _0x4611a2['queryInterface'][_0x5b95b9('0x0')](_0x4f52b8,_0x274187,_0x3a5bf1)[_0x5b95b9('0x15')](function(){const _0x3d1c2c=_0x5b95b9;logger[_0x3d1c2c('0xe')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x274187,_0x4f52b8);})['catch'](function(_0x272910){const _0x2e8938=_0x5b95b9;logger[_0x2e8938('0xe')](JSON[_0x2e8938('0x12')](_0x272910));});});},Migration[_0x50467d('0x16')][_0x50467d('0xa')]=function(_0x2cd9be,_0x49868e,_0x2df289){const _0x1c245c=_0x50467d,_0x363b32=this;this[_0x1c245c('0xf')][_0x1c245c('0xd')](function(){const _0x360f79=_0x1c245c;return _0x363b32[_0x360f79('0x14')][_0x360f79('0xa')](_0x2cd9be,_0x49868e,_0x2df289)['then'](function(){const _0x2ed3bd=_0x360f79;logger[_0x2ed3bd('0xe')](_0x2ed3bd('0x10'),_0x49868e,_0x2cd9be);})[_0x360f79('0x1')](function(_0x27d2bc){const _0x5de014=_0x360f79;logger[_0x5de014('0xe')](JSON[_0x5de014('0x12')](_0x27d2bc));});});},Migration[_0x50467d('0x16')]['dropTable']=function(_0x4324f5){const _0x55248d=_0x50467d,_0x3f016c=this;this[_0x55248d('0xf')][_0x55248d('0xd')](function(){const _0x5d2a74=_0x55248d;return _0x3f016c[_0x5d2a74('0x14')][_0x5d2a74('0x2')](_0x4324f5,{'force':!![]})['then'](function(){const _0x2dfc00=_0x5d2a74;logger[_0x2dfc00('0xe')]('table\x20dropped\x20%s',_0x4324f5);})[_0x5d2a74('0x1')](function(_0x58a5f0){const _0x2a5d1b=_0x5d2a74;logger[_0x2a5d1b('0xe')](JSON[_0x2a5d1b('0x12')](_0x58a5f0));});});},Migration[_0x50467d('0x16')]['addIndex']=function(_0xd6a6c6,_0x46302e,_0xb97f9f){const _0xc006df=_0x50467d,_0xec3524=this;this[_0xc006df('0xf')][_0xc006df('0xd')](function(){const _0x4092c1=_0xc006df;return _0xec3524[_0x4092c1('0x14')][_0x4092c1('0x18')](_0xd6a6c6,_0x46302e,{'indexName':_0xb97f9f})[_0x4092c1('0x15')](function(){logger['info']('addIndex\x20%s\x20%s\x20%s',_0xd6a6c6,_0x46302e['join'](','),_0xb97f9f);})[_0x4092c1('0x1')](function(_0x4808eb){logger['info'](JSON['stringify'](_0x4808eb));});});},Migration['prototype']['removeIndex']=function(_0x53da60,_0x29f5a0){const _0x10c576=_0x50467d,_0x5131fe=this;this[_0x10c576('0xf')][_0x10c576('0xd')](function(){return _0x5131fe['queryInterface']['removeIndex'](_0x53da60,_0x29f5a0)['then'](function(){const _0x8b753c=a973_0x515b;logger[_0x8b753c('0xe')](_0x8b753c('0x13'),_0x53da60,_0x29f5a0);})['catch'](function(_0x1d12d3){const _0x41000b=a973_0x515b;logger[_0x41000b('0xe')](JSON['stringify'](_0x1d12d3));});});},Migration[_0x50467d('0x16')][_0x50467d('0x17')]=function(_0xdd4418){const _0x1cf711=_0x50467d,_0x4a5d25=this;this['sequence'][_0x1cf711('0xd')](function(){const _0x38e12e=_0x1cf711;return _0x4a5d25[_0x38e12e('0x14')][_0x38e12e('0x1a')][_0x38e12e('0x17')](_0xdd4418)[_0x38e12e('0x15')](function(){const _0x45cfec=_0x38e12e;logger[_0x45cfec('0xe')](_0x45cfec('0x11'),_0xdd4418);})[_0x38e12e('0x1')](function(_0x4c2b60){const _0x4b1541=_0x38e12e;logger[_0x4b1541('0xe')](JSON['stringify'](_0x4c2b60));});});},Migration[_0x50467d('0x16')]['removeColumn']=function(_0x48288d,_0x494ec0){const _0x194788=_0x50467d,_0x4b9dd5=this;this['sequence'][_0x194788('0xd')](function(){const _0x10d29c=_0x194788;return _0x4b9dd5[_0x10d29c('0x14')][_0x10d29c('0x7')](_0x48288d,_0x494ec0)[_0x10d29c('0x15')](function(){const _0x35ca3d=_0x10d29c;logger[_0x35ca3d('0xe')](_0x35ca3d('0x4'),_0x494ec0,_0x48288d);})[_0x10d29c('0x1')](function(_0x736520){const _0x3949c8=_0x10d29c;logger[_0x3949c8('0xe')](util[_0x3949c8('0x8')](_0x736520,{'showHidden':![],'depth':null}));});});},Migration[_0x50467d('0x16')][_0x50467d('0x6')]=function(_0x4b1d31,_0x3061c9,_0xa9607a){const _0x287939=_0x50467d,_0x1c15d7=this;this['sequence'][_0x287939('0xd')](function(){const _0xf79449=_0x287939;return _0x1c15d7[_0xf79449('0x14')][_0xf79449('0x6')](_0x4b1d31,_0x3061c9,_0xa9607a)[_0xf79449('0x15')](function(){const _0x5a36eb=_0xf79449;logger[_0x5a36eb('0xe')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3061c9,_0xa9607a,_0x4b1d31);})[_0xf79449('0x1')](function(_0x3b1d0b){const _0x149ff4=_0xf79449;logger[_0x149ff4('0xe')](util[_0x149ff4('0x8')](_0x3b1d0b,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x50467d('0x9')]=function(_0x1f5bfe){const _0x2b2f76=_0x50467d;this[_0x2b2f76('0xf')][_0x2b2f76('0xd')](function(){return _0x1f5bfe();});},module[_0x50467d('0xc')]={'up':function(_0x3592ea){return new Promise(function(_0x291467){const _0x26b705=new Migration(_0x3592ea);_0x26b705['final'](_0x291467);});},'down':function(){}};
\ No newline at end of file
+const a973_0x188e=['Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','then','Removed\x20column\x20%s\x20from\x20%s','removeIndex','final','../config/logger','removeColumn','info','queryInterface','util','migration','query','prototype','join','table\x20dropped\x20%s','catch','addColumn','sequelize','finally','Added\x20column\x20%s\x20to\x20%s','tail','enqueue','addIndex\x20%s\x20%s\x20%s','renameColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','inspect','stringify','dropTable','sequence','query\x20%s','addIndex'];(function(_0x26463,_0x188e8d){const _0x529ac9=function(_0x577cc1){while(--_0x577cc1){_0x26463['push'](_0x26463['shift']());}};_0x529ac9(++_0x188e8d);}(a973_0x188e,0x9b));const a973_0x529a=function(_0x26463,_0x188e8d){_0x26463=_0x26463-0x0;let _0x529ac9=a973_0x188e[_0x26463];return _0x529ac9;};const _0x30e7e1=a973_0x529a;'use strict';const util=require(_0x30e7e1('0xf')),logger=require(_0x30e7e1('0xb'))(_0x30e7e1('0x10')),Sequence=function(){};Sequence[_0x30e7e1('0x12')][_0x30e7e1('0x1b')]=function(_0x577cc1){const _0x1c904e=_0x30e7e1;this[_0x1c904e('0x1a')]=this[_0x1c904e('0x1a')]?this[_0x1c904e('0x1a')][_0x1c904e('0x18')](_0x577cc1):_0x577cc1();};const Migration=function(_0x1c2bc5){const _0x4919a3=_0x30e7e1;this[_0x4919a3('0xe')]=_0x1c2bc5,this[_0x4919a3('0x2')]=new Sequence();};Migration[_0x30e7e1('0x12')]['changeColumn']=function(_0x380904,_0x44247f,_0x388e74){const _0x54f219=_0x30e7e1,_0x2bd4e7=this;this[_0x54f219('0x2')][_0x54f219('0x1b')](function(){const _0x52a1a1=_0x54f219;return _0x2bd4e7[_0x52a1a1('0xe')][_0x52a1a1('0x6')](_0x380904,_0x44247f,_0x388e74)[_0x52a1a1('0x7')](function(){const _0x2f32a7=_0x52a1a1;logger[_0x2f32a7('0xd')](_0x2f32a7('0x5'),_0x44247f,_0x380904);})[_0x52a1a1('0x15')](function(_0x57610a){const _0x32c5b8=_0x52a1a1;logger[_0x32c5b8('0xd')](JSON[_0x32c5b8('0x0')](_0x57610a));});});},Migration[_0x30e7e1('0x12')]['addColumn']=function(_0x54b2da,_0x360121,_0x15724a){const _0x5a3825=_0x30e7e1,_0x4e7109=this;this[_0x5a3825('0x2')][_0x5a3825('0x1b')](function(){const _0x40bcb0=_0x5a3825;return _0x4e7109[_0x40bcb0('0xe')][_0x40bcb0('0x16')](_0x54b2da,_0x360121,_0x15724a)['then'](function(){const _0x451b35=_0x40bcb0;logger[_0x451b35('0xd')](_0x451b35('0x19'),_0x360121,_0x54b2da);})[_0x40bcb0('0x15')](function(_0x310cf5){const _0x5a419d=_0x40bcb0;logger[_0x5a419d('0xd')](JSON[_0x5a419d('0x0')](_0x310cf5));});});},Migration['prototype'][_0x30e7e1('0x1')]=function(_0x2b173f){const _0x3a4d40=this;this['sequence']['enqueue'](function(){const _0x5f1326=a973_0x529a;return _0x3a4d40['queryInterface'][_0x5f1326('0x1')](_0x2b173f,{'force':!![]})[_0x5f1326('0x7')](function(){const _0x24f787=_0x5f1326;logger['info'](_0x24f787('0x14'),_0x2b173f);})['catch'](function(_0x5cb5b6){const _0x16785b=_0x5f1326;logger[_0x16785b('0xd')](JSON[_0x16785b('0x0')](_0x5cb5b6));});});},Migration[_0x30e7e1('0x12')]['addIndex']=function(_0x5b951d,_0xb045c,_0x5cecd5){const _0x48a37d=_0x30e7e1,_0x2aef05=this;this[_0x48a37d('0x2')][_0x48a37d('0x1b')](function(){const _0x4ba010=_0x48a37d;return _0x2aef05[_0x4ba010('0xe')][_0x4ba010('0x4')](_0x5b951d,_0xb045c,{'indexName':_0x5cecd5})[_0x4ba010('0x7')](function(){const _0x3a6418=_0x4ba010;logger[_0x3a6418('0xd')](_0x3a6418('0x1c'),_0x5b951d,_0xb045c[_0x3a6418('0x13')](','),_0x5cecd5);})[_0x4ba010('0x15')](function(_0x145450){const _0x20ca9a=_0x4ba010;logger[_0x20ca9a('0xd')](JSON[_0x20ca9a('0x0')](_0x145450));});});},Migration[_0x30e7e1('0x12')][_0x30e7e1('0x9')]=function(_0x34db0f,_0x10220d){const _0x19ec54=_0x30e7e1,_0x30ddfe=this;this['sequence'][_0x19ec54('0x1b')](function(){const _0x4aba6f=_0x19ec54;return _0x30ddfe['queryInterface'][_0x4aba6f('0x9')](_0x34db0f,_0x10220d)['then'](function(){const _0x3b1b9c=_0x4aba6f;logger[_0x3b1b9c('0xd')]('removeIndex\x20%s\x20%s',_0x34db0f,_0x10220d);})['catch'](function(_0xfa2a3){const _0xf96d41=_0x4aba6f;logger[_0xf96d41('0xd')](JSON[_0xf96d41('0x0')](_0xfa2a3));});});},Migration[_0x30e7e1('0x12')][_0x30e7e1('0x11')]=function(_0x187c87){const _0x20a126=_0x30e7e1,_0x193a55=this;this[_0x20a126('0x2')][_0x20a126('0x1b')](function(){const _0x20921f=_0x20a126;return _0x193a55['queryInterface'][_0x20921f('0x17')][_0x20921f('0x11')](_0x187c87)['then'](function(){const _0xcdf224=_0x20921f;logger[_0xcdf224('0xd')](_0xcdf224('0x3'),_0x187c87);})[_0x20921f('0x15')](function(_0x151690){const _0x5d578e=_0x20921f;logger[_0x5d578e('0xd')](JSON['stringify'](_0x151690));});});},Migration[_0x30e7e1('0x12')][_0x30e7e1('0xc')]=function(_0x102a60,_0x18d861){const _0x37037b=_0x30e7e1,_0x451884=this;this[_0x37037b('0x2')][_0x37037b('0x1b')](function(){const _0x3407af=_0x37037b;return _0x451884[_0x3407af('0xe')][_0x3407af('0xc')](_0x102a60,_0x18d861)[_0x3407af('0x7')](function(){const _0x46683e=_0x3407af;logger[_0x46683e('0xd')](_0x46683e('0x8'),_0x18d861,_0x102a60);})[_0x3407af('0x15')](function(_0x4f4f65){const _0x29ee8f=_0x3407af;logger['info'](util[_0x29ee8f('0x1f')](_0x4f4f65,{'showHidden':![],'depth':null}));});});},Migration[_0x30e7e1('0x12')][_0x30e7e1('0x1d')]=function(_0x27a4c0,_0xbcc86d,_0x29e9cc){const _0x23e1ae=_0x30e7e1,_0x34a0ed=this;this[_0x23e1ae('0x2')][_0x23e1ae('0x1b')](function(){const _0x565ebe=_0x23e1ae;return _0x34a0ed[_0x565ebe('0xe')][_0x565ebe('0x1d')](_0x27a4c0,_0xbcc86d,_0x29e9cc)[_0x565ebe('0x7')](function(){const _0x4c86dd=_0x565ebe;logger[_0x4c86dd('0xd')](_0x4c86dd('0x1e'),_0xbcc86d,_0x29e9cc,_0x27a4c0);})[_0x565ebe('0x15')](function(_0x1203c0){const _0x46300e=_0x565ebe;logger['info'](util[_0x46300e('0x1f')](_0x1203c0,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x30e7e1('0xa')]=function(_0xf88800){const _0x43241c=_0x30e7e1;this['sequence'][_0x43241c('0x1b')](function(){return _0xf88800();});},module['exports']={'up':function(_0x5426ef){return new Promise(function(_0x148dee){const _0x4ad725=a973_0x529a,_0x19ad82=new Migration(_0x5426ef);_0x19ad82[_0x4ad725('0xa')](_0x148dee);});},'down':function(){}};
\ No newline at end of file