Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / migrations / 2.5.1.js
index 5a1b39b..268eb6e 100644 (file)
@@ -1 +1 @@
-const a1175_0x2663=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','indexName','query\x20%s','catch','sequelize','util','tail','stringify','join','enqueue','removeIndex\x20%s\x20%s','removeColumn','exports','prototype','finally','addIndex\x20%s\x20%s\x20%s\x20[%s]','renameColumn','final','sequence','Removed\x20column\x20%s\x20from\x20%s','info','addIndex','then','table\x20dropped\x20%s','queryInterface','changeColumn','inspect','query','dropTable','addColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','Added\x20column\x20%s\x20to\x20%s'];(function(_0xdc9f84,_0x3efbdd){const _0x266316=function(_0x264272){while(--_0x264272){_0xdc9f84['push'](_0xdc9f84['shift']());}};_0x266316(++_0x3efbdd);}(a1175_0x2663,0x1a1));const a1175_0x2642=function(_0xdc9f84,_0x3efbdd){_0xdc9f84=_0xdc9f84-0x1bf;let _0x266316=a1175_0x2663[_0xdc9f84];return _0x266316;};const a1175_0x13f7c9=a1175_0x2642;'use strict';const util=require(a1175_0x13f7c9(0x1d0)),logger=require(a1175_0x13f7c9(0x1c9))('migration'),Sequence=function(){};Sequence[a1175_0x13f7c9(0x1d8)][a1175_0x13f7c9(0x1d4)]=function(_0x532872){const _0x47324e=a1175_0x13f7c9;this[_0x47324e(0x1d1)]=this[_0x47324e(0x1d1)]?this[_0x47324e(0x1d1)][_0x47324e(0x1d9)](_0x532872):_0x532872();};const Migration=function(_0x2db190){const _0x5864f3=a1175_0x13f7c9;this[_0x5864f3(0x1c2)]=_0x2db190,this[_0x5864f3(0x1dd)]=new Sequence();};Migration[a1175_0x13f7c9(0x1d8)]['changeColumn']=function(_0x31746e,_0x9988d4,_0x25b74a){const _0x3a2b81=a1175_0x13f7c9,_0x2100bc=this;this[_0x3a2b81(0x1dd)]['enqueue'](function(){const _0x39ce35=_0x3a2b81;return _0x2100bc['queryInterface'][_0x39ce35(0x1c3)](_0x31746e,_0x9988d4,_0x25b74a)[_0x39ce35(0x1c0)](function(){const _0x308ab=_0x39ce35;logger[_0x308ab(0x1df)](_0x308ab(0x1c8),_0x9988d4,_0x31746e);})[_0x39ce35(0x1ce)](function(_0x4a5caa){const _0x4de9ba=_0x39ce35;logger[_0x4de9ba(0x1df)](JSON[_0x4de9ba(0x1d2)](_0x4a5caa));});});},Migration[a1175_0x13f7c9(0x1d8)][a1175_0x13f7c9(0x1c7)]=function(_0x17326b,_0x5dcf6d,_0x5be734){const _0x459d30=a1175_0x13f7c9,_0x2901b6=this;this[_0x459d30(0x1dd)][_0x459d30(0x1d4)](function(){const _0x176a27=_0x459d30;return _0x2901b6[_0x176a27(0x1c2)]['addColumn'](_0x17326b,_0x5dcf6d,_0x5be734)['then'](function(){const _0x3df363=_0x176a27;logger[_0x3df363(0x1df)](_0x3df363(0x1ca),_0x5dcf6d,_0x17326b);})['catch'](function(_0x52703f){const _0x5ca91b=_0x176a27;logger['info'](JSON[_0x5ca91b(0x1d2)](_0x52703f));});});},Migration[a1175_0x13f7c9(0x1d8)]['dropTable']=function(_0x51a258){const _0x484bcc=a1175_0x13f7c9,_0x49b405=this;this[_0x484bcc(0x1dd)]['enqueue'](function(){const _0x5451ef=_0x484bcc;return _0x49b405[_0x5451ef(0x1c2)][_0x5451ef(0x1c6)](_0x51a258,{'force':!![]})['then'](function(){const _0x4a66d5=_0x5451ef;logger['info'](_0x4a66d5(0x1c1),_0x51a258);})[_0x5451ef(0x1ce)](function(_0x2255b5){const _0x2f1ccc=_0x5451ef;logger[_0x2f1ccc(0x1df)](JSON[_0x2f1ccc(0x1d2)](_0x2255b5));});});},Migration[a1175_0x13f7c9(0x1d8)]['addIndex']=function(_0x516273,_0xed9abb,_0x2c5f44){const _0x4a8cba=a1175_0x13f7c9,_0x2fcba6=this;this[_0x4a8cba(0x1dd)][_0x4a8cba(0x1d4)](function(){const _0x24075c=_0x4a8cba;return _0x2fcba6[_0x24075c(0x1c2)][_0x24075c(0x1bf)](_0x516273,_0xed9abb,{'indexName':_0x2c5f44['indexName'],'indicesType':_0x2c5f44['indicesType']})[_0x24075c(0x1c0)](function(){const _0x3fdb39=_0x24075c;logger[_0x3fdb39(0x1df)](_0x3fdb39(0x1da),_0x516273,_0xed9abb[_0x3fdb39(0x1d3)](','),_0x2c5f44[_0x3fdb39(0x1cc)],_0x2c5f44['indicesType']);})[_0x24075c(0x1ce)](function(_0x5925f0){const _0x3b28e3=_0x24075c;logger[_0x3b28e3(0x1df)](JSON[_0x3b28e3(0x1d2)](_0x5925f0));});});},Migration[a1175_0x13f7c9(0x1d8)]['removeIndex']=function(_0x28abbd,_0x17b8ca){const _0x2eeb2b=a1175_0x13f7c9,_0x3d6704=this;this[_0x2eeb2b(0x1dd)]['enqueue'](function(){const _0x54c2d2=_0x2eeb2b;return _0x3d6704[_0x54c2d2(0x1c2)]['removeIndex'](_0x28abbd,_0x17b8ca)['then'](function(){const _0xda1805=_0x54c2d2;logger[_0xda1805(0x1df)](_0xda1805(0x1d5),_0x28abbd,_0x17b8ca);})[_0x54c2d2(0x1ce)](function(_0x37d631){const _0x180ced=_0x54c2d2;logger[_0x180ced(0x1df)](JSON[_0x180ced(0x1d2)](_0x37d631));});});},Migration['prototype']['query']=function(_0x5ba803){const _0x2c6e35=a1175_0x13f7c9,_0x39c738=this;this[_0x2c6e35(0x1dd)][_0x2c6e35(0x1d4)](function(){const _0x4c9974=_0x2c6e35;return _0x39c738[_0x4c9974(0x1c2)][_0x4c9974(0x1cf)][_0x4c9974(0x1c5)](_0x5ba803)['then'](function(){const _0x46a8f8=_0x4c9974;logger[_0x46a8f8(0x1df)](_0x46a8f8(0x1cd),_0x5ba803);})['catch'](function(_0x362da2){const _0xe5b927=_0x4c9974;logger['info'](JSON[_0xe5b927(0x1d2)](_0x362da2));});});},Migration[a1175_0x13f7c9(0x1d8)]['removeColumn']=function(_0x230435,_0x1e0dc0){const _0x770fb2=a1175_0x13f7c9,_0x16bb89=this;this[_0x770fb2(0x1dd)][_0x770fb2(0x1d4)](function(){const _0x1d91b4=_0x770fb2;return _0x16bb89[_0x1d91b4(0x1c2)][_0x1d91b4(0x1d6)](_0x230435,_0x1e0dc0)[_0x1d91b4(0x1c0)](function(){const _0x24f0f4=_0x1d91b4;logger[_0x24f0f4(0x1df)](_0x24f0f4(0x1de),_0x1e0dc0,_0x230435);})[_0x1d91b4(0x1ce)](function(_0x66f858){const _0x18e16f=_0x1d91b4;logger[_0x18e16f(0x1df)](util['inspect'](_0x66f858,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1175_0x13f7c9(0x1db)]=function(_0x31e655,_0x1fe189,_0x155dd8){const _0x5442cd=a1175_0x13f7c9,_0x2cf4c7=this;this[_0x5442cd(0x1dd)][_0x5442cd(0x1d4)](function(){const _0x3b8523=_0x5442cd;return _0x2cf4c7['queryInterface'][_0x3b8523(0x1db)](_0x31e655,_0x1fe189,_0x155dd8)['then'](function(){const _0x26c387=_0x3b8523;logger[_0x26c387(0x1df)](_0x26c387(0x1cb),_0x1fe189,_0x155dd8,_0x31e655);})[_0x3b8523(0x1ce)](function(_0x3544e4){const _0x85b61d=_0x3b8523;logger['info'](util[_0x85b61d(0x1c4)](_0x3544e4,{'showHidden':![],'depth':null}));});});},Migration[a1175_0x13f7c9(0x1d8)][a1175_0x13f7c9(0x1dc)]=function(_0x567354){const _0x850667=a1175_0x13f7c9;this[_0x850667(0x1dd)][_0x850667(0x1d4)](function(){return _0x567354();});},module[a1175_0x13f7c9(0x1d7)]={'up':function(_0x529d85){return new Promise(function(_0x2c3bd1){const _0x1cf418=a1175_0x2642,_0x15f957=new Migration(_0x529d85);_0x15f957[_0x1cf418(0x1dc)](_0x2c3bd1);});},'down':function(){}};
\ No newline at end of file
+const a1178_0x4933=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','indexName','then','renameColumn','table\x20dropped\x20%s','queryInterface','final','removeColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequence','finally','util','tail','prototype','catch','indicesType','query\x20%s','changeColumn','sequelize','stringify','enqueue','removeIndex\x20%s\x20%s','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','addColumn','removeIndex','Removed\x20column\x20%s\x20from\x20%s','dropTable','query','addIndex','Added\x20column\x20%s\x20to\x20%s'];(function(_0x5154f1,_0x13d271){const _0x4933ec=function(_0x2499a8){while(--_0x2499a8){_0x5154f1['push'](_0x5154f1['shift']());}};_0x4933ec(++_0x13d271);}(a1178_0x4933,0x11d));const a1178_0x2499=function(_0x5154f1,_0x13d271){_0x5154f1=_0x5154f1-0x136;let _0x4933ec=a1178_0x4933[_0x5154f1];return _0x4933ec;};const a1178_0x5a2229=a1178_0x2499;'use strict';const util=require(a1178_0x5a2229(0x14e)),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[a1178_0x5a2229(0x150)][a1178_0x5a2229(0x136)]=function(_0x2e9b10){const _0x4d0996=a1178_0x5a2229;this['tail']=this[_0x4d0996(0x14f)]?this[_0x4d0996(0x14f)][_0x4d0996(0x14d)](_0x2e9b10):_0x2e9b10();};const Migration=function(_0x1a22e8){const _0x1e1300=a1178_0x5a2229;this[_0x1e1300(0x148)]=_0x1a22e8,this[_0x1e1300(0x14c)]=new Sequence();};Migration[a1178_0x5a2229(0x150)][a1178_0x5a2229(0x154)]=function(_0x5ce933,_0x484284,_0x50fee5){const _0x693711=a1178_0x5a2229,_0x22c061=this;this[_0x693711(0x14c)][_0x693711(0x136)](function(){const _0x526d50=_0x693711;return _0x22c061['queryInterface'][_0x526d50(0x154)](_0x5ce933,_0x484284,_0x50fee5)['then'](function(){const _0x239052=_0x526d50;logger[_0x239052(0x143)](_0x239052(0x139),_0x484284,_0x5ce933);})[_0x526d50(0x151)](function(_0x25959a){const _0x4d2c78=_0x526d50;logger[_0x4d2c78(0x143)](JSON[_0x4d2c78(0x156)](_0x25959a));});});},Migration[a1178_0x5a2229(0x150)][a1178_0x5a2229(0x13b)]=function(_0x31e4df,_0x3511e8,_0x383203){const _0x5b12d9=a1178_0x5a2229,_0x2873fc=this;this['sequence'][_0x5b12d9(0x136)](function(){const _0x44ae27=_0x5b12d9;return _0x2873fc['queryInterface'][_0x44ae27(0x13b)](_0x31e4df,_0x3511e8,_0x383203)[_0x44ae27(0x145)](function(){const _0xac63c8=_0x44ae27;logger[_0xac63c8(0x143)](_0xac63c8(0x141),_0x3511e8,_0x31e4df);})['catch'](function(_0x7f3e77){logger['info'](JSON['stringify'](_0x7f3e77));});});},Migration[a1178_0x5a2229(0x150)]['dropTable']=function(_0xfa9551){const _0x4bd1b2=a1178_0x5a2229,_0x55812d=this;this['sequence'][_0x4bd1b2(0x136)](function(){const _0x1b7a9b=_0x4bd1b2;return _0x55812d[_0x1b7a9b(0x148)][_0x1b7a9b(0x13e)](_0xfa9551,{'force':!![]})['then'](function(){const _0x28b756=_0x1b7a9b;logger[_0x28b756(0x143)](_0x28b756(0x147),_0xfa9551);})[_0x1b7a9b(0x151)](function(_0x2ae833){const _0x4562f6=_0x1b7a9b;logger['info'](JSON[_0x4562f6(0x156)](_0x2ae833));});});},Migration[a1178_0x5a2229(0x150)][a1178_0x5a2229(0x140)]=function(_0x26fc32,_0xcf22cb,_0x6646b3){const _0x4f0574=a1178_0x5a2229,_0x86fe7=this;this[_0x4f0574(0x14c)][_0x4f0574(0x136)](function(){const _0x2ac700=_0x4f0574;return _0x86fe7[_0x2ac700(0x148)][_0x2ac700(0x140)](_0x26fc32,_0xcf22cb,{'indexName':_0x6646b3[_0x2ac700(0x144)],'indicesType':_0x6646b3[_0x2ac700(0x152)]})['then'](function(){const _0x1565e9=_0x2ac700;logger[_0x1565e9(0x143)](_0x1565e9(0x14b),_0x26fc32,_0xcf22cb['join'](','),_0x6646b3[_0x1565e9(0x144)],_0x6646b3[_0x1565e9(0x152)]);})[_0x2ac700(0x151)](function(_0x570b10){const _0x315d29=_0x2ac700;logger[_0x315d29(0x143)](JSON['stringify'](_0x570b10));});});},Migration[a1178_0x5a2229(0x150)][a1178_0x5a2229(0x13c)]=function(_0x5dc5cf,_0x3e3985){const _0x58dead=a1178_0x5a2229,_0x4da21a=this;this[_0x58dead(0x14c)]['enqueue'](function(){const _0x4953b7=_0x58dead;return _0x4da21a[_0x4953b7(0x148)][_0x4953b7(0x13c)](_0x5dc5cf,_0x3e3985)[_0x4953b7(0x145)](function(){const _0x2d08aa=_0x4953b7;logger[_0x2d08aa(0x143)](_0x2d08aa(0x137),_0x5dc5cf,_0x3e3985);})[_0x4953b7(0x151)](function(_0x105e38){logger['info'](JSON['stringify'](_0x105e38));});});},Migration[a1178_0x5a2229(0x150)][a1178_0x5a2229(0x13f)]=function(_0x3f08f4){const _0x3cf097=a1178_0x5a2229,_0x1169d6=this;this[_0x3cf097(0x14c)]['enqueue'](function(){const _0x32b600=_0x3cf097;return _0x1169d6[_0x32b600(0x148)][_0x32b600(0x155)][_0x32b600(0x13f)](_0x3f08f4)[_0x32b600(0x145)](function(){const _0x21ac22=_0x32b600;logger[_0x21ac22(0x143)](_0x21ac22(0x153),_0x3f08f4);})[_0x32b600(0x151)](function(_0x3adf52){const _0x38bde8=_0x32b600;logger['info'](JSON[_0x38bde8(0x156)](_0x3adf52));});});},Migration[a1178_0x5a2229(0x150)]['removeColumn']=function(_0x17c96a,_0x52a184){const _0x1d96dd=a1178_0x5a2229,_0x2fb344=this;this[_0x1d96dd(0x14c)][_0x1d96dd(0x136)](function(){const _0x3786f8=_0x1d96dd;return _0x2fb344[_0x3786f8(0x148)][_0x3786f8(0x14a)](_0x17c96a,_0x52a184)[_0x3786f8(0x145)](function(){const _0x51d463=_0x3786f8;logger[_0x51d463(0x143)](_0x51d463(0x13d),_0x52a184,_0x17c96a);})['catch'](function(_0x448399){const _0x2d50e8=_0x3786f8;logger[_0x2d50e8(0x143)](util['inspect'](_0x448399,{'showHidden':![],'depth':null}));});});},Migration[a1178_0x5a2229(0x150)]['renameColumn']=function(_0x330ad4,_0x146e38,_0x501efe){const _0x169450=a1178_0x5a2229,_0x244fa1=this;this['sequence'][_0x169450(0x136)](function(){const _0x23ec50=_0x169450;return _0x244fa1[_0x23ec50(0x148)][_0x23ec50(0x146)](_0x330ad4,_0x146e38,_0x501efe)[_0x23ec50(0x145)](function(){const _0x53daac=_0x23ec50;logger[_0x53daac(0x143)](_0x53daac(0x142),_0x146e38,_0x501efe,_0x330ad4);})['catch'](function(_0x1fe8e1){const _0x27ca8e=_0x23ec50;logger[_0x27ca8e(0x143)](util[_0x27ca8e(0x138)](_0x1fe8e1,{'showHidden':![],'depth':null}));});});},Migration[a1178_0x5a2229(0x150)]['final']=function(_0x1b2dce){this['sequence']['enqueue'](function(){return _0x1b2dce();});},module[a1178_0x5a2229(0x13a)]={'up':function(_0x3ff985){return new Promise(function(_0x18e0eb){const _0x1113ff=a1178_0x2499,_0x190d34=new Migration(_0x3ff985);_0x190d34[_0x1113ff(0x149)](_0x18e0eb);});},'down':function(){}};
\ No newline at end of file