Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / migrations / 2.2.1.js
index 27f929f..c3568bd 100644 (file)
@@ -1 +1 @@
-const a966_0x123d=['tail','exports','final','inspect','removeIndex\x20%s\x20%s','table\x20dropped\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','join','addIndex\x20%s\x20%s\x20%s','removeIndex','migration','prototype','query\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','addIndex','Added\x20column\x20%s\x20to\x20%s','renameColumn','sequelize','sequence','info','queryInterface','catch','dropTable','../config/logger','Removed\x20column\x20%s\x20from\x20%s','query','then','addColumn','stringify','enqueue'];(function(_0x5a3598,_0x123df4){const _0x163f54=function(_0x421c17){while(--_0x421c17){_0x5a3598['push'](_0x5a3598['shift']());}};_0x163f54(++_0x123df4);}(a966_0x123d,0x146));const a966_0x163f=function(_0x5a3598,_0x123df4){_0x5a3598=_0x5a3598-0x0;let _0x163f54=a966_0x123d[_0x5a3598];return _0x163f54;};const _0xcde6fa=a966_0x163f;'use strict';const util=require('util'),logger=require(_0xcde6fa('0x8'))(_0xcde6fa('0x19')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x421c17){const _0x31c7d5=_0xcde6fa;this['tail']=this['tail']?this[_0x31c7d5('0xf')]['finally'](_0x421c17):_0x421c17();};const Migration=function(_0x355522){const _0x2b6878=_0xcde6fa;this[_0x2b6878('0x5')]=_0x355522,this[_0x2b6878('0x3')]=new Sequence();};Migration[_0xcde6fa('0x1a')]['changeColumn']=function(_0x241c38,_0x4941c5,_0x1e163c){const _0x4e42ef=_0xcde6fa,_0x4c654f=this;this[_0x4e42ef('0x3')][_0x4e42ef('0xe')](function(){const _0x454b48=_0x4e42ef;return _0x4c654f[_0x454b48('0x5')]['changeColumn'](_0x241c38,_0x4941c5,_0x1e163c)[_0x454b48('0xb')](function(){const _0x1e61c6=_0x454b48;logger[_0x1e61c6('0x4')](_0x1e61c6('0x15'),_0x4941c5,_0x241c38);})[_0x454b48('0x6')](function(_0x5abe2b){const _0x2d1d10=_0x454b48;logger[_0x2d1d10('0x4')](JSON[_0x2d1d10('0xd')](_0x5abe2b));});});},Migration[_0xcde6fa('0x1a')][_0xcde6fa('0xc')]=function(_0x43a008,_0x2bdea7,_0x339032){const _0x393e6e=_0xcde6fa,_0x444d7c=this;this[_0x393e6e('0x3')][_0x393e6e('0xe')](function(){const _0x170a5c=_0x393e6e;return _0x444d7c[_0x170a5c('0x5')]['addColumn'](_0x43a008,_0x2bdea7,_0x339032)[_0x170a5c('0xb')](function(){const _0x14656b=_0x170a5c;logger[_0x14656b('0x4')](_0x14656b('0x0'),_0x2bdea7,_0x43a008);})['catch'](function(_0x1af39e){const _0x3fee65=_0x170a5c;logger[_0x3fee65('0x4')](JSON[_0x3fee65('0xd')](_0x1af39e));});});},Migration[_0xcde6fa('0x1a')]['dropTable']=function(_0xce749e){const _0xf3a610=_0xcde6fa,_0x593511=this;this['sequence'][_0xf3a610('0xe')](function(){const _0x1022da=_0xf3a610;return _0x593511[_0x1022da('0x5')][_0x1022da('0x7')](_0xce749e,{'force':!![]})[_0x1022da('0xb')](function(){const _0x4a8b0d=_0x1022da;logger[_0x4a8b0d('0x4')](_0x4a8b0d('0x14'),_0xce749e);})[_0x1022da('0x6')](function(_0x3bee2){const _0x6e0dc0=_0x1022da;logger[_0x6e0dc0('0x4')](JSON[_0x6e0dc0('0xd')](_0x3bee2));});});},Migration['prototype'][_0xcde6fa('0x1e')]=function(_0x112080,_0x4867bf,_0x230856){const _0x3bd629=_0xcde6fa,_0xb2f3ce=this;this[_0x3bd629('0x3')][_0x3bd629('0xe')](function(){const _0x411ed5=_0x3bd629;return _0xb2f3ce[_0x411ed5('0x5')][_0x411ed5('0x1e')](_0x112080,_0x4867bf,{'indexName':_0x230856})[_0x411ed5('0xb')](function(){const _0x548c1a=_0x411ed5;logger[_0x548c1a('0x4')](_0x548c1a('0x17'),_0x112080,_0x4867bf[_0x548c1a('0x16')](','),_0x230856);})[_0x411ed5('0x6')](function(_0x5e1ff8){const _0x1db09d=_0x411ed5;logger[_0x1db09d('0x4')](JSON[_0x1db09d('0xd')](_0x5e1ff8));});});},Migration[_0xcde6fa('0x1a')][_0xcde6fa('0x18')]=function(_0x296bed,_0x53645c){const _0x576242=this;this['sequence']['enqueue'](function(){const _0x5a8c8d=a966_0x163f;return _0x576242[_0x5a8c8d('0x5')][_0x5a8c8d('0x18')](_0x296bed,_0x53645c)['then'](function(){const _0x19bea1=_0x5a8c8d;logger[_0x19bea1('0x4')](_0x19bea1('0x13'),_0x296bed,_0x53645c);})[_0x5a8c8d('0x6')](function(_0xe5dfe3){const _0xc07d3c=_0x5a8c8d;logger['info'](JSON[_0xc07d3c('0xd')](_0xe5dfe3));});});},Migration[_0xcde6fa('0x1a')][_0xcde6fa('0xa')]=function(_0x3860a4){const _0x1ce82f=_0xcde6fa,_0x43d6d4=this;this[_0x1ce82f('0x3')][_0x1ce82f('0xe')](function(){const _0x334607=_0x1ce82f;return _0x43d6d4[_0x334607('0x5')][_0x334607('0x2')][_0x334607('0xa')](_0x3860a4)['then'](function(){const _0x1b224b=_0x334607;logger[_0x1b224b('0x4')](_0x1b224b('0x1b'),_0x3860a4);})[_0x334607('0x6')](function(_0x449451){const _0xe0e966=_0x334607;logger[_0xe0e966('0x4')](JSON[_0xe0e966('0xd')](_0x449451));});});},Migration['prototype'][_0xcde6fa('0x1d')]=function(_0x2aec0d,_0x20dc1e){const _0x43ad01=_0xcde6fa,_0x588268=this;this[_0x43ad01('0x3')][_0x43ad01('0xe')](function(){const _0x1bdcee=_0x43ad01;return _0x588268[_0x1bdcee('0x5')][_0x1bdcee('0x1d')](_0x2aec0d,_0x20dc1e)[_0x1bdcee('0xb')](function(){const _0x3a64b2=_0x1bdcee;logger[_0x3a64b2('0x4')](_0x3a64b2('0x9'),_0x20dc1e,_0x2aec0d);})[_0x1bdcee('0x6')](function(_0x28bc67){const _0x184db3=_0x1bdcee;logger[_0x184db3('0x4')](util[_0x184db3('0x12')](_0x28bc67,{'showHidden':![],'depth':null}));});});},Migration[_0xcde6fa('0x1a')][_0xcde6fa('0x1')]=function(_0x4e9230,_0x46bf7b,_0x521b3b){const _0x3cc7e2=this;this['sequence']['enqueue'](function(){const _0x18dc8d=a966_0x163f;return _0x3cc7e2['queryInterface'][_0x18dc8d('0x1')](_0x4e9230,_0x46bf7b,_0x521b3b)[_0x18dc8d('0xb')](function(){const _0x1730b0=_0x18dc8d;logger['info'](_0x1730b0('0x1c'),_0x46bf7b,_0x521b3b,_0x4e9230);})[_0x18dc8d('0x6')](function(_0x56436c){logger['info'](util['inspect'](_0x56436c,{'showHidden':![],'depth':null}));});});},Migration[_0xcde6fa('0x1a')][_0xcde6fa('0x11')]=function(_0x426f5b){const _0x5b314c=_0xcde6fa;this[_0x5b314c('0x3')][_0x5b314c('0xe')](function(){return _0x426f5b();});},module[_0xcde6fa('0x10')]={'up':function(_0x1f6857){return new Promise(function(_0x3cf5de){const _0x5f31a5=a966_0x163f,_0x4aa7a2=new Migration(_0x1f6857);_0x4aa7a2[_0x5f31a5('0x11')](_0x3cf5de);});},'down':function(){}};
\ No newline at end of file
+const a966_0x50bb=['sequence','table\x20dropped\x20%s','removeIndex','info','queryInterface','Removed\x20column\x20%s\x20from\x20%s','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','catch','stringify','final','addIndex\x20%s\x20%s\x20%s','addIndex','prototype','removeIndex\x20%s\x20%s','sequelize','addColumn','enqueue','query\x20%s','then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','dropTable','../config/logger','removeColumn','changeColumn','inspect'];(function(_0x2f12b6,_0x50bb44){const _0x72afc8=function(_0x51dd75){while(--_0x51dd75){_0x2f12b6['push'](_0x2f12b6['shift']());}};_0x72afc8(++_0x50bb44);}(a966_0x50bb,0x177));const a966_0x72af=function(_0x2f12b6,_0x50bb44){_0x2f12b6=_0x2f12b6-0x0;let _0x72afc8=a966_0x50bb[_0x2f12b6];return _0x72afc8;};const _0x9a41ac=a966_0x72af;'use strict';const util=require('util'),logger=require(_0x9a41ac('0x1a'))('migration'),Sequence=function(){};Sequence['prototype'][_0x9a41ac('0x14')]=function(_0x51dd75){const _0x537d9c=_0x9a41ac;this[_0x537d9c('0x18')]=this[_0x537d9c('0x18')]?this[_0x537d9c('0x18')]['finally'](_0x51dd75):_0x51dd75();};const Migration=function(_0x3988ce){const _0x295ae8=_0x9a41ac;this[_0x295ae8('0x7')]=_0x3988ce,this['sequence']=new Sequence();};Migration['prototype'][_0x9a41ac('0x1')]=function(_0x8dc30c,_0x22bd2b,_0x5a3e63){const _0x288069=_0x9a41ac,_0x34a8fb=this;this[_0x288069('0x3')][_0x288069('0x14')](function(){const _0x96b08e=_0x288069;return _0x34a8fb[_0x96b08e('0x7')]['changeColumn'](_0x8dc30c,_0x22bd2b,_0x5a3e63)[_0x96b08e('0x16')](function(){const _0x1b7a62=_0x96b08e;logger[_0x1b7a62('0x6')](_0x1b7a62('0xa'),_0x22bd2b,_0x8dc30c);})['catch'](function(_0x219d0a){const _0x88ff66=_0x96b08e;logger[_0x88ff66('0x6')](JSON[_0x88ff66('0xc')](_0x219d0a));});});},Migration[_0x9a41ac('0x10')][_0x9a41ac('0x13')]=function(_0xe0940c,_0x465bd5,_0x34a688){const _0x225dbe=_0x9a41ac,_0xda0c30=this;this[_0x225dbe('0x3')][_0x225dbe('0x14')](function(){const _0x5e1652=_0x225dbe;return _0xda0c30[_0x5e1652('0x7')][_0x5e1652('0x13')](_0xe0940c,_0x465bd5,_0x34a688)[_0x5e1652('0x16')](function(){const _0x3a2a32=_0x5e1652;logger['info'](_0x3a2a32('0x9'),_0x465bd5,_0xe0940c);})[_0x5e1652('0xb')](function(_0x10547a){const _0x3dd316=_0x5e1652;logger[_0x3dd316('0x6')](JSON[_0x3dd316('0xc')](_0x10547a));});});},Migration['prototype'][_0x9a41ac('0x19')]=function(_0x3c1224){const _0x3f28aa=_0x9a41ac,_0x34fd6b=this;this[_0x3f28aa('0x3')]['enqueue'](function(){const _0x421757=_0x3f28aa;return _0x34fd6b[_0x421757('0x7')]['dropTable'](_0x3c1224,{'force':!![]})[_0x421757('0x16')](function(){const _0x518368=_0x421757;logger[_0x518368('0x6')](_0x518368('0x4'),_0x3c1224);})[_0x421757('0xb')](function(_0x406053){const _0x1284c0=_0x421757;logger['info'](JSON[_0x1284c0('0xc')](_0x406053));});});},Migration['prototype'][_0x9a41ac('0xf')]=function(_0x7c89c0,_0x105898,_0x45f8fa){const _0x4ca3b9=_0x9a41ac,_0x1e3354=this;this[_0x4ca3b9('0x3')][_0x4ca3b9('0x14')](function(){const _0x5bfa22=_0x4ca3b9;return _0x1e3354[_0x5bfa22('0x7')][_0x5bfa22('0xf')](_0x7c89c0,_0x105898,{'indexName':_0x45f8fa})[_0x5bfa22('0x16')](function(){const _0x5a3054=_0x5bfa22;logger[_0x5a3054('0x6')](_0x5a3054('0xe'),_0x7c89c0,_0x105898['join'](','),_0x45f8fa);})[_0x5bfa22('0xb')](function(_0x6123f5){const _0x587bdf=_0x5bfa22;logger[_0x587bdf('0x6')](JSON[_0x587bdf('0xc')](_0x6123f5));});});},Migration['prototype'][_0x9a41ac('0x5')]=function(_0x32be3c,_0x9c100e){const _0x241812=_0x9a41ac,_0x35593a=this;this[_0x241812('0x3')][_0x241812('0x14')](function(){const _0x257d35=_0x241812;return _0x35593a[_0x257d35('0x7')]['removeIndex'](_0x32be3c,_0x9c100e)[_0x257d35('0x16')](function(){const _0x21f1a7=_0x257d35;logger[_0x21f1a7('0x6')](_0x21f1a7('0x11'),_0x32be3c,_0x9c100e);})[_0x257d35('0xb')](function(_0x5102de){const _0x4e6996=_0x257d35;logger['info'](JSON[_0x4e6996('0xc')](_0x5102de));});});},Migration[_0x9a41ac('0x10')]['query']=function(_0x4bdceb){const _0x403d65=this;this['sequence']['enqueue'](function(){const _0x3a31da=a966_0x72af;return _0x403d65[_0x3a31da('0x7')][_0x3a31da('0x12')]['query'](_0x4bdceb)[_0x3a31da('0x16')](function(){const _0x2dc882=_0x3a31da;logger[_0x2dc882('0x6')](_0x2dc882('0x15'),_0x4bdceb);})[_0x3a31da('0xb')](function(_0x2d3d6f){const _0x48e627=_0x3a31da;logger['info'](JSON[_0x48e627('0xc')](_0x2d3d6f));});});},Migration[_0x9a41ac('0x10')][_0x9a41ac('0x0')]=function(_0x5bc528,_0x467438){const _0x6fc7d2=_0x9a41ac,_0x16c3d3=this;this[_0x6fc7d2('0x3')][_0x6fc7d2('0x14')](function(){const _0x1450be=_0x6fc7d2;return _0x16c3d3[_0x1450be('0x7')][_0x1450be('0x0')](_0x5bc528,_0x467438)[_0x1450be('0x16')](function(){const _0x55059a=_0x1450be;logger[_0x55059a('0x6')](_0x55059a('0x8'),_0x467438,_0x5bc528);})[_0x1450be('0xb')](function(_0x1787fd){const _0xf6409e=_0x1450be;logger[_0xf6409e('0x6')](util['inspect'](_0x1787fd,{'showHidden':![],'depth':null}));});});},Migration[_0x9a41ac('0x10')]['renameColumn']=function(_0x42f6b5,_0xaa1b0a,_0x342892){const _0x16e13a=_0x9a41ac,_0x4f88d8=this;this[_0x16e13a('0x3')]['enqueue'](function(){const _0x3a2c5f=_0x16e13a;return _0x4f88d8[_0x3a2c5f('0x7')]['renameColumn'](_0x42f6b5,_0xaa1b0a,_0x342892)[_0x3a2c5f('0x16')](function(){const _0x5988c2=_0x3a2c5f;logger['info'](_0x5988c2('0x17'),_0xaa1b0a,_0x342892,_0x42f6b5);})[_0x3a2c5f('0xb')](function(_0x166911){const _0x5711d9=_0x3a2c5f;logger[_0x5711d9('0x6')](util[_0x5711d9('0x2')](_0x166911,{'showHidden':![],'depth':null}));});});},Migration[_0x9a41ac('0x10')][_0x9a41ac('0xd')]=function(_0x22271a){const _0x4cf43d=_0x9a41ac;this['sequence'][_0x4cf43d('0x14')](function(){return _0x22271a();});},module['exports']={'up':function(_0x43c9f2){return new Promise(function(_0x49c64d){const _0x35bd21=a966_0x72af,_0x29f1a7=new Migration(_0x43c9f2);_0x29f1a7[_0x35bd21('0xd')](_0x49c64d);});},'down':function(){}};
\ No newline at end of file