Built motion from commit 362b9399b4d0ed5560fbb795af995925d345fc38. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.9.js
index 90a02b1..7bf98d5 100644 (file)
@@ -1 +1 @@
-const a1146_0x2a8a=['enqueue','queryInterface','util','table\x20dropped\x20%s','indicesType','then','sequence','addIndex\x20%s\x20%s\x20%s\x20[%s]','Removed\x20column\x20%s\x20from\x20%s','catch','finally','tail','removeColumn','addColumn','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','indexName','exports','dropTable','prototype','removeIndex','../config/logger','removeIndex\x20%s\x20%s','query','stringify','sequelize','addIndex','inspect','join','renameColumn','info'];(function(_0x5162e2,_0x5187c6){const _0x2a8a5a=function(_0x4ba617){while(--_0x4ba617){_0x5162e2['push'](_0x5162e2['shift']());}};_0x2a8a5a(++_0x5187c6);}(a1146_0x2a8a,0x98));const a1146_0x4ba6=function(_0x5162e2,_0x5187c6){_0x5162e2=_0x5162e2-0xa0;let _0x2a8a5a=a1146_0x2a8a[_0x5162e2];return _0x2a8a5a;};const a1146_0x45416e=a1146_0x4ba6;'use strict';const util=require(a1146_0x45416e(0xa5)),logger=require(a1146_0x45416e(0xb8))('migration'),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x287fb7){const _0x2663e8=a1146_0x45416e;this['tail']=this[_0x2663e8(0xae)]?this[_0x2663e8(0xae)][_0x2663e8(0xad)](_0x287fb7):_0x287fb7();};const Migration=function(_0xe34926){const _0x2c93bd=a1146_0x45416e;this[_0x2c93bd(0xa4)]=_0xe34926,this[_0x2c93bd(0xa9)]=new Sequence();};Migration[a1146_0x45416e(0xb6)]['changeColumn']=function(_0x52dd3c,_0x4a17cd,_0x2ef37a){const _0x53fb72=a1146_0x45416e,_0x5bb809=this;this[_0x53fb72(0xa9)][_0x53fb72(0xa3)](function(){const _0x468e4c=_0x53fb72;return _0x5bb809[_0x468e4c(0xa4)]['changeColumn'](_0x52dd3c,_0x4a17cd,_0x2ef37a)[_0x468e4c(0xa8)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4a17cd,_0x52dd3c);})['catch'](function(_0x50484b){const _0x49da0e=_0x468e4c;logger[_0x49da0e(0xa2)](JSON[_0x49da0e(0xbb)](_0x50484b));});});},Migration['prototype'][a1146_0x45416e(0xb0)]=function(_0x33a763,_0x26f266,_0x50ff33){const _0x2b6c2b=a1146_0x45416e,_0x1fa2a3=this;this['sequence'][_0x2b6c2b(0xa3)](function(){const _0x311c18=_0x2b6c2b;return _0x1fa2a3[_0x311c18(0xa4)][_0x311c18(0xb0)](_0x33a763,_0x26f266,_0x50ff33)[_0x311c18(0xa8)](function(){const _0x4ec969=_0x311c18;logger[_0x4ec969(0xa2)]('Added\x20column\x20%s\x20to\x20%s',_0x26f266,_0x33a763);})[_0x311c18(0xac)](function(_0x190067){const _0x143635=_0x311c18;logger['info'](JSON[_0x143635(0xbb)](_0x190067));});});},Migration[a1146_0x45416e(0xb6)]['dropTable']=function(_0x1c11fc){const _0x37c57d=a1146_0x45416e,_0x4998e4=this;this['sequence'][_0x37c57d(0xa3)](function(){const _0x3e5158=_0x37c57d;return _0x4998e4[_0x3e5158(0xa4)][_0x3e5158(0xb5)](_0x1c11fc,{'force':!![]})[_0x3e5158(0xa8)](function(){const _0x171c8b=_0x3e5158;logger[_0x171c8b(0xa2)](_0x171c8b(0xa6),_0x1c11fc);})['catch'](function(_0x48e413){const _0x216dd6=_0x3e5158;logger[_0x216dd6(0xa2)](JSON[_0x216dd6(0xbb)](_0x48e413));});});},Migration[a1146_0x45416e(0xb6)][a1146_0x45416e(0xbd)]=function(_0x44d9f4,_0x1f2652,_0x3ac3cf){const _0x2d6c6c=a1146_0x45416e,_0x2ae8ba=this;this[_0x2d6c6c(0xa9)][_0x2d6c6c(0xa3)](function(){const _0xeb6dd=_0x2d6c6c;return _0x2ae8ba[_0xeb6dd(0xa4)][_0xeb6dd(0xbd)](_0x44d9f4,_0x1f2652,{'indexName':_0x3ac3cf[_0xeb6dd(0xb3)],'indicesType':_0x3ac3cf[_0xeb6dd(0xa7)]})[_0xeb6dd(0xa8)](function(){const _0x3da940=_0xeb6dd;logger['info'](_0x3da940(0xaa),_0x44d9f4,_0x1f2652[_0x3da940(0xa0)](','),_0x3ac3cf[_0x3da940(0xb3)],_0x3ac3cf['indicesType']);})['catch'](function(_0x2df4a8){const _0x33c699=_0xeb6dd;logger['info'](JSON[_0x33c699(0xbb)](_0x2df4a8));});});},Migration[a1146_0x45416e(0xb6)][a1146_0x45416e(0xb7)]=function(_0xa1f497,_0x32eeaf){const _0xe1835c=a1146_0x45416e,_0x4c75e0=this;this[_0xe1835c(0xa9)][_0xe1835c(0xa3)](function(){const _0x4e056b=_0xe1835c;return _0x4c75e0[_0x4e056b(0xa4)][_0x4e056b(0xb7)](_0xa1f497,_0x32eeaf)[_0x4e056b(0xa8)](function(){const _0x5ba680=_0x4e056b;logger[_0x5ba680(0xa2)](_0x5ba680(0xb9),_0xa1f497,_0x32eeaf);})['catch'](function(_0x4b81a4){const _0x593444=_0x4e056b;logger[_0x593444(0xa2)](JSON[_0x593444(0xbb)](_0x4b81a4));});});},Migration[a1146_0x45416e(0xb6)][a1146_0x45416e(0xba)]=function(_0x1b0fce){const _0x5abba1=a1146_0x45416e,_0x3b514e=this;this[_0x5abba1(0xa9)][_0x5abba1(0xa3)](function(){const _0x4c915e=_0x5abba1;return _0x3b514e[_0x4c915e(0xa4)][_0x4c915e(0xbc)]['query'](_0x1b0fce)['then'](function(){const _0x408d3d=_0x4c915e;logger[_0x408d3d(0xa2)]('query\x20%s',_0x1b0fce);})['catch'](function(_0x34db86){const _0x5155f4=_0x4c915e;logger['info'](JSON[_0x5155f4(0xbb)](_0x34db86));});});},Migration['prototype'][a1146_0x45416e(0xaf)]=function(_0x189cf5,_0x4a6608){const _0x126c71=a1146_0x45416e,_0xee6534=this;this[_0x126c71(0xa9)]['enqueue'](function(){const _0xf7bb91=_0x126c71;return _0xee6534[_0xf7bb91(0xa4)][_0xf7bb91(0xaf)](_0x189cf5,_0x4a6608)[_0xf7bb91(0xa8)](function(){const _0x39847b=_0xf7bb91;logger[_0x39847b(0xa2)](_0x39847b(0xab),_0x4a6608,_0x189cf5);})[_0xf7bb91(0xac)](function(_0x593a3c){const _0x43d591=_0xf7bb91;logger['info'](util[_0x43d591(0xbe)](_0x593a3c,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1146_0x45416e(0xa1)]=function(_0x2af082,_0xb0b6f4,_0x44de6c){const _0x525b8a=a1146_0x45416e,_0x441ab8=this;this['sequence'][_0x525b8a(0xa3)](function(){const _0xa34cfd=_0x525b8a;return _0x441ab8[_0xa34cfd(0xa4)]['renameColumn'](_0x2af082,_0xb0b6f4,_0x44de6c)['then'](function(){const _0x54bfcc=_0xa34cfd;logger['info'](_0x54bfcc(0xb2),_0xb0b6f4,_0x44de6c,_0x2af082);})['catch'](function(_0x476733){const _0x508f3c=_0xa34cfd;logger['info'](util[_0x508f3c(0xbe)](_0x476733,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1146_0x45416e(0xb1)]=function(_0x1e1560){const _0x529deb=a1146_0x45416e;this[_0x529deb(0xa9)]['enqueue'](function(){return _0x1e1560();});},module[a1146_0x45416e(0xb4)]={'up':function(_0x28338a){return new Promise(function(_0x1eb2b5){const _0x4bd8d0=a1146_0x4ba6,_0x1120f8=new Migration(_0x28338a);_0x1120f8[_0x4bd8d0(0xb1)](_0x1eb2b5);});},'down':function(){}};
\ No newline at end of file
+const a1146_0x5ddd=['query','join','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','util','info','then','final','query\x20%s','table\x20dropped\x20%s','indicesType','enqueue','tail','renameColumn','prototype','queryInterface','changeColumn','finally','catch','exports','sequence','sequelize','dropTable','addIndex','removeIndex\x20%s\x20%s','removeIndex','Added\x20column\x20%s\x20to\x20%s','removeColumn','inspect'];(function(_0x2234fa,_0x4c4913){const _0x5ddda6=function(_0x5c889d){while(--_0x5c889d){_0x2234fa['push'](_0x2234fa['shift']());}};_0x5ddda6(++_0x4c4913);}(a1146_0x5ddd,0x137));const a1146_0x5c88=function(_0x2234fa,_0x4c4913){_0x2234fa=_0x2234fa-0xe7;let _0x5ddda6=a1146_0x5ddd[_0x2234fa];return _0x5ddda6;};const a1146_0x59198a=a1146_0x5c88;'use strict';const util=require(a1146_0x59198a(0xf3)),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x209c8a){const _0x3d5c06=a1146_0x59198a;this[_0x3d5c06(0xfb)]=this[_0x3d5c06(0xfb)]?this[_0x3d5c06(0xfb)][_0x3d5c06(0x100)](_0x209c8a):_0x209c8a();};const Migration=function(_0x8e4758){const _0x35975b=a1146_0x59198a;this[_0x35975b(0xfe)]=_0x8e4758,this[_0x35975b(0x103)]=new Sequence();};Migration[a1146_0x59198a(0xfd)]['changeColumn']=function(_0x3a6458,_0x4be370,_0x212eb3){const _0x24b632=a1146_0x59198a,_0x3ca2bd=this;this['sequence'][_0x24b632(0xfa)](function(){const _0x5db9ed=_0x24b632;return _0x3ca2bd[_0x5db9ed(0xfe)][_0x5db9ed(0xff)](_0x3a6458,_0x4be370,_0x212eb3)[_0x5db9ed(0xf5)](function(){const _0x34e4c5=_0x5db9ed;logger[_0x34e4c5(0xf4)](_0x34e4c5(0xf1),_0x4be370,_0x3a6458);})[_0x5db9ed(0x101)](function(_0x3ddded){const _0x1aebae=_0x5db9ed;logger[_0x1aebae(0xf4)](JSON['stringify'](_0x3ddded));});});},Migration[a1146_0x59198a(0xfd)]['addColumn']=function(_0x4ccdee,_0x32c0d2,_0xd504ab){const _0x547fee=a1146_0x59198a,_0x4ac399=this;this[_0x547fee(0x103)][_0x547fee(0xfa)](function(){const _0x36bdec=_0x547fee;return _0x4ac399[_0x36bdec(0xfe)]['addColumn'](_0x4ccdee,_0x32c0d2,_0xd504ab)[_0x36bdec(0xf5)](function(){const _0xb4a308=_0x36bdec;logger[_0xb4a308(0xf4)](_0xb4a308(0xec),_0x32c0d2,_0x4ccdee);})[_0x36bdec(0x101)](function(_0x3e9b2d){const _0x2f9830=_0x36bdec;logger[_0x2f9830(0xf4)](JSON[_0x2f9830(0xf2)](_0x3e9b2d));});});},Migration[a1146_0x59198a(0xfd)][a1146_0x59198a(0xe8)]=function(_0xbd7369){const _0x50872a=a1146_0x59198a,_0x93fcfd=this;this[_0x50872a(0x103)][_0x50872a(0xfa)](function(){const _0x1d64fe=_0x50872a;return _0x93fcfd[_0x1d64fe(0xfe)][_0x1d64fe(0xe8)](_0xbd7369,{'force':!![]})[_0x1d64fe(0xf5)](function(){const _0x24122d=_0x1d64fe;logger[_0x24122d(0xf4)](_0x24122d(0xf8),_0xbd7369);})[_0x1d64fe(0x101)](function(_0x4e5468){const _0x1f933e=_0x1d64fe;logger[_0x1f933e(0xf4)](JSON[_0x1f933e(0xf2)](_0x4e5468));});});},Migration[a1146_0x59198a(0xfd)][a1146_0x59198a(0xe9)]=function(_0x53635c,_0x5ed5c9,_0x4aa47c){const _0x1f1f2f=a1146_0x59198a,_0x30ba59=this;this[_0x1f1f2f(0x103)][_0x1f1f2f(0xfa)](function(){const _0x2fea25=_0x1f1f2f;return _0x30ba59[_0x2fea25(0xfe)][_0x2fea25(0xe9)](_0x53635c,_0x5ed5c9,{'indexName':_0x4aa47c['indexName'],'indicesType':_0x4aa47c[_0x2fea25(0xf9)]})[_0x2fea25(0xf5)](function(){const _0x3da32d=_0x2fea25;logger[_0x3da32d(0xf4)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x53635c,_0x5ed5c9[_0x3da32d(0xf0)](','),_0x4aa47c['indexName'],_0x4aa47c['indicesType']);})[_0x2fea25(0x101)](function(_0x565865){const _0x340373=_0x2fea25;logger[_0x340373(0xf4)](JSON[_0x340373(0xf2)](_0x565865));});});},Migration[a1146_0x59198a(0xfd)][a1146_0x59198a(0xeb)]=function(_0x3a2073,_0x3f19da){const _0x2c7596=this;this['sequence']['enqueue'](function(){const _0x3e79a6=a1146_0x5c88;return _0x2c7596[_0x3e79a6(0xfe)][_0x3e79a6(0xeb)](_0x3a2073,_0x3f19da)[_0x3e79a6(0xf5)](function(){const _0x4f518f=_0x3e79a6;logger[_0x4f518f(0xf4)](_0x4f518f(0xea),_0x3a2073,_0x3f19da);})[_0x3e79a6(0x101)](function(_0x15d5a8){const _0x231e28=_0x3e79a6;logger[_0x231e28(0xf4)](JSON[_0x231e28(0xf2)](_0x15d5a8));});});},Migration[a1146_0x59198a(0xfd)][a1146_0x59198a(0xef)]=function(_0x1f35df){const _0x77b094=a1146_0x59198a,_0x1faed7=this;this[_0x77b094(0x103)][_0x77b094(0xfa)](function(){const _0x58e9eb=_0x77b094;return _0x1faed7[_0x58e9eb(0xfe)][_0x58e9eb(0xe7)]['query'](_0x1f35df)[_0x58e9eb(0xf5)](function(){const _0x2bbc07=_0x58e9eb;logger[_0x2bbc07(0xf4)](_0x2bbc07(0xf7),_0x1f35df);})[_0x58e9eb(0x101)](function(_0x34036e){const _0x2120f9=_0x58e9eb;logger[_0x2120f9(0xf4)](JSON[_0x2120f9(0xf2)](_0x34036e));});});},Migration[a1146_0x59198a(0xfd)][a1146_0x59198a(0xed)]=function(_0x42a54b,_0x21a03f){const _0x31e9ab=a1146_0x59198a,_0x879a8f=this;this[_0x31e9ab(0x103)][_0x31e9ab(0xfa)](function(){const _0x525fda=_0x31e9ab;return _0x879a8f['queryInterface'][_0x525fda(0xed)](_0x42a54b,_0x21a03f)[_0x525fda(0xf5)](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x21a03f,_0x42a54b);})[_0x525fda(0x101)](function(_0x4f850d){const _0x5ceebc=_0x525fda;logger[_0x5ceebc(0xf4)](util[_0x5ceebc(0xee)](_0x4f850d,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1146_0x59198a(0xfc)]=function(_0x30757d,_0x32f23a,_0x5c82cb){const _0x3c47f1=a1146_0x59198a,_0x4cbd09=this;this['sequence'][_0x3c47f1(0xfa)](function(){const _0x47442c=_0x3c47f1;return _0x4cbd09['queryInterface'][_0x47442c(0xfc)](_0x30757d,_0x32f23a,_0x5c82cb)[_0x47442c(0xf5)](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x32f23a,_0x5c82cb,_0x30757d);})[_0x47442c(0x101)](function(_0x555369){const _0x59c810=_0x47442c;logger['info'](util[_0x59c810(0xee)](_0x555369,{'showHidden':![],'depth':null}));});});},Migration[a1146_0x59198a(0xfd)]['final']=function(_0x28bbe9){const _0x486203=a1146_0x59198a;this[_0x486203(0x103)][_0x486203(0xfa)](function(){return _0x28bbe9();});},module[a1146_0x59198a(0x102)]={'up':function(_0x57bed1){return new Promise(function(_0x5b3b46){const _0x232734=a1146_0x5c88,_0x59628=new Migration(_0x57bed1);_0x59628[_0x232734(0xf6)](_0x5b3b46);});},'down':function(){}};
\ No newline at end of file