Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.74.js
index bd7633e..c7579ed 100644 (file)
@@ -1 +1 @@
-const a1114_0xb89f=['sequelize','removeColumn','prototype','finally','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s','catch','dropTable','then','removeIndex','migration','stringify','addIndex','tail','query','sequence','../config/logger','join','query\x20%s','addColumn','enqueue','removeIndex\x20%s\x20%s','exports','addIndex\x20%s\x20%s\x20%s','changeColumn','final','queryInterface','table\x20dropped\x20%s','renameColumn','info'];(function(_0x4f72c5,_0x221a0a){const _0xb89f0d=function(_0x59c911){while(--_0x59c911){_0x4f72c5['push'](_0x4f72c5['shift']());}};_0xb89f0d(++_0x221a0a);}(a1114_0xb89f,0xc2));const a1114_0x59c9=function(_0x4f72c5,_0x221a0a){_0x4f72c5=_0x4f72c5-0x159;let _0xb89f0d=a1114_0xb89f[_0x4f72c5];return _0xb89f0d;};const a1114_0x15425f=a1114_0x59c9;'use strict';const util=require('util'),logger=require(a1114_0x15425f(0x15b))(a1114_0x15425f(0x173)),Sequence=function(){};Sequence[a1114_0x15425f(0x16b)]['enqueue']=function(_0x22e76f){const _0x27a8b0=a1114_0x15425f;this[_0x27a8b0(0x176)]=this[_0x27a8b0(0x176)]?this[_0x27a8b0(0x176)][_0x27a8b0(0x16c)](_0x22e76f):_0x22e76f();};const Migration=function(_0x2b9ecc){const _0xd22911=a1114_0x15425f;this['queryInterface']=_0x2b9ecc,this[_0xd22911(0x15a)]=new Sequence();};Migration[a1114_0x15425f(0x16b)]['changeColumn']=function(_0x50b925,_0x168ed0,_0xcda765){const _0xdb1f34=a1114_0x15425f,_0x5a48d4=this;this['sequence'][_0xdb1f34(0x15f)](function(){const _0xeeb717=_0xdb1f34;return _0x5a48d4[_0xeeb717(0x165)][_0xeeb717(0x163)](_0x50b925,_0x168ed0,_0xcda765)[_0xeeb717(0x171)](function(){const _0x11c930=_0xeeb717;logger[_0x11c930(0x168)](_0x11c930(0x16e),_0x168ed0,_0x50b925);})['catch'](function(_0x430fdf){const _0x14de7c=_0xeeb717;logger[_0x14de7c(0x168)](JSON['stringify'](_0x430fdf));});});},Migration['prototype'][a1114_0x15425f(0x15e)]=function(_0x50713e,_0x58291c,_0x4544ef){const _0x12a2a2=a1114_0x15425f,_0x176137=this;this[_0x12a2a2(0x15a)][_0x12a2a2(0x15f)](function(){const _0x3b7def=_0x12a2a2;return _0x176137['queryInterface'][_0x3b7def(0x15e)](_0x50713e,_0x58291c,_0x4544ef)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x58291c,_0x50713e);})[_0x3b7def(0x16f)](function(_0x417f13){const _0x19008e=_0x3b7def;logger[_0x19008e(0x168)](JSON[_0x19008e(0x174)](_0x417f13));});});},Migration['prototype'][a1114_0x15425f(0x170)]=function(_0x4623e3){const _0x1419d9=a1114_0x15425f,_0x5ae3c7=this;this[_0x1419d9(0x15a)][_0x1419d9(0x15f)](function(){const _0xf84144=_0x1419d9;return _0x5ae3c7['queryInterface'][_0xf84144(0x170)](_0x4623e3,{'force':!![]})[_0xf84144(0x171)](function(){const _0x2f0ee1=_0xf84144;logger[_0x2f0ee1(0x168)](_0x2f0ee1(0x166),_0x4623e3);})[_0xf84144(0x16f)](function(_0x29b18f){logger['info'](JSON['stringify'](_0x29b18f));});});},Migration['prototype']['addIndex']=function(_0x57ae1d,_0x5dd73d,_0x58a651){const _0x372f83=a1114_0x15425f,_0x479542=this;this[_0x372f83(0x15a)]['enqueue'](function(){const _0x560e45=_0x372f83;return _0x479542['queryInterface'][_0x560e45(0x175)](_0x57ae1d,_0x5dd73d,{'indexName':_0x58a651})[_0x560e45(0x171)](function(){const _0x8537cb=_0x560e45;logger[_0x8537cb(0x168)](_0x8537cb(0x162),_0x57ae1d,_0x5dd73d[_0x8537cb(0x15c)](','),_0x58a651);})[_0x560e45(0x16f)](function(_0x3d3ff7){const _0x3b7182=_0x560e45;logger[_0x3b7182(0x168)](JSON[_0x3b7182(0x174)](_0x3d3ff7));});});},Migration[a1114_0x15425f(0x16b)][a1114_0x15425f(0x172)]=function(_0x19ab19,_0x3d2fa8){const _0x44d97f=a1114_0x15425f,_0xb11d8c=this;this[_0x44d97f(0x15a)]['enqueue'](function(){const _0xc57621=_0x44d97f;return _0xb11d8c[_0xc57621(0x165)][_0xc57621(0x172)](_0x19ab19,_0x3d2fa8)[_0xc57621(0x171)](function(){const _0x402094=_0xc57621;logger[_0x402094(0x168)](_0x402094(0x160),_0x19ab19,_0x3d2fa8);})[_0xc57621(0x16f)](function(_0x49b1de){const _0x856bb5=_0xc57621;logger[_0x856bb5(0x168)](JSON[_0x856bb5(0x174)](_0x49b1de));});});},Migration['prototype'][a1114_0x15425f(0x159)]=function(_0x835c7e){const _0x3cd83b=a1114_0x15425f,_0x5852ef=this;this[_0x3cd83b(0x15a)][_0x3cd83b(0x15f)](function(){const _0x1121eb=_0x3cd83b;return _0x5852ef[_0x1121eb(0x165)][_0x1121eb(0x169)][_0x1121eb(0x159)](_0x835c7e)[_0x1121eb(0x171)](function(){const _0x1fd0e3=_0x1121eb;logger[_0x1fd0e3(0x168)](_0x1fd0e3(0x15d),_0x835c7e);})['catch'](function(_0x5475d6){const _0xa50ead=_0x1121eb;logger[_0xa50ead(0x168)](JSON[_0xa50ead(0x174)](_0x5475d6));});});},Migration['prototype'][a1114_0x15425f(0x16a)]=function(_0x444fb1,_0x455505){const _0x5e0fd8=this;this['sequence']['enqueue'](function(){const _0x1c7a2c=a1114_0x59c9;return _0x5e0fd8[_0x1c7a2c(0x165)]['removeColumn'](_0x444fb1,_0x455505)['then'](function(){const _0x49a774=_0x1c7a2c;logger[_0x49a774(0x168)]('Removed\x20column\x20%s\x20from\x20%s',_0x455505,_0x444fb1);})[_0x1c7a2c(0x16f)](function(_0x5bfd0e){const _0x916828=_0x1c7a2c;logger[_0x916828(0x168)](util[_0x916828(0x16d)](_0x5bfd0e,{'showHidden':![],'depth':null}));});});},Migration[a1114_0x15425f(0x16b)][a1114_0x15425f(0x167)]=function(_0x319a00,_0x47fd69,_0x1653f2){const _0x41a9a9=a1114_0x15425f,_0x288e28=this;this[_0x41a9a9(0x15a)][_0x41a9a9(0x15f)](function(){const _0x44abb4=_0x41a9a9;return _0x288e28['queryInterface'][_0x44abb4(0x167)](_0x319a00,_0x47fd69,_0x1653f2)['then'](function(){const _0x1f645b=_0x44abb4;logger[_0x1f645b(0x168)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x47fd69,_0x1653f2,_0x319a00);})[_0x44abb4(0x16f)](function(_0x39d8a5){const _0x2c66da=_0x44abb4;logger[_0x2c66da(0x168)](util[_0x2c66da(0x16d)](_0x39d8a5,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1114_0x15425f(0x164)]=function(_0x2fd0f1){const _0x5e7c69=a1114_0x15425f;this[_0x5e7c69(0x15a)][_0x5e7c69(0x15f)](function(){return _0x2fd0f1();});},module[a1114_0x15425f(0x161)]={'up':function(_0x387570){return new Promise(function(_0x3f4d65){const _0x48840a=a1114_0x59c9,_0x11764d=new Migration(_0x387570);_0x11764d[_0x48840a(0x164)](_0x3f4d65);});},'down':function(){}};
\ No newline at end of file
+const a1117_0x1577=['../config/logger','join','query','dropTable','queryInterface','removeColumn','addIndex','inspect','catch','enqueue','finally','prototype','sequelize','tail','then','renameColumn','info','sequence','changeColumn','util','Added\x20column\x20%s\x20to\x20%s','stringify','final','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','exports','removeIndex','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s'];(function(_0x535120,_0x226b2a){const _0x157778=function(_0x366d05){while(--_0x366d05){_0x535120['push'](_0x535120['shift']());}};_0x157778(++_0x226b2a);}(a1117_0x1577,0x116));const a1117_0x366d=function(_0x535120,_0x226b2a){_0x535120=_0x535120-0x1cb;let _0x157778=a1117_0x1577[_0x535120];return _0x157778;};const a1117_0x2ac040=a1117_0x366d;'use strict';const util=require(a1117_0x2ac040(0x1cd)),logger=require(a1117_0x2ac040(0x1d7))('migration'),Sequence=function(){};Sequence[a1117_0x2ac040(0x1e2)][a1117_0x2ac040(0x1e0)]=function(_0x5efdeb){const _0x4c2a29=a1117_0x2ac040;this[_0x4c2a29(0x1e4)]=this['tail']?this[_0x4c2a29(0x1e4)][_0x4c2a29(0x1e1)](_0x5efdeb):_0x5efdeb();};const Migration=function(_0x16379e){const _0x5688bd=a1117_0x2ac040;this[_0x5688bd(0x1db)]=_0x16379e,this[_0x5688bd(0x1cb)]=new Sequence();};Migration[a1117_0x2ac040(0x1e2)][a1117_0x2ac040(0x1cc)]=function(_0x568508,_0xd1b9fd,_0xb62398){const _0x13ae9c=a1117_0x2ac040,_0x5d72b4=this;this[_0x13ae9c(0x1cb)][_0x13ae9c(0x1e0)](function(){return _0x5d72b4['queryInterface']['changeColumn'](_0x568508,_0xd1b9fd,_0xb62398)['then'](function(){const _0xb219f4=a1117_0x366d;logger[_0xb219f4(0x1e7)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xd1b9fd,_0x568508);})['catch'](function(_0xcfe902){const _0x3ac11a=a1117_0x366d;logger[_0x3ac11a(0x1e7)](JSON[_0x3ac11a(0x1cf)](_0xcfe902));});});},Migration[a1117_0x2ac040(0x1e2)]['addColumn']=function(_0x421e06,_0x3b0263,_0x502b24){const _0x177b44=a1117_0x2ac040,_0x1ee992=this;this[_0x177b44(0x1cb)][_0x177b44(0x1e0)](function(){const _0x31cc17=_0x177b44;return _0x1ee992[_0x31cc17(0x1db)]['addColumn'](_0x421e06,_0x3b0263,_0x502b24)[_0x31cc17(0x1e5)](function(){const _0x4fa988=_0x31cc17;logger[_0x4fa988(0x1e7)](_0x4fa988(0x1ce),_0x3b0263,_0x421e06);})[_0x31cc17(0x1df)](function(_0x178e15){const _0x212738=_0x31cc17;logger[_0x212738(0x1e7)](JSON[_0x212738(0x1cf)](_0x178e15));});});},Migration[a1117_0x2ac040(0x1e2)][a1117_0x2ac040(0x1da)]=function(_0x44eda6){const _0x59535c=a1117_0x2ac040,_0xe067e8=this;this[_0x59535c(0x1cb)][_0x59535c(0x1e0)](function(){const _0x101e36=_0x59535c;return _0xe067e8[_0x101e36(0x1db)][_0x101e36(0x1da)](_0x44eda6,{'force':!![]})['then'](function(){const _0x526f26=_0x101e36;logger[_0x526f26(0x1e7)](_0x526f26(0x1d1),_0x44eda6);})[_0x101e36(0x1df)](function(_0x44735f){const _0x5f3147=_0x101e36;logger[_0x5f3147(0x1e7)](JSON[_0x5f3147(0x1cf)](_0x44735f));});});},Migration[a1117_0x2ac040(0x1e2)]['addIndex']=function(_0x3fefb1,_0x2f4192,_0x59dfe9){const _0x13046b=a1117_0x2ac040,_0x373763=this;this['sequence'][_0x13046b(0x1e0)](function(){const _0x4c97d2=_0x13046b;return _0x373763[_0x4c97d2(0x1db)][_0x4c97d2(0x1dd)](_0x3fefb1,_0x2f4192,{'indexName':_0x59dfe9})[_0x4c97d2(0x1e5)](function(){const _0x15bf1a=_0x4c97d2;logger[_0x15bf1a(0x1e7)]('addIndex\x20%s\x20%s\x20%s',_0x3fefb1,_0x2f4192[_0x15bf1a(0x1d8)](','),_0x59dfe9);})[_0x4c97d2(0x1df)](function(_0x86d2f4){const _0x44d408=_0x4c97d2;logger['info'](JSON[_0x44d408(0x1cf)](_0x86d2f4));});});},Migration[a1117_0x2ac040(0x1e2)]['removeIndex']=function(_0x9591e,_0x1ed69d){const _0x443225=a1117_0x2ac040,_0x48e470=this;this['sequence'][_0x443225(0x1e0)](function(){const _0x30789a=_0x443225;return _0x48e470[_0x30789a(0x1db)][_0x30789a(0x1d4)](_0x9591e,_0x1ed69d)[_0x30789a(0x1e5)](function(){const _0xbaec3=_0x30789a;logger[_0xbaec3(0x1e7)](_0xbaec3(0x1d6),_0x9591e,_0x1ed69d);})[_0x30789a(0x1df)](function(_0x1fb16a){const _0x34611e=_0x30789a;logger[_0x34611e(0x1e7)](JSON[_0x34611e(0x1cf)](_0x1fb16a));});});},Migration[a1117_0x2ac040(0x1e2)]['query']=function(_0x56ae48){const _0x345a4e=a1117_0x2ac040,_0x3f71ac=this;this[_0x345a4e(0x1cb)]['enqueue'](function(){const _0x1633a6=_0x345a4e;return _0x3f71ac[_0x1633a6(0x1db)][_0x1633a6(0x1e3)][_0x1633a6(0x1d9)](_0x56ae48)['then'](function(){const _0x1cd9a4=_0x1633a6;logger[_0x1cd9a4(0x1e7)]('query\x20%s',_0x56ae48);})[_0x1633a6(0x1df)](function(_0x32422f){const _0xb5de43=_0x1633a6;logger[_0xb5de43(0x1e7)](JSON['stringify'](_0x32422f));});});},Migration[a1117_0x2ac040(0x1e2)][a1117_0x2ac040(0x1dc)]=function(_0x263f18,_0x32faee){const _0x2f9340=this;this['sequence']['enqueue'](function(){const _0x4742f1=a1117_0x366d;return _0x2f9340['queryInterface'][_0x4742f1(0x1dc)](_0x263f18,_0x32faee)[_0x4742f1(0x1e5)](function(){const _0x404325=_0x4742f1;logger[_0x404325(0x1e7)](_0x404325(0x1d5),_0x32faee,_0x263f18);})['catch'](function(_0x408d13){const _0x5b5bb3=_0x4742f1;logger[_0x5b5bb3(0x1e7)](util[_0x5b5bb3(0x1de)](_0x408d13,{'showHidden':![],'depth':null}));});});},Migration[a1117_0x2ac040(0x1e2)][a1117_0x2ac040(0x1e6)]=function(_0x1292cf,_0x40f4f3,_0x44048b){const _0xe89ad3=a1117_0x2ac040,_0x3bbc66=this;this[_0xe89ad3(0x1cb)][_0xe89ad3(0x1e0)](function(){const _0x4d88e1=_0xe89ad3;return _0x3bbc66[_0x4d88e1(0x1db)][_0x4d88e1(0x1e6)](_0x1292cf,_0x40f4f3,_0x44048b)[_0x4d88e1(0x1e5)](function(){const _0x3b9509=_0x4d88e1;logger[_0x3b9509(0x1e7)](_0x3b9509(0x1d2),_0x40f4f3,_0x44048b,_0x1292cf);})[_0x4d88e1(0x1df)](function(_0xc116d6){const _0xe6898b=_0x4d88e1;logger[_0xe6898b(0x1e7)](util[_0xe6898b(0x1de)](_0xc116d6,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1117_0x2ac040(0x1d0)]=function(_0x355f22){const _0x2218a5=a1117_0x2ac040;this[_0x2218a5(0x1cb)]['enqueue'](function(){return _0x355f22();});},module[a1117_0x2ac040(0x1d3)]={'up':function(_0x321f8f){return new Promise(function(_0x26d22a){const _0x34c0ff=new Migration(_0x321f8f);_0x34c0ff['final'](_0x26d22a);});},'down':function(){}};
\ No newline at end of file