Built motion from commit e493b9a4954b50a8ee6d0034ba3601cd210d989d. Version 3.0.0...
[motion-next.git] / server / migrations / 2.2.1.js
index 17d80cc..14d388d 100644 (file)
@@ -1 +1 @@
-const a1130_0x33c4=['inspect','join','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex','final','info','enqueue','query','migration','removeColumn','then','sequence','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','finally','prototype','query\x20%s','stringify','catch','changeColumn','queryInterface','exports','renameColumn'];(function(_0xf8bcb8,_0x45f253){const _0x33c426=function(_0x4f5e82){while(--_0x4f5e82){_0xf8bcb8['push'](_0xf8bcb8['shift']());}};_0x33c426(++_0x45f253);}(a1130_0x33c4,0x19a));const a1130_0x4f5e=function(_0xf8bcb8,_0x45f253){_0xf8bcb8=_0xf8bcb8-0x1cb;let _0x33c426=a1130_0x33c4[_0xf8bcb8];return _0x33c426;};const a1130_0x18f5a6=a1130_0x4f5e;'use strict';const util=require('util'),logger=require('../config/logger')(a1130_0x18f5a6(0x1e3)),Sequence=function(){};Sequence[a1130_0x18f5a6(0x1d2)][a1130_0x18f5a6(0x1e1)]=function(_0x22a7f2){const _0x3b505e=a1130_0x18f5a6;this['tail']=this[_0x3b505e(0x1ce)]?this[_0x3b505e(0x1ce)][_0x3b505e(0x1d1)](_0x22a7f2):_0x22a7f2();};const Migration=function(_0x515fbd){const _0x3f9367=a1130_0x18f5a6;this[_0x3f9367(0x1d7)]=_0x515fbd,this['sequence']=new Sequence();};Migration[a1130_0x18f5a6(0x1d2)][a1130_0x18f5a6(0x1d6)]=function(_0x5120ed,_0x1925c9,_0x1161b2){const _0x560407=a1130_0x18f5a6,_0xfae58f=this;this[_0x560407(0x1cd)]['enqueue'](function(){const _0x2efb88=_0x560407;return _0xfae58f[_0x2efb88(0x1d7)]['changeColumn'](_0x5120ed,_0x1925c9,_0x1161b2)['then'](function(){const _0x2f686d=_0x2efb88;logger[_0x2f686d(0x1e0)](_0x2f686d(0x1dd),_0x1925c9,_0x5120ed);})[_0x2efb88(0x1d5)](function(_0x1f027d){const _0x27ac72=_0x2efb88;logger[_0x27ac72(0x1e0)](JSON[_0x27ac72(0x1d4)](_0x1f027d));});});},Migration[a1130_0x18f5a6(0x1d2)]['addColumn']=function(_0xac6bce,_0x2b65bf,_0x23f096){const _0x177417=this;this['sequence']['enqueue'](function(){const _0x22045e=a1130_0x4f5e;return _0x177417['queryInterface']['addColumn'](_0xac6bce,_0x2b65bf,_0x23f096)[_0x22045e(0x1cc)](function(){const _0x5cedd6=_0x22045e;logger[_0x5cedd6(0x1e0)]('Added\x20column\x20%s\x20to\x20%s',_0x2b65bf,_0xac6bce);})[_0x22045e(0x1d5)](function(_0x5a1c64){const _0x92f104=_0x22045e;logger['info'](JSON[_0x92f104(0x1d4)](_0x5a1c64));});});},Migration[a1130_0x18f5a6(0x1d2)]['dropTable']=function(_0x26e47f){const _0x43fbd4=a1130_0x18f5a6,_0x1bb1cd=this;this[_0x43fbd4(0x1cd)][_0x43fbd4(0x1e1)](function(){const _0x7714ae=_0x43fbd4;return _0x1bb1cd[_0x7714ae(0x1d7)][_0x7714ae(0x1d0)](_0x26e47f,{'force':!![]})[_0x7714ae(0x1cc)](function(){logger['info']('table\x20dropped\x20%s',_0x26e47f);})[_0x7714ae(0x1d5)](function(_0x489b75){logger['info'](JSON['stringify'](_0x489b75));});});},Migration[a1130_0x18f5a6(0x1d2)]['addIndex']=function(_0x1520a0,_0x53c0dd,_0x352c71){const _0x28e412=a1130_0x18f5a6,_0x5ad5e8=this;this[_0x28e412(0x1cd)]['enqueue'](function(){const _0x9a3e25=_0x28e412;return _0x5ad5e8[_0x9a3e25(0x1d7)][_0x9a3e25(0x1dc)](_0x1520a0,_0x53c0dd,{'indexName':_0x352c71})[_0x9a3e25(0x1cc)](function(){const _0x54130f=_0x9a3e25;logger[_0x54130f(0x1e0)]('addIndex\x20%s\x20%s\x20%s',_0x1520a0,_0x53c0dd[_0x54130f(0x1db)](','),_0x352c71);})[_0x9a3e25(0x1d5)](function(_0x2dc26f){const _0x5d45de=_0x9a3e25;logger[_0x5d45de(0x1e0)](JSON[_0x5d45de(0x1d4)](_0x2dc26f));});});},Migration[a1130_0x18f5a6(0x1d2)][a1130_0x18f5a6(0x1de)]=function(_0x239a22,_0x2f2110){const _0xc56e19=a1130_0x18f5a6,_0x240896=this;this[_0xc56e19(0x1cd)][_0xc56e19(0x1e1)](function(){const _0xfa61f4=_0xc56e19;return _0x240896['queryInterface']['removeIndex'](_0x239a22,_0x2f2110)[_0xfa61f4(0x1cc)](function(){const _0x1641b3=_0xfa61f4;logger[_0x1641b3(0x1e0)]('removeIndex\x20%s\x20%s',_0x239a22,_0x2f2110);})[_0xfa61f4(0x1d5)](function(_0x4855ec){const _0x378d1c=_0xfa61f4;logger[_0x378d1c(0x1e0)](JSON[_0x378d1c(0x1d4)](_0x4855ec));});});},Migration[a1130_0x18f5a6(0x1d2)][a1130_0x18f5a6(0x1e2)]=function(_0x39c1a3){const _0x405616=a1130_0x18f5a6,_0x1f55dd=this;this[_0x405616(0x1cd)][_0x405616(0x1e1)](function(){return _0x1f55dd['queryInterface']['sequelize']['query'](_0x39c1a3)['then'](function(){const _0x2be133=a1130_0x4f5e;logger[_0x2be133(0x1e0)](_0x2be133(0x1d3),_0x39c1a3);})['catch'](function(_0x5890fb){const _0x5dc14d=a1130_0x4f5e;logger[_0x5dc14d(0x1e0)](JSON[_0x5dc14d(0x1d4)](_0x5890fb));});});},Migration['prototype'][a1130_0x18f5a6(0x1cb)]=function(_0x578f31,_0xeb72f4){const _0x359e90=a1130_0x18f5a6,_0x4c32c6=this;this['sequence'][_0x359e90(0x1e1)](function(){const _0x1d356c=_0x359e90;return _0x4c32c6[_0x1d356c(0x1d7)][_0x1d356c(0x1cb)](_0x578f31,_0xeb72f4)[_0x1d356c(0x1cc)](function(){const _0x15fa42=_0x1d356c;logger[_0x15fa42(0x1e0)]('Removed\x20column\x20%s\x20from\x20%s',_0xeb72f4,_0x578f31);})[_0x1d356c(0x1d5)](function(_0x4d51b7){const _0xf10424=_0x1d356c;logger[_0xf10424(0x1e0)](util[_0xf10424(0x1da)](_0x4d51b7,{'showHidden':![],'depth':null}));});});},Migration[a1130_0x18f5a6(0x1d2)][a1130_0x18f5a6(0x1d9)]=function(_0xd69c75,_0x1144eb,_0x1d846f){const _0x4bca28=a1130_0x18f5a6,_0x40a01c=this;this['sequence'][_0x4bca28(0x1e1)](function(){const _0x6d84f1=_0x4bca28;return _0x40a01c[_0x6d84f1(0x1d7)][_0x6d84f1(0x1d9)](_0xd69c75,_0x1144eb,_0x1d846f)['then'](function(){const _0x17fca2=_0x6d84f1;logger[_0x17fca2(0x1e0)](_0x17fca2(0x1cf),_0x1144eb,_0x1d846f,_0xd69c75);})['catch'](function(_0x28dbb8){const _0x20ad65=_0x6d84f1;logger[_0x20ad65(0x1e0)](util[_0x20ad65(0x1da)](_0x28dbb8,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1130_0x18f5a6(0x1df)]=function(_0x5e8091){const _0x20c149=a1130_0x18f5a6;this[_0x20c149(0x1cd)][_0x20c149(0x1e1)](function(){return _0x5e8091();});},module[a1130_0x18f5a6(0x1d8)]={'up':function(_0x5022d5){return new Promise(function(_0x1dad81){const _0x3f5acc=a1130_0x4f5e,_0x7ea63c=new Migration(_0x5022d5);_0x7ea63c[_0x3f5acc(0x1df)](_0x1dad81);});},'down':function(){}};
\ No newline at end of file
+'use strict';const a1135_0x566c=['finally','join','query','enqueue','resolve','222KkNNey','@config/logger','then','sequence','changeColumn','exports','dropTable','23314BiGIrP','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','final','11JKTHZH','inspect','352033TdhtvB','1022015VzkVfN','addIndex\x20%s\x20%s\x20%s','removeColumn','renameColumn','682335iTjKbV','queryInterface','removeIndex\x20%s\x20%s','stringify','26570ftwzHq','tail','migration','addIndex','1BaDCRD','prototype','info','table\x20dropped\x20%s','2npyTZR','addColumn','458918WZWHYh','4672KojywY','catch','removeIndex'];const a1135_0x10e9=function(_0x1c4860,_0x41c8ed){_0x1c4860=_0x1c4860-0xba;let _0x566c5b=a1135_0x566c[_0x1c4860];return _0x566c5b;};const a1135_0x3ad0a0=a1135_0x10e9;(function(_0x994401,_0x3e5d23){const _0x8f42d7=a1135_0x10e9;while(!![]){try{const _0x48c6c1=parseInt(_0x8f42d7(0xd9))+-parseInt(_0x8f42d7(0xd5))+-parseInt(_0x8f42d7(0xbf))+parseInt(_0x8f42d7(0xd4))*parseInt(_0x8f42d7(0xbd))+parseInt(_0x8f42d7(0xd2))*-parseInt(_0x8f42d7(0xdd))+parseInt(_0x8f42d7(0xe1))*-parseInt(_0x8f42d7(0xcf))+parseInt(_0x8f42d7(0xc8))*parseInt(_0x8f42d7(0xc0));if(_0x48c6c1===_0x3e5d23)break;else _0x994401['push'](_0x994401['shift']());}catch(_0x497874){_0x994401['push'](_0x994401['shift']());}}}(a1135_0x566c,0x9917c));const util=require('util'),logger=require(a1135_0x3ad0a0(0xc9))(a1135_0x3ad0a0(0xdf)),Sequence=function(){};Sequence['prototype'][a1135_0x3ad0a0(0xc6)]=function(_0x3842db){const _0x3371d9=a1135_0x3ad0a0;this[_0x3371d9(0xde)]=this[_0x3371d9(0xde)]?this[_0x3371d9(0xde)][_0x3371d9(0xc3)](_0x3842db):_0x3842db();};const Migration=function(_0x21c612){const _0xe1bfe2=a1135_0x3ad0a0;this[_0xe1bfe2(0xda)]=_0x21c612,this['sequence']=new Sequence();};Migration['prototype']['changeColumn']=function(_0x5df192,_0x51ef92,_0x2e9824){const _0x5c2d97=a1135_0x3ad0a0,_0x28b182=this;this[_0x5c2d97(0xcb)]['enqueue'](function(){const _0x1b4212=_0x5c2d97;return _0x28b182['queryInterface'][_0x1b4212(0xcc)](_0x5df192,_0x51ef92,_0x2e9824)[_0x1b4212(0xca)](function(){const _0x5060cf=_0x1b4212;logger[_0x5060cf(0xbb)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x51ef92,_0x5df192);})[_0x1b4212(0xc1)](function(_0x5c726d){const _0x38edd8=_0x1b4212;logger[_0x38edd8(0xbb)](JSON[_0x38edd8(0xdc)](_0x5c726d));});});},Migration['prototype'][a1135_0x3ad0a0(0xbe)]=function(_0x1d3e56,_0xa3f137,_0x5b01c8){const _0x4da1eb=a1135_0x3ad0a0,_0x41face=this;this['sequence'][_0x4da1eb(0xc6)](function(){const _0x6a5de=_0x4da1eb;return _0x41face[_0x6a5de(0xda)]['addColumn'](_0x1d3e56,_0xa3f137,_0x5b01c8)['then'](function(){const _0x6e3d2b=_0x6a5de;logger[_0x6e3d2b(0xbb)]('Added\x20column\x20%s\x20to\x20%s',_0xa3f137,_0x1d3e56);})[_0x6a5de(0xc1)](function(_0x31b437){const _0x3378c8=_0x6a5de;logger[_0x3378c8(0xbb)](JSON[_0x3378c8(0xdc)](_0x31b437));});});},Migration[a1135_0x3ad0a0(0xba)][a1135_0x3ad0a0(0xce)]=function(_0x353985){const _0x54a1db=a1135_0x3ad0a0,_0x6d9ee2=this;this[_0x54a1db(0xcb)][_0x54a1db(0xc6)](function(){const _0x579eba=_0x54a1db;return _0x6d9ee2['queryInterface']['dropTable'](_0x353985,{'force':!![]})[_0x579eba(0xca)](function(){const _0x13346e=_0x579eba;logger[_0x13346e(0xbb)](_0x13346e(0xbc),_0x353985);})[_0x579eba(0xc1)](function(_0x2e0143){const _0x532c73=_0x579eba;logger['info'](JSON[_0x532c73(0xdc)](_0x2e0143));});});},Migration['prototype'][a1135_0x3ad0a0(0xe0)]=function(_0x446f55,_0x2df8a4,_0x49ab08){const _0x261c64=a1135_0x3ad0a0,_0x3b7b58=this;this[_0x261c64(0xcb)][_0x261c64(0xc6)](function(){const _0x4e06ef=_0x261c64;return _0x3b7b58[_0x4e06ef(0xda)]['addIndex'](_0x446f55,_0x2df8a4,{'indexName':_0x49ab08})['then'](function(){const _0x167d99=_0x4e06ef;logger[_0x167d99(0xbb)](_0x167d99(0xd6),_0x446f55,_0x2df8a4[_0x167d99(0xc4)](','),_0x49ab08);})[_0x4e06ef(0xc1)](function(_0x3d8e50){const _0x2a206e=_0x4e06ef;logger[_0x2a206e(0xbb)](JSON['stringify'](_0x3d8e50));});});},Migration[a1135_0x3ad0a0(0xba)][a1135_0x3ad0a0(0xc2)]=function(_0x32448d,_0x2545d4){const _0x39571a=a1135_0x3ad0a0,_0x47872a=this;this[_0x39571a(0xcb)][_0x39571a(0xc6)](function(){const _0x5b9a4b=_0x39571a;return _0x47872a['queryInterface'][_0x5b9a4b(0xc2)](_0x32448d,_0x2545d4)['then'](function(){const _0x5395ee=_0x5b9a4b;logger[_0x5395ee(0xbb)](_0x5395ee(0xdb),_0x32448d,_0x2545d4);})[_0x5b9a4b(0xc1)](function(_0x3e8ff6){const _0x25dcb1=_0x5b9a4b;logger[_0x25dcb1(0xbb)](JSON[_0x25dcb1(0xdc)](_0x3e8ff6));});});},Migration[a1135_0x3ad0a0(0xba)][a1135_0x3ad0a0(0xc5)]=function(_0x12f501){const _0x44b9a1=a1135_0x3ad0a0,_0xb09cd0=this;this[_0x44b9a1(0xcb)][_0x44b9a1(0xc6)](function(){const _0x206fd4=_0x44b9a1;return _0xb09cd0[_0x206fd4(0xda)]['sequelize'][_0x206fd4(0xc5)](_0x12f501)[_0x206fd4(0xca)](function(){const _0x53738d=_0x206fd4;logger[_0x53738d(0xbb)]('query\x20%s',_0x12f501);})[_0x206fd4(0xc1)](function(_0x4c0d1f){const _0x3fcdea=_0x206fd4;logger[_0x3fcdea(0xbb)](JSON['stringify'](_0x4c0d1f));});});},Migration[a1135_0x3ad0a0(0xba)][a1135_0x3ad0a0(0xd7)]=function(_0x2f23d1,_0x2b82ee){const _0x262bc4=a1135_0x3ad0a0,_0xad74bc=this;this['sequence'][_0x262bc4(0xc6)](function(){const _0xf78736=_0x262bc4;return _0xad74bc[_0xf78736(0xda)][_0xf78736(0xd7)](_0x2f23d1,_0x2b82ee)[_0xf78736(0xca)](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x2b82ee,_0x2f23d1);})[_0xf78736(0xc1)](function(_0x306cee){const _0x222474=_0xf78736;logger['info'](util[_0x222474(0xd3)](_0x306cee,{'showHidden':![],'depth':null}));});});},Migration[a1135_0x3ad0a0(0xba)][a1135_0x3ad0a0(0xd8)]=function(_0x4b5bf1,_0x239345,_0x2da954){const _0x3ea179=a1135_0x3ad0a0,_0x827e23=this;this[_0x3ea179(0xcb)][_0x3ea179(0xc6)](function(){const _0x64d110=_0x3ea179;return _0x827e23[_0x64d110(0xda)][_0x64d110(0xd8)](_0x4b5bf1,_0x239345,_0x2da954)[_0x64d110(0xca)](function(){const _0x39a55f=_0x64d110;logger['info'](_0x39a55f(0xd0),_0x239345,_0x2da954,_0x4b5bf1);})['catch'](function(_0x150c4e){const _0x1d7ec2=_0x64d110;logger[_0x1d7ec2(0xbb)](util['inspect'](_0x150c4e,{'showHidden':![],'depth':null}));});});},Migration[a1135_0x3ad0a0(0xba)][a1135_0x3ad0a0(0xd1)]=function(_0x2b2d62){const _0x180d1a=a1135_0x3ad0a0;this[_0x180d1a(0xcb)]['enqueue'](function(){return _0x2b2d62();});},module[a1135_0x3ad0a0(0xcd)]={'up':function(_0x272437){return new Promise(function(_0xa20a81){const _0x2ea3c3=a1135_0x10e9,_0x2e908e=new Migration(_0x272437);_0x2e908e[_0x2ea3c3(0xd1)](_0xa20a81);});},'down':function(){const _0x3207c2=a1135_0x3ad0a0;return Promise[_0x3207c2(0xc7)]();}};
\ No newline at end of file