Built motion from commit 362b9399b4d0ed5560fbb795af995925d345fc38. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.8.js
index 7bab741..f54d3e1 100644 (file)
@@ -1 +1 @@
-const a1145_0x1a76=['migration','removeIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','removeIndex\x20%s\x20%s','addColumn','inspect','sequence','tail','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s','dropTable','then','addIndex\x20%s\x20%s\x20%s','finally','../config/logger','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','util','catch','addIndex','final','stringify','exports','join','sequelize','prototype','queryInterface','renameColumn','info','enqueue','query\x20%s'];(function(_0x2379d6,_0x1585ac){const _0x1a7667=function(_0x306605){while(--_0x306605){_0x2379d6['push'](_0x2379d6['shift']());}};_0x1a7667(++_0x1585ac);}(a1145_0x1a76,0x12a));const a1145_0x3066=function(_0x2379d6,_0x1585ac){_0x2379d6=_0x2379d6-0x1a3;let _0x1a7667=a1145_0x1a76[_0x2379d6];return _0x1a7667;};const a1145_0x1efdd9=a1145_0x3066;'use strict';const util=require(a1145_0x1efdd9(0x1ab)),logger=require(a1145_0x1efdd9(0x1a8))(a1145_0x1efdd9(0x1b9)),Sequence=function(){};Sequence[a1145_0x1efdd9(0x1b3)][a1145_0x1efdd9(0x1b7)]=function(_0x155cc5){const _0x47693c=a1145_0x1efdd9;this[_0x47693c(0x1c1)]=this['tail']?this[_0x47693c(0x1c1)][_0x47693c(0x1a7)](_0x155cc5):_0x155cc5();};const Migration=function(_0x5079e9){const _0x3ae3eb=a1145_0x1efdd9;this['queryInterface']=_0x5079e9,this[_0x3ae3eb(0x1c0)]=new Sequence();};Migration[a1145_0x1efdd9(0x1b3)]['changeColumn']=function(_0x2faf7f,_0x47a067,_0x27892b){const _0x588642=a1145_0x1efdd9,_0xde1b35=this;this[_0x588642(0x1c0)][_0x588642(0x1b7)](function(){const _0x20cbfb=_0x588642;return _0xde1b35['queryInterface']['changeColumn'](_0x2faf7f,_0x47a067,_0x27892b)[_0x20cbfb(0x1a5)](function(){const _0x5d44d0=_0x20cbfb;logger[_0x5d44d0(0x1b6)](_0x5d44d0(0x1bb),_0x47a067,_0x2faf7f);})[_0x20cbfb(0x1ac)](function(_0x33757f){const _0x5eb113=_0x20cbfb;logger[_0x5eb113(0x1b6)](JSON[_0x5eb113(0x1af)](_0x33757f));});});},Migration[a1145_0x1efdd9(0x1b3)][a1145_0x1efdd9(0x1be)]=function(_0x31a07a,_0x3386a0,_0x5d8c78){const _0x4f00d2=a1145_0x1efdd9,_0x284e7d=this;this[_0x4f00d2(0x1c0)][_0x4f00d2(0x1b7)](function(){const _0x10a0db=_0x4f00d2;return _0x284e7d[_0x10a0db(0x1b4)]['addColumn'](_0x31a07a,_0x3386a0,_0x5d8c78)[_0x10a0db(0x1a5)](function(){const _0x2c12ca=_0x10a0db;logger[_0x2c12ca(0x1b6)]('Added\x20column\x20%s\x20to\x20%s',_0x3386a0,_0x31a07a);})[_0x10a0db(0x1ac)](function(_0x7579){const _0xc785e9=_0x10a0db;logger[_0xc785e9(0x1b6)](JSON[_0xc785e9(0x1af)](_0x7579));});});},Migration[a1145_0x1efdd9(0x1b3)][a1145_0x1efdd9(0x1a4)]=function(_0x40b813){const _0x5625a8=a1145_0x1efdd9,_0x2bfd29=this;this[_0x5625a8(0x1c0)][_0x5625a8(0x1b7)](function(){const _0x2a353e=_0x5625a8;return _0x2bfd29[_0x2a353e(0x1b4)][_0x2a353e(0x1a4)](_0x40b813,{'force':!![]})[_0x2a353e(0x1a5)](function(){const _0x723d16=_0x2a353e;logger[_0x723d16(0x1b6)](_0x723d16(0x1a3),_0x40b813);})[_0x2a353e(0x1ac)](function(_0x29d6c4){const _0x378d61=_0x2a353e;logger[_0x378d61(0x1b6)](JSON[_0x378d61(0x1af)](_0x29d6c4));});});},Migration[a1145_0x1efdd9(0x1b3)][a1145_0x1efdd9(0x1ad)]=function(_0x3d0d4b,_0x3483fe,_0x1e28b3){const _0x22fa64=a1145_0x1efdd9,_0x4a2287=this;this[_0x22fa64(0x1c0)][_0x22fa64(0x1b7)](function(){const _0x404896=_0x22fa64;return _0x4a2287[_0x404896(0x1b4)][_0x404896(0x1ad)](_0x3d0d4b,_0x3483fe,{'indexName':_0x1e28b3})[_0x404896(0x1a5)](function(){const _0x1dbf23=_0x404896;logger[_0x1dbf23(0x1b6)](_0x1dbf23(0x1a6),_0x3d0d4b,_0x3483fe[_0x1dbf23(0x1b1)](','),_0x1e28b3);})[_0x404896(0x1ac)](function(_0x43b3c3){const _0x528ff5=_0x404896;logger[_0x528ff5(0x1b6)](JSON[_0x528ff5(0x1af)](_0x43b3c3));});});},Migration['prototype'][a1145_0x1efdd9(0x1ba)]=function(_0x1a5136,_0x5e4ef1){const _0x2e15d8=a1145_0x1efdd9,_0x5ccd9a=this;this[_0x2e15d8(0x1c0)][_0x2e15d8(0x1b7)](function(){const _0x29c407=_0x2e15d8;return _0x5ccd9a[_0x29c407(0x1b4)][_0x29c407(0x1ba)](_0x1a5136,_0x5e4ef1)[_0x29c407(0x1a5)](function(){const _0x2bea7f=_0x29c407;logger[_0x2bea7f(0x1b6)](_0x2bea7f(0x1bd),_0x1a5136,_0x5e4ef1);})[_0x29c407(0x1ac)](function(_0x54cb9a){const _0x5555d8=_0x29c407;logger[_0x5555d8(0x1b6)](JSON[_0x5555d8(0x1af)](_0x54cb9a));});});},Migration['prototype'][a1145_0x1efdd9(0x1aa)]=function(_0x5deb1d){const _0x5298e2=a1145_0x1efdd9,_0x4c420b=this;this[_0x5298e2(0x1c0)]['enqueue'](function(){const _0x51e0e2=_0x5298e2;return _0x4c420b[_0x51e0e2(0x1b4)][_0x51e0e2(0x1b2)][_0x51e0e2(0x1aa)](_0x5deb1d)[_0x51e0e2(0x1a5)](function(){const _0x5ccadf=_0x51e0e2;logger[_0x5ccadf(0x1b6)](_0x5ccadf(0x1b8),_0x5deb1d);})[_0x51e0e2(0x1ac)](function(_0x15977d){const _0x1fa190=_0x51e0e2;logger['info'](JSON[_0x1fa190(0x1af)](_0x15977d));});});},Migration[a1145_0x1efdd9(0x1b3)]['removeColumn']=function(_0x5d4582,_0x58fd55){const _0x1ea637=this;this['sequence']['enqueue'](function(){const _0x4c207f=a1145_0x3066;return _0x1ea637[_0x4c207f(0x1b4)][_0x4c207f(0x1bc)](_0x5d4582,_0x58fd55)[_0x4c207f(0x1a5)](function(){const _0x9b3f39=_0x4c207f;logger[_0x9b3f39(0x1b6)](_0x9b3f39(0x1c2),_0x58fd55,_0x5d4582);})[_0x4c207f(0x1ac)](function(_0x1e2439){const _0x3256da=_0x4c207f;logger[_0x3256da(0x1b6)](util['inspect'](_0x1e2439,{'showHidden':![],'depth':null}));});});},Migration[a1145_0x1efdd9(0x1b3)]['renameColumn']=function(_0x20a3ef,_0x4c1137,_0x5ce555){const _0x2dfcda=a1145_0x1efdd9,_0x54a1ee=this;this[_0x2dfcda(0x1c0)]['enqueue'](function(){const _0x5ad06e=_0x2dfcda;return _0x54a1ee[_0x5ad06e(0x1b4)][_0x5ad06e(0x1b5)](_0x20a3ef,_0x4c1137,_0x5ce555)[_0x5ad06e(0x1a5)](function(){const _0x426797=_0x5ad06e;logger[_0x426797(0x1b6)](_0x426797(0x1a9),_0x4c1137,_0x5ce555,_0x20a3ef);})[_0x5ad06e(0x1ac)](function(_0x507ee8){const _0x1ea3b1=_0x5ad06e;logger[_0x1ea3b1(0x1b6)](util[_0x1ea3b1(0x1bf)](_0x507ee8,{'showHidden':![],'depth':null}));});});},Migration[a1145_0x1efdd9(0x1b3)][a1145_0x1efdd9(0x1ae)]=function(_0x5aaaca){const _0x5f30c1=a1145_0x1efdd9;this[_0x5f30c1(0x1c0)][_0x5f30c1(0x1b7)](function(){return _0x5aaaca();});},module[a1145_0x1efdd9(0x1b0)]={'up':function(_0x2413b0){return new Promise(function(_0x414128){const _0x194740=a1145_0x3066,_0x570eab=new Migration(_0x2413b0);_0x570eab[_0x194740(0x1ae)](_0x414128);});},'down':function(){}};
\ No newline at end of file
+const a1145_0x35e9=['dropTable','info','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','finally','stringify','exports','addIndex','Removed\x20column\x20%s\x20from\x20%s','inspect','renameColumn','queryInterface','table\x20dropped\x20%s','catch','enqueue','sequence','util','query\x20%s','removeColumn','removeIndex','final','query','addIndex\x20%s\x20%s\x20%s','tail','../config/logger','migration','removeIndex\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','prototype','addColumn','then'];(function(_0x1d677b,_0x2bfcf4){const _0x35e91d=function(_0xd0d19){while(--_0xd0d19){_0x1d677b['push'](_0x1d677b['shift']());}};_0x35e91d(++_0x2bfcf4);}(a1145_0x35e9,0x136));const a1145_0xd0d1=function(_0x1d677b,_0x2bfcf4){_0x1d677b=_0x1d677b-0xd9;let _0x35e91d=a1145_0x35e9[_0x1d677b];return _0x35e91d;};const a1145_0x5b9a29=a1145_0xd0d1;'use strict';const util=require(a1145_0x5b9a29(0xe9)),logger=require(a1145_0x5b9a29(0xf1))(a1145_0x5b9a29(0xf2)),Sequence=function(){};Sequence[a1145_0x5b9a29(0xf5)][a1145_0x5b9a29(0xe7)]=function(_0x3f1a12){const _0x27f7f2=a1145_0x5b9a29;this[_0x27f7f2(0xf0)]=this[_0x27f7f2(0xf0)]?this[_0x27f7f2(0xf0)][_0x27f7f2(0xdd)](_0x3f1a12):_0x3f1a12();};const Migration=function(_0x7ce113){const _0x902876=a1145_0x5b9a29;this[_0x902876(0xe4)]=_0x7ce113,this['sequence']=new Sequence();};Migration[a1145_0x5b9a29(0xf5)][a1145_0x5b9a29(0xdc)]=function(_0x558780,_0x433785,_0x31006b){const _0x397ebb=a1145_0x5b9a29,_0x33116a=this;this[_0x397ebb(0xe8)]['enqueue'](function(){const _0xeb221a=_0x397ebb;return _0x33116a['queryInterface'][_0xeb221a(0xdc)](_0x558780,_0x433785,_0x31006b)[_0xeb221a(0xf7)](function(){const _0xa48074=_0xeb221a;logger[_0xa48074(0xda)](_0xa48074(0xdb),_0x433785,_0x558780);})[_0xeb221a(0xe6)](function(_0xbccb32){logger['info'](JSON['stringify'](_0xbccb32));});});},Migration[a1145_0x5b9a29(0xf5)][a1145_0x5b9a29(0xf6)]=function(_0x19b67a,_0x2d06d5,_0x3cd9d3){const _0x49cb4a=a1145_0x5b9a29,_0x505924=this;this[_0x49cb4a(0xe8)]['enqueue'](function(){const _0x3e7df3=_0x49cb4a;return _0x505924[_0x3e7df3(0xe4)][_0x3e7df3(0xf6)](_0x19b67a,_0x2d06d5,_0x3cd9d3)[_0x3e7df3(0xf7)](function(){const _0x856e9d=_0x3e7df3;logger['info'](_0x856e9d(0xf4),_0x2d06d5,_0x19b67a);})['catch'](function(_0x41245c){const _0x2d436e=_0x3e7df3;logger[_0x2d436e(0xda)](JSON[_0x2d436e(0xde)](_0x41245c));});});},Migration[a1145_0x5b9a29(0xf5)][a1145_0x5b9a29(0xd9)]=function(_0x168f21){const _0x1e0b93=a1145_0x5b9a29,_0x346e3a=this;this['sequence'][_0x1e0b93(0xe7)](function(){const _0x22959c=_0x1e0b93;return _0x346e3a[_0x22959c(0xe4)]['dropTable'](_0x168f21,{'force':!![]})['then'](function(){const _0x17e6e4=_0x22959c;logger[_0x17e6e4(0xda)](_0x17e6e4(0xe5),_0x168f21);})[_0x22959c(0xe6)](function(_0x2d7179){const _0x41ebf4=_0x22959c;logger[_0x41ebf4(0xda)](JSON[_0x41ebf4(0xde)](_0x2d7179));});});},Migration['prototype'][a1145_0x5b9a29(0xe0)]=function(_0x2f89c6,_0x598991,_0x16278c){const _0x162a34=a1145_0x5b9a29,_0x53d04c=this;this['sequence'][_0x162a34(0xe7)](function(){const _0x1ed838=_0x162a34;return _0x53d04c[_0x1ed838(0xe4)]['addIndex'](_0x2f89c6,_0x598991,{'indexName':_0x16278c})[_0x1ed838(0xf7)](function(){const _0x2a2f23=_0x1ed838;logger[_0x2a2f23(0xda)](_0x2a2f23(0xef),_0x2f89c6,_0x598991['join'](','),_0x16278c);})[_0x1ed838(0xe6)](function(_0x4be27a){const _0x538ee6=_0x1ed838;logger[_0x538ee6(0xda)](JSON[_0x538ee6(0xde)](_0x4be27a));});});},Migration[a1145_0x5b9a29(0xf5)][a1145_0x5b9a29(0xec)]=function(_0x123cb7,_0x3e9ced){const _0x341699=a1145_0x5b9a29,_0x29156e=this;this[_0x341699(0xe8)][_0x341699(0xe7)](function(){const _0x2196ef=_0x341699;return _0x29156e[_0x2196ef(0xe4)][_0x2196ef(0xec)](_0x123cb7,_0x3e9ced)['then'](function(){const _0x1b9c79=_0x2196ef;logger[_0x1b9c79(0xda)](_0x1b9c79(0xf3),_0x123cb7,_0x3e9ced);})[_0x2196ef(0xe6)](function(_0x66f45f){const _0x240adf=_0x2196ef;logger['info'](JSON[_0x240adf(0xde)](_0x66f45f));});});},Migration['prototype'][a1145_0x5b9a29(0xee)]=function(_0x31ef3f){const _0x52240a=a1145_0x5b9a29,_0x20a96d=this;this[_0x52240a(0xe8)]['enqueue'](function(){const _0x4491c0=_0x52240a;return _0x20a96d[_0x4491c0(0xe4)]['sequelize']['query'](_0x31ef3f)['then'](function(){const _0x131ef0=_0x4491c0;logger[_0x131ef0(0xda)](_0x131ef0(0xea),_0x31ef3f);})[_0x4491c0(0xe6)](function(_0x202703){const _0x2475cf=_0x4491c0;logger['info'](JSON[_0x2475cf(0xde)](_0x202703));});});},Migration[a1145_0x5b9a29(0xf5)][a1145_0x5b9a29(0xeb)]=function(_0x2492fb,_0x2dda77){const _0x2b2e2c=a1145_0x5b9a29,_0x520d83=this;this[_0x2b2e2c(0xe8)][_0x2b2e2c(0xe7)](function(){const _0x12ec6a=_0x2b2e2c;return _0x520d83[_0x12ec6a(0xe4)][_0x12ec6a(0xeb)](_0x2492fb,_0x2dda77)[_0x12ec6a(0xf7)](function(){const _0x4f1dd9=_0x12ec6a;logger[_0x4f1dd9(0xda)](_0x4f1dd9(0xe1),_0x2dda77,_0x2492fb);})[_0x12ec6a(0xe6)](function(_0x3c576a){const _0xa302a7=_0x12ec6a;logger[_0xa302a7(0xda)](util['inspect'](_0x3c576a,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x5cfef2,_0x58de30,_0x20918e){const _0x48b110=a1145_0x5b9a29,_0x4a7016=this;this['sequence'][_0x48b110(0xe7)](function(){const _0x43bec8=_0x48b110;return _0x4a7016[_0x43bec8(0xe4)][_0x43bec8(0xe3)](_0x5cfef2,_0x58de30,_0x20918e)[_0x43bec8(0xf7)](function(){const _0x3e3ba2=_0x43bec8;logger[_0x3e3ba2(0xda)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x58de30,_0x20918e,_0x5cfef2);})[_0x43bec8(0xe6)](function(_0x3dd4a4){const _0x84322d=_0x43bec8;logger[_0x84322d(0xda)](util[_0x84322d(0xe2)](_0x3dd4a4,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1145_0x5b9a29(0xed)]=function(_0x290881){const _0x5dc597=a1145_0x5b9a29;this[_0x5dc597(0xe8)][_0x5dc597(0xe7)](function(){return _0x290881();});},module[a1145_0x5b9a29(0xdf)]={'up':function(_0x1fd100){return new Promise(function(_0x542ea2){const _0x42be5d=a1145_0xd0d1,_0x3282e0=new Migration(_0x1fd100);_0x3282e0[_0x42be5d(0xed)](_0x542ea2);});},'down':function(){}};
\ No newline at end of file