Built motion from commit 362b9399b4d0ed5560fbb795af995925d345fc38. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.9.js
index 9d6ecb7..ad05024 100644 (file)
@@ -1 +1 @@
-const a1176_0xe797=['join','../config/logger','removeIndex','query','sequence','removeColumn','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','util','finally','info','Removed\x20column\x20%s\x20from\x20%s','prototype','then','addIndex\x20%s\x20%s\x20%s\x20[%s]','addColumn','catch','inspect','removeIndex\x20%s\x20%s','changeColumn','renameColumn','indicesType','final','query\x20%s','queryInterface','Changed\x20column\x20%s\x20in\x20table\x20%s','indexName','addIndex','dropTable','stringify','migration','exports','enqueue'];(function(_0x269688,_0x5afa45){const _0xe79703=function(_0x385958){while(--_0x385958){_0x269688['push'](_0x269688['shift']());}};_0xe79703(++_0x5afa45);}(a1176_0xe797,0x193));const a1176_0x3859=function(_0x269688,_0x5afa45){_0x269688=_0x269688-0x1d8;let _0xe79703=a1176_0xe797[_0x269688];return _0xe79703;};const a1176_0x5bbe12=a1176_0x3859;'use strict';const util=require(a1176_0x5bbe12(0x1d9)),logger=require(a1176_0x5bbe12(0x1f3))(a1176_0x5bbe12(0x1ef)),Sequence=function(){};Sequence[a1176_0x5bbe12(0x1dd)]['enqueue']=function(_0x2ee976){const _0x35ed8a=a1176_0x5bbe12;this['tail']=this['tail']?this[_0x35ed8a(0x1f8)][_0x35ed8a(0x1da)](_0x2ee976):_0x2ee976();};const Migration=function(_0x3bc298){const _0x1995ad=a1176_0x5bbe12;this[_0x1995ad(0x1e9)]=_0x3bc298,this['sequence']=new Sequence();};Migration[a1176_0x5bbe12(0x1dd)][a1176_0x5bbe12(0x1e4)]=function(_0x28dc2e,_0x5567b0,_0x1f4d44){const _0x34de3d=a1176_0x5bbe12,_0x602aba=this;this[_0x34de3d(0x1f6)][_0x34de3d(0x1f1)](function(){const _0x1ef4ba=_0x34de3d;return _0x602aba['queryInterface']['changeColumn'](_0x28dc2e,_0x5567b0,_0x1f4d44)[_0x1ef4ba(0x1de)](function(){const _0x803a93=_0x1ef4ba;logger[_0x803a93(0x1db)](_0x803a93(0x1ea),_0x5567b0,_0x28dc2e);})[_0x1ef4ba(0x1e1)](function(_0x1f5686){const _0x2a7920=_0x1ef4ba;logger[_0x2a7920(0x1db)](JSON[_0x2a7920(0x1ee)](_0x1f5686));});});},Migration[a1176_0x5bbe12(0x1dd)][a1176_0x5bbe12(0x1e0)]=function(_0x102152,_0x2d8120,_0x20d2c4){const _0xaa2717=a1176_0x5bbe12,_0x4530af=this;this[_0xaa2717(0x1f6)][_0xaa2717(0x1f1)](function(){const _0x1ee8b9=_0xaa2717;return _0x4530af['queryInterface'][_0x1ee8b9(0x1e0)](_0x102152,_0x2d8120,_0x20d2c4)[_0x1ee8b9(0x1de)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x2d8120,_0x102152);})['catch'](function(_0x4871d1){const _0x534096=_0x1ee8b9;logger[_0x534096(0x1db)](JSON[_0x534096(0x1ee)](_0x4871d1));});});},Migration[a1176_0x5bbe12(0x1dd)][a1176_0x5bbe12(0x1ed)]=function(_0x668d1f){const _0x3559a4=a1176_0x5bbe12,_0x349610=this;this[_0x3559a4(0x1f6)][_0x3559a4(0x1f1)](function(){const _0x4a48ec=_0x3559a4;return _0x349610['queryInterface'][_0x4a48ec(0x1ed)](_0x668d1f,{'force':!![]})['then'](function(){const _0x19fe4f=_0x4a48ec;logger[_0x19fe4f(0x1db)]('table\x20dropped\x20%s',_0x668d1f);})['catch'](function(_0x99282){const _0x254a6b=_0x4a48ec;logger[_0x254a6b(0x1db)](JSON[_0x254a6b(0x1ee)](_0x99282));});});},Migration[a1176_0x5bbe12(0x1dd)][a1176_0x5bbe12(0x1ec)]=function(_0x1490d1,_0x5c2aec,_0x206da7){const _0x54af2c=a1176_0x5bbe12,_0xa33af=this;this[_0x54af2c(0x1f6)][_0x54af2c(0x1f1)](function(){const _0x38ffd5=_0x54af2c;return _0xa33af[_0x38ffd5(0x1e9)][_0x38ffd5(0x1ec)](_0x1490d1,_0x5c2aec,{'indexName':_0x206da7[_0x38ffd5(0x1eb)],'indicesType':_0x206da7[_0x38ffd5(0x1e6)]})[_0x38ffd5(0x1de)](function(){const _0x3eee3f=_0x38ffd5;logger[_0x3eee3f(0x1db)](_0x3eee3f(0x1df),_0x1490d1,_0x5c2aec[_0x3eee3f(0x1f2)](','),_0x206da7[_0x3eee3f(0x1eb)],_0x206da7[_0x3eee3f(0x1e6)]);})[_0x38ffd5(0x1e1)](function(_0x292306){const _0x1427ad=_0x38ffd5;logger[_0x1427ad(0x1db)](JSON[_0x1427ad(0x1ee)](_0x292306));});});},Migration['prototype'][a1176_0x5bbe12(0x1f4)]=function(_0x5a9cbe,_0x2fbe57){const _0x3812b1=a1176_0x5bbe12,_0x19da96=this;this[_0x3812b1(0x1f6)][_0x3812b1(0x1f1)](function(){const _0x266730=_0x3812b1;return _0x19da96['queryInterface']['removeIndex'](_0x5a9cbe,_0x2fbe57)[_0x266730(0x1de)](function(){const _0x1eec5a=_0x266730;logger[_0x1eec5a(0x1db)](_0x1eec5a(0x1e3),_0x5a9cbe,_0x2fbe57);})[_0x266730(0x1e1)](function(_0x39aa88){const _0x9547b5=_0x266730;logger[_0x9547b5(0x1db)](JSON[_0x9547b5(0x1ee)](_0x39aa88));});});},Migration['prototype'][a1176_0x5bbe12(0x1f5)]=function(_0x2cb5c3){const _0x1a6afd=a1176_0x5bbe12,_0x29d136=this;this[_0x1a6afd(0x1f6)][_0x1a6afd(0x1f1)](function(){const _0x3419d8=_0x1a6afd;return _0x29d136[_0x3419d8(0x1e9)]['sequelize'][_0x3419d8(0x1f5)](_0x2cb5c3)[_0x3419d8(0x1de)](function(){const _0x5b0df7=_0x3419d8;logger['info'](_0x5b0df7(0x1e8),_0x2cb5c3);})[_0x3419d8(0x1e1)](function(_0x1332f3){const _0x280071=_0x3419d8;logger['info'](JSON[_0x280071(0x1ee)](_0x1332f3));});});},Migration['prototype']['removeColumn']=function(_0x3d0f37,_0x47d543){const _0x56a305=a1176_0x5bbe12,_0x5f12d4=this;this[_0x56a305(0x1f6)][_0x56a305(0x1f1)](function(){const _0x4b6a78=_0x56a305;return _0x5f12d4[_0x4b6a78(0x1e9)][_0x4b6a78(0x1f7)](_0x3d0f37,_0x47d543)[_0x4b6a78(0x1de)](function(){const _0x3094ca=_0x4b6a78;logger[_0x3094ca(0x1db)](_0x3094ca(0x1dc),_0x47d543,_0x3d0f37);})[_0x4b6a78(0x1e1)](function(_0x3b551b){const _0x298141=_0x4b6a78;logger['info'](util[_0x298141(0x1e2)](_0x3b551b,{'showHidden':![],'depth':null}));});});},Migration[a1176_0x5bbe12(0x1dd)][a1176_0x5bbe12(0x1e5)]=function(_0x426b8d,_0x3248d7,_0x1d9f9c){const _0x702ea5=a1176_0x5bbe12,_0x11b5b8=this;this[_0x702ea5(0x1f6)]['enqueue'](function(){const _0x5adbd0=_0x702ea5;return _0x11b5b8['queryInterface'][_0x5adbd0(0x1e5)](_0x426b8d,_0x3248d7,_0x1d9f9c)[_0x5adbd0(0x1de)](function(){const _0x4407ce=_0x5adbd0;logger[_0x4407ce(0x1db)](_0x4407ce(0x1d8),_0x3248d7,_0x1d9f9c,_0x426b8d);})[_0x5adbd0(0x1e1)](function(_0x2f9797){const _0x4bc852=_0x5adbd0;logger[_0x4bc852(0x1db)](util[_0x4bc852(0x1e2)](_0x2f9797,{'showHidden':![],'depth':null}));});});},Migration[a1176_0x5bbe12(0x1dd)][a1176_0x5bbe12(0x1e7)]=function(_0x2ea5c9){const _0x1a2f70=a1176_0x5bbe12;this[_0x1a2f70(0x1f6)][_0x1a2f70(0x1f1)](function(){return _0x2ea5c9();});},module[a1176_0x5bbe12(0x1f0)]={'up':function(_0x43bf98){return new Promise(function(_0x56c334){const _0x45b57d=a1176_0x3859,_0x49e0b1=new Migration(_0x43bf98);_0x49e0b1[_0x45b57d(0x1e7)](_0x56c334);});},'down':function(){}};
\ No newline at end of file
+const a1176_0x44b2=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','removeColumn','removeIndex\x20%s\x20%s','join','removeIndex','Removed\x20column\x20%s\x20from\x20%s','query','tail','prototype','dropTable','inspect','table\x20dropped\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','catch','Added\x20column\x20%s\x20to\x20%s','addIndex','then','renameColumn','final','indicesType','sequence','query\x20%s','finally','queryInterface','changeColumn','indexName','enqueue','stringify','addColumn','sequelize'];(function(_0x4ecf3a,_0x3f4a61){const _0x44b28b=function(_0x59e353){while(--_0x59e353){_0x4ecf3a['push'](_0x4ecf3a['shift']());}};_0x44b28b(++_0x3f4a61);}(a1176_0x44b2,0xe9));const a1176_0x59e3=function(_0x4ecf3a,_0x3f4a61){_0x4ecf3a=_0x4ecf3a-0xa4;let _0x44b28b=a1176_0x44b2[_0x4ecf3a];return _0x44b28b;};const a1176_0x164b15=a1176_0x59e3;'use strict';const util=require('util'),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[a1176_0x164b15(0xa4)][a1176_0x164b15(0xb7)]=function(_0x3bff0c){const _0x4fa20b=a1176_0x164b15;this[_0x4fa20b(0xc3)]=this['tail']?this[_0x4fa20b(0xc3)][_0x4fa20b(0xb3)](_0x3bff0c):_0x3bff0c();};const Migration=function(_0x279f96){const _0x1545ff=a1176_0x164b15;this['queryInterface']=_0x279f96,this[_0x1545ff(0xb1)]=new Sequence();};Migration[a1176_0x164b15(0xa4)][a1176_0x164b15(0xb5)]=function(_0x3435dc,_0x2a41af,_0x1cab30){const _0x3aac86=a1176_0x164b15,_0x416c92=this;this[_0x3aac86(0xb1)][_0x3aac86(0xb7)](function(){const _0x21c239=_0x3aac86;return _0x416c92[_0x21c239(0xb4)][_0x21c239(0xb5)](_0x3435dc,_0x2a41af,_0x1cab30)[_0x21c239(0xad)](function(){const _0x8ea094=_0x21c239;logger['info'](_0x8ea094(0xa8),_0x2a41af,_0x3435dc);})[_0x21c239(0xaa)](function(_0x2360cd){const _0x2e8927=_0x21c239;logger[_0x2e8927(0xbc)](JSON[_0x2e8927(0xb8)](_0x2360cd));});});},Migration['prototype'][a1176_0x164b15(0xb9)]=function(_0x93042d,_0xbc5d72,_0x3d9f0e){const _0x5e618e=a1176_0x164b15,_0x540d7a=this;this['sequence'][_0x5e618e(0xb7)](function(){const _0x4c187e=_0x5e618e;return _0x540d7a['queryInterface'][_0x4c187e(0xb9)](_0x93042d,_0xbc5d72,_0x3d9f0e)[_0x4c187e(0xad)](function(){const _0xe10db9=_0x4c187e;logger[_0xe10db9(0xbc)](_0xe10db9(0xab),_0xbc5d72,_0x93042d);})[_0x4c187e(0xaa)](function(_0x1eae19){const _0x55ce18=_0x4c187e;logger[_0x55ce18(0xbc)](JSON[_0x55ce18(0xb8)](_0x1eae19));});});},Migration['prototype'][a1176_0x164b15(0xa5)]=function(_0x5a2f7f){const _0x38617e=a1176_0x164b15,_0x41098d=this;this['sequence'][_0x38617e(0xb7)](function(){const _0x2e4330=_0x38617e;return _0x41098d[_0x2e4330(0xb4)][_0x2e4330(0xa5)](_0x5a2f7f,{'force':!![]})[_0x2e4330(0xad)](function(){const _0x216f75=_0x2e4330;logger[_0x216f75(0xbc)](_0x216f75(0xa7),_0x5a2f7f);})[_0x2e4330(0xaa)](function(_0x381bdc){const _0x123f09=_0x2e4330;logger[_0x123f09(0xbc)](JSON[_0x123f09(0xb8)](_0x381bdc));});});},Migration[a1176_0x164b15(0xa4)][a1176_0x164b15(0xac)]=function(_0x2b8bad,_0x4d54fd,_0x3df089){const _0x173c82=a1176_0x164b15,_0x580ffa=this;this[_0x173c82(0xb1)][_0x173c82(0xb7)](function(){const _0x1c6f5e=_0x173c82;return _0x580ffa['queryInterface']['addIndex'](_0x2b8bad,_0x4d54fd,{'indexName':_0x3df089[_0x1c6f5e(0xb6)],'indicesType':_0x3df089[_0x1c6f5e(0xb0)]})[_0x1c6f5e(0xad)](function(){const _0x209322=_0x1c6f5e;logger['info'](_0x209322(0xa9),_0x2b8bad,_0x4d54fd[_0x209322(0xbf)](','),_0x3df089[_0x209322(0xb6)],_0x3df089[_0x209322(0xb0)]);})[_0x1c6f5e(0xaa)](function(_0x578ef7){const _0x252afd=_0x1c6f5e;logger[_0x252afd(0xbc)](JSON[_0x252afd(0xb8)](_0x578ef7));});});},Migration[a1176_0x164b15(0xa4)][a1176_0x164b15(0xc0)]=function(_0x462964,_0x173c00){const _0x22970a=a1176_0x164b15,_0x5c349c=this;this[_0x22970a(0xb1)][_0x22970a(0xb7)](function(){const _0x303969=_0x22970a;return _0x5c349c[_0x303969(0xb4)][_0x303969(0xc0)](_0x462964,_0x173c00)[_0x303969(0xad)](function(){const _0x157def=_0x303969;logger[_0x157def(0xbc)](_0x157def(0xbe),_0x462964,_0x173c00);})[_0x303969(0xaa)](function(_0x27ced4){const _0x2c6895=_0x303969;logger[_0x2c6895(0xbc)](JSON[_0x2c6895(0xb8)](_0x27ced4));});});},Migration[a1176_0x164b15(0xa4)][a1176_0x164b15(0xc2)]=function(_0x40acbc){const _0xaafb0d=a1176_0x164b15,_0x57ff95=this;this['sequence'][_0xaafb0d(0xb7)](function(){const _0x560745=_0xaafb0d;return _0x57ff95[_0x560745(0xb4)][_0x560745(0xba)][_0x560745(0xc2)](_0x40acbc)[_0x560745(0xad)](function(){const _0x315eb1=_0x560745;logger[_0x315eb1(0xbc)](_0x315eb1(0xb2),_0x40acbc);})[_0x560745(0xaa)](function(_0x84a14b){const _0x182b16=_0x560745;logger['info'](JSON[_0x182b16(0xb8)](_0x84a14b));});});},Migration['prototype'][a1176_0x164b15(0xbd)]=function(_0x11e148,_0x55879e){const _0x5df26b=a1176_0x164b15,_0x130255=this;this[_0x5df26b(0xb1)][_0x5df26b(0xb7)](function(){const _0x8df861=_0x5df26b;return _0x130255[_0x8df861(0xb4)]['removeColumn'](_0x11e148,_0x55879e)[_0x8df861(0xad)](function(){const _0x54e30d=_0x8df861;logger[_0x54e30d(0xbc)](_0x54e30d(0xc1),_0x55879e,_0x11e148);})[_0x8df861(0xaa)](function(_0x347690){const _0x3cae95=_0x8df861;logger[_0x3cae95(0xbc)](util[_0x3cae95(0xa6)](_0x347690,{'showHidden':![],'depth':null}));});});},Migration[a1176_0x164b15(0xa4)][a1176_0x164b15(0xae)]=function(_0x43c129,_0x1b7d58,_0xad3361){const _0x3ff234=a1176_0x164b15,_0x438dcd=this;this[_0x3ff234(0xb1)][_0x3ff234(0xb7)](function(){const _0x3e6b70=_0x3ff234;return _0x438dcd[_0x3e6b70(0xb4)][_0x3e6b70(0xae)](_0x43c129,_0x1b7d58,_0xad3361)[_0x3e6b70(0xad)](function(){const _0x2ff85b=_0x3e6b70;logger['info'](_0x2ff85b(0xbb),_0x1b7d58,_0xad3361,_0x43c129);})[_0x3e6b70(0xaa)](function(_0x4ba5de){const _0x270344=_0x3e6b70;logger[_0x270344(0xbc)](util[_0x270344(0xa6)](_0x4ba5de,{'showHidden':![],'depth':null}));});});},Migration[a1176_0x164b15(0xa4)][a1176_0x164b15(0xaf)]=function(_0x274d85){const _0x176a71=a1176_0x164b15;this[_0x176a71(0xb1)][_0x176a71(0xb7)](function(){return _0x274d85();});},module['exports']={'up':function(_0x347578){return new Promise(function(_0x42d22e){const _0x38abd2=a1176_0x59e3,_0x2d79df=new Migration(_0x347578);_0x2d79df[_0x38abd2(0xaf)](_0x42d22e);});},'down':function(){}};
\ No newline at end of file