Built motion from commit 362b9399b4d0ed5560fbb795af995925d345fc38. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.14.js
index 134fdf8..7adebaf 100644 (file)
@@ -1 +1 @@
-const a1161_0x10b5=['removeColumn','final','prototype','table\x20dropped\x20%s','util','sequelize','../config/logger','sequence','dropTable','finally','query\x20%s','inspect','addIndex','Removed\x20column\x20%s\x20from\x20%s','info','indicesType','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','join','renameColumn','then','addColumn','migration','exports','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','queryInterface','stringify','removeIndex','changeColumn','catch','tail'];(function(_0x3d7c83,_0x137f0e){const _0x10b578=function(_0x286486){while(--_0x286486){_0x3d7c83['push'](_0x3d7c83['shift']());}};_0x10b578(++_0x137f0e);}(a1161_0x10b5,0x124));const a1161_0x2864=function(_0x3d7c83,_0x137f0e){_0x3d7c83=_0x3d7c83-0x75;let _0x10b578=a1161_0x10b5[_0x3d7c83];return _0x10b578;};const a1161_0x480188=a1161_0x2864;'use strict';const util=require(a1161_0x480188(0x75)),logger=require(a1161_0x480188(0x77))(a1161_0x480188(0x87)),Sequence=function(){};Sequence[a1161_0x480188(0x93)][a1161_0x480188(0x81)]=function(_0x4e3cad){const _0x3cbde1=a1161_0x480188;this['tail']=this['tail']?this[_0x3cbde1(0x90)][_0x3cbde1(0x7a)](_0x4e3cad):_0x4e3cad();};const Migration=function(_0x394e98){const _0x1398d1=a1161_0x480188;this[_0x1398d1(0x8b)]=_0x394e98,this[_0x1398d1(0x78)]=new Sequence();};Migration[a1161_0x480188(0x93)][a1161_0x480188(0x8e)]=function(_0x55cc69,_0x5c187f,_0x247678){const _0x320350=a1161_0x480188,_0x26d9c6=this;this[_0x320350(0x78)]['enqueue'](function(){const _0x4c4d20=_0x320350;return _0x26d9c6[_0x4c4d20(0x8b)][_0x4c4d20(0x8e)](_0x55cc69,_0x5c187f,_0x247678)[_0x4c4d20(0x85)](function(){const _0x2374f3=_0x4c4d20;logger[_0x2374f3(0x7f)](_0x2374f3(0x82),_0x5c187f,_0x55cc69);})[_0x4c4d20(0x8f)](function(_0x275e45){const _0x13a883=_0x4c4d20;logger[_0x13a883(0x7f)](JSON[_0x13a883(0x8c)](_0x275e45));});});},Migration[a1161_0x480188(0x93)][a1161_0x480188(0x86)]=function(_0x4ca882,_0x5becbf,_0x3a9dfc){const _0x4477ce=a1161_0x480188,_0xc33ea3=this;this['sequence'][_0x4477ce(0x81)](function(){const _0x4edbc6=_0x4477ce;return _0xc33ea3[_0x4edbc6(0x8b)][_0x4edbc6(0x86)](_0x4ca882,_0x5becbf,_0x3a9dfc)[_0x4edbc6(0x85)](function(){const _0x3fe21d=_0x4edbc6;logger[_0x3fe21d(0x7f)]('Added\x20column\x20%s\x20to\x20%s',_0x5becbf,_0x4ca882);})[_0x4edbc6(0x8f)](function(_0x115da6){const _0xd045b5=_0x4edbc6;logger['info'](JSON[_0xd045b5(0x8c)](_0x115da6));});});},Migration[a1161_0x480188(0x93)]['dropTable']=function(_0x4908f2){const _0x40f8c1=a1161_0x480188,_0xc2df38=this;this[_0x40f8c1(0x78)][_0x40f8c1(0x81)](function(){const _0x7fa050=_0x40f8c1;return _0xc2df38[_0x7fa050(0x8b)][_0x7fa050(0x79)](_0x4908f2,{'force':!![]})[_0x7fa050(0x85)](function(){const _0x474c30=_0x7fa050;logger[_0x474c30(0x7f)](_0x474c30(0x94),_0x4908f2);})[_0x7fa050(0x8f)](function(_0x512054){const _0xc17c77=_0x7fa050;logger[_0xc17c77(0x7f)](JSON[_0xc17c77(0x8c)](_0x512054));});});},Migration[a1161_0x480188(0x93)][a1161_0x480188(0x7d)]=function(_0x43014d,_0x41d8e7,_0x614322){const _0x656490=a1161_0x480188,_0x529605=this;this[_0x656490(0x78)][_0x656490(0x81)](function(){const _0x33ac38=_0x656490;return _0x529605[_0x33ac38(0x8b)][_0x33ac38(0x7d)](_0x43014d,_0x41d8e7,{'indexName':_0x614322['indexName'],'indicesType':_0x614322[_0x33ac38(0x80)]})['then'](function(){const _0x553d73=_0x33ac38;logger[_0x553d73(0x7f)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x43014d,_0x41d8e7[_0x553d73(0x83)](','),_0x614322['indexName'],_0x614322['indicesType']);})['catch'](function(_0x316e11){const _0x5b1ce9=_0x33ac38;logger['info'](JSON[_0x5b1ce9(0x8c)](_0x316e11));});});},Migration['prototype'][a1161_0x480188(0x8d)]=function(_0x82ff4a,_0x2c2761){const _0x2a7c3e=a1161_0x480188,_0x4ec8cf=this;this[_0x2a7c3e(0x78)][_0x2a7c3e(0x81)](function(){const _0x52d9b7=_0x2a7c3e;return _0x4ec8cf[_0x52d9b7(0x8b)][_0x52d9b7(0x8d)](_0x82ff4a,_0x2c2761)[_0x52d9b7(0x85)](function(){const _0x2514dd=_0x52d9b7;logger[_0x2514dd(0x7f)]('removeIndex\x20%s\x20%s',_0x82ff4a,_0x2c2761);})[_0x52d9b7(0x8f)](function(_0x2c7951){const _0x5f5da5=_0x52d9b7;logger['info'](JSON[_0x5f5da5(0x8c)](_0x2c7951));});});},Migration[a1161_0x480188(0x93)][a1161_0x480188(0x8a)]=function(_0x1b2441){const _0x2790ad=a1161_0x480188,_0x35b380=this;this[_0x2790ad(0x78)][_0x2790ad(0x81)](function(){const _0x11ba87=_0x2790ad;return _0x35b380[_0x11ba87(0x8b)][_0x11ba87(0x76)][_0x11ba87(0x8a)](_0x1b2441)[_0x11ba87(0x85)](function(){const _0xcd303b=_0x11ba87;logger['info'](_0xcd303b(0x7b),_0x1b2441);})[_0x11ba87(0x8f)](function(_0x395e0f){const _0x2e7d7c=_0x11ba87;logger[_0x2e7d7c(0x7f)](JSON[_0x2e7d7c(0x8c)](_0x395e0f));});});},Migration[a1161_0x480188(0x93)][a1161_0x480188(0x91)]=function(_0x215739,_0xbb97a3){const _0xf3285c=a1161_0x480188,_0x131a22=this;this[_0xf3285c(0x78)][_0xf3285c(0x81)](function(){const _0x4124cd=_0xf3285c;return _0x131a22['queryInterface'][_0x4124cd(0x91)](_0x215739,_0xbb97a3)[_0x4124cd(0x85)](function(){const _0x30a889=_0x4124cd;logger[_0x30a889(0x7f)](_0x30a889(0x7e),_0xbb97a3,_0x215739);})[_0x4124cd(0x8f)](function(_0x5bb768){const _0x45990e=_0x4124cd;logger[_0x45990e(0x7f)](util['inspect'](_0x5bb768,{'showHidden':![],'depth':null}));});});},Migration[a1161_0x480188(0x93)][a1161_0x480188(0x84)]=function(_0x35d846,_0x191bb1,_0x3df8f5){const _0x321b37=a1161_0x480188,_0x18a3f5=this;this['sequence'][_0x321b37(0x81)](function(){const _0x20b717=_0x321b37;return _0x18a3f5[_0x20b717(0x8b)][_0x20b717(0x84)](_0x35d846,_0x191bb1,_0x3df8f5)[_0x20b717(0x85)](function(){const _0x475ef1=_0x20b717;logger[_0x475ef1(0x7f)](_0x475ef1(0x89),_0x191bb1,_0x3df8f5,_0x35d846);})[_0x20b717(0x8f)](function(_0x131ff5){const _0x385ca0=_0x20b717;logger[_0x385ca0(0x7f)](util[_0x385ca0(0x7c)](_0x131ff5,{'showHidden':![],'depth':null}));});});},Migration[a1161_0x480188(0x93)][a1161_0x480188(0x92)]=function(_0x140af0){const _0x805bae=a1161_0x480188;this[_0x805bae(0x78)][_0x805bae(0x81)](function(){return _0x140af0();});},module[a1161_0x480188(0x88)]={'up':function(_0x217414){return new Promise(function(_0x462a1b){const _0x490169=new Migration(_0x217414);_0x490169['final'](_0x462a1b);});},'down':function(){}};
\ No newline at end of file
+const a1161_0x27f3=['addIndex\x20%s\x20%s\x20%s\x20[%s]','stringify','tail','removeIndex','migration','info','addColumn','indicesType','changeColumn','catch','util','query\x20%s','dropTable','queryInterface','removeIndex\x20%s\x20%s','indexName','enqueue','removeColumn','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','../config/logger','inspect','prototype','final','exports','query','addIndex','table\x20dropped\x20%s','finally','sequence','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','then','join'];(function(_0x422377,_0x1789c8){const _0x27f32c=function(_0x4f2f74){while(--_0x4f2f74){_0x422377['push'](_0x422377['shift']());}};_0x27f32c(++_0x1789c8);}(a1161_0x27f3,0xf2));const a1161_0x4f2f=function(_0x422377,_0x1789c8){_0x422377=_0x422377-0x13c;let _0x27f32c=a1161_0x27f3[_0x422377];return _0x27f32c;};const a1161_0x1a0dc4=a1161_0x4f2f;'use strict';const util=require(a1161_0x1a0dc4(0x142)),logger=require(a1161_0x1a0dc4(0x14c))(a1161_0x1a0dc4(0x13c)),Sequence=function(){};Sequence[a1161_0x1a0dc4(0x14e)][a1161_0x1a0dc4(0x148)]=function(_0x24a531){const _0x35d086=a1161_0x1a0dc4;this[_0x35d086(0x15c)]=this[_0x35d086(0x15c)]?this[_0x35d086(0x15c)][_0x35d086(0x154)](_0x24a531):_0x24a531();};const Migration=function(_0x266c24){const _0x58dd6f=a1161_0x1a0dc4;this['queryInterface']=_0x266c24,this[_0x58dd6f(0x155)]=new Sequence();};Migration['prototype'][a1161_0x1a0dc4(0x140)]=function(_0x185afb,_0x5e857d,_0x5b4e8c){const _0x106927=a1161_0x1a0dc4,_0x17a07d=this;this[_0x106927(0x155)][_0x106927(0x148)](function(){const _0x50f8de=_0x106927;return _0x17a07d['queryInterface'][_0x50f8de(0x140)](_0x185afb,_0x5e857d,_0x5b4e8c)['then'](function(){const _0x2b548a=_0x50f8de;logger[_0x2b548a(0x13d)](_0x2b548a(0x157),_0x5e857d,_0x185afb);})[_0x50f8de(0x141)](function(_0x580ab7){const _0x345f0a=_0x50f8de;logger[_0x345f0a(0x13d)](JSON[_0x345f0a(0x15b)](_0x580ab7));});});},Migration['prototype'][a1161_0x1a0dc4(0x13e)]=function(_0x14c57f,_0x180634,_0x143d5d){const _0x412f94=a1161_0x1a0dc4,_0x23b7e2=this;this[_0x412f94(0x155)]['enqueue'](function(){const _0x54adeb=_0x412f94;return _0x23b7e2[_0x54adeb(0x145)]['addColumn'](_0x14c57f,_0x180634,_0x143d5d)[_0x54adeb(0x158)](function(){const _0x45c75b=_0x54adeb;logger[_0x45c75b(0x13d)](_0x45c75b(0x14a),_0x180634,_0x14c57f);})[_0x54adeb(0x141)](function(_0x59f7ca){logger['info'](JSON['stringify'](_0x59f7ca));});});},Migration['prototype'][a1161_0x1a0dc4(0x144)]=function(_0x5d5471){const _0x135c8a=a1161_0x1a0dc4,_0x5df982=this;this['sequence'][_0x135c8a(0x148)](function(){const _0x2af255=_0x135c8a;return _0x5df982['queryInterface']['dropTable'](_0x5d5471,{'force':!![]})[_0x2af255(0x158)](function(){const _0x2f01f2=_0x2af255;logger['info'](_0x2f01f2(0x153),_0x5d5471);})[_0x2af255(0x141)](function(_0x5b60e2){const _0x2d88a0=_0x2af255;logger['info'](JSON[_0x2d88a0(0x15b)](_0x5b60e2));});});},Migration['prototype'][a1161_0x1a0dc4(0x152)]=function(_0x499791,_0x47d2fc,_0x5351d9){const _0x97d947=a1161_0x1a0dc4,_0x3392dd=this;this[_0x97d947(0x155)][_0x97d947(0x148)](function(){const _0x255589=_0x97d947;return _0x3392dd['queryInterface'][_0x255589(0x152)](_0x499791,_0x47d2fc,{'indexName':_0x5351d9[_0x255589(0x147)],'indicesType':_0x5351d9[_0x255589(0x13f)]})[_0x255589(0x158)](function(){const _0xe579c5=_0x255589;logger['info'](_0xe579c5(0x15a),_0x499791,_0x47d2fc[_0xe579c5(0x159)](','),_0x5351d9[_0xe579c5(0x147)],_0x5351d9[_0xe579c5(0x13f)]);})[_0x255589(0x141)](function(_0x7a1166){const _0x5681f5=_0x255589;logger[_0x5681f5(0x13d)](JSON[_0x5681f5(0x15b)](_0x7a1166));});});},Migration['prototype']['removeIndex']=function(_0x2766aa,_0x512c16){const _0x39a55b=this;this['sequence']['enqueue'](function(){const _0x409e91=a1161_0x4f2f;return _0x39a55b[_0x409e91(0x145)][_0x409e91(0x15d)](_0x2766aa,_0x512c16)[_0x409e91(0x158)](function(){const _0x20af96=_0x409e91;logger[_0x20af96(0x13d)](_0x20af96(0x146),_0x2766aa,_0x512c16);})[_0x409e91(0x141)](function(_0x5714af){const _0x455053=_0x409e91;logger[_0x455053(0x13d)](JSON[_0x455053(0x15b)](_0x5714af));});});},Migration[a1161_0x1a0dc4(0x14e)]['query']=function(_0x8ebe07){const _0x21bf08=a1161_0x1a0dc4,_0x10f435=this;this[_0x21bf08(0x155)][_0x21bf08(0x148)](function(){const _0x1213da=_0x21bf08;return _0x10f435[_0x1213da(0x145)]['sequelize'][_0x1213da(0x151)](_0x8ebe07)['then'](function(){const _0x38847c=_0x1213da;logger[_0x38847c(0x13d)](_0x38847c(0x143),_0x8ebe07);})['catch'](function(_0x40f0cd){const _0x4dd6ba=_0x1213da;logger['info'](JSON[_0x4dd6ba(0x15b)](_0x40f0cd));});});},Migration[a1161_0x1a0dc4(0x14e)]['removeColumn']=function(_0x47003f,_0x5d0bcf){const _0x23d004=a1161_0x1a0dc4,_0x4a0da1=this;this[_0x23d004(0x155)][_0x23d004(0x148)](function(){const _0x40da4a=_0x23d004;return _0x4a0da1[_0x40da4a(0x145)][_0x40da4a(0x149)](_0x47003f,_0x5d0bcf)[_0x40da4a(0x158)](function(){const _0x1e239f=_0x40da4a;logger[_0x1e239f(0x13d)]('Removed\x20column\x20%s\x20from\x20%s',_0x5d0bcf,_0x47003f);})[_0x40da4a(0x141)](function(_0xb4409d){const _0x4bb18d=_0x40da4a;logger['info'](util[_0x4bb18d(0x14d)](_0xb4409d,{'showHidden':![],'depth':null}));});});},Migration[a1161_0x1a0dc4(0x14e)][a1161_0x1a0dc4(0x156)]=function(_0x12b0aa,_0x91468,_0x9f5c){const _0x2ab838=a1161_0x1a0dc4,_0x4c9354=this;this[_0x2ab838(0x155)][_0x2ab838(0x148)](function(){const _0x456953=_0x2ab838;return _0x4c9354[_0x456953(0x145)]['renameColumn'](_0x12b0aa,_0x91468,_0x9f5c)[_0x456953(0x158)](function(){const _0x5ced47=_0x456953;logger[_0x5ced47(0x13d)](_0x5ced47(0x14b),_0x91468,_0x9f5c,_0x12b0aa);})[_0x456953(0x141)](function(_0x19cfc4){const _0x13dd24=_0x456953;logger[_0x13dd24(0x13d)](util[_0x13dd24(0x14d)](_0x19cfc4,{'showHidden':![],'depth':null}));});});},Migration[a1161_0x1a0dc4(0x14e)]['final']=function(_0x5cf6c0){const _0x536b61=a1161_0x1a0dc4;this['sequence'][_0x536b61(0x148)](function(){return _0x5cf6c0();});},module[a1161_0x1a0dc4(0x150)]={'up':function(_0x790214){return new Promise(function(_0xbabce3){const _0xfc1033=a1161_0x4f2f,_0xeb5059=new Migration(_0x790214);_0xeb5059[_0xfc1033(0x14f)](_0xbabce3);});},'down':function(){}};
\ No newline at end of file