Built motion from commit aab208717af8d15f4fa224cdb6a202877019af9b. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.80.js
index 12c77ce..f47f977 100644 (file)
@@ -1 +1 @@
-const a958_0x249b=['tail','preferred','removeIndex\x20%s\x20%s','STRING','util','dropTable','addIndex\x20%s\x20%s\x20%s','finally','inspect','../config/logger','changeColumn','query\x20%s','queryInterface','info','Added\x20column\x20%s\x20to\x20%s','prototype','query','then','addColumn','addIndex','migration','Removed\x20column\x20%s\x20from\x20%s','join','defaultPreferred','final','catch','sequence','table\x20dropped\x20%s','removeIndex','enqueue','removeColumn','stringify','BOOLEAN'];(function(_0x647fad,_0x249b27){const _0x28152b=function(_0x328b2f){while(--_0x328b2f){_0x647fad['push'](_0x647fad['shift']());}};_0x28152b(++_0x249b27);}(a958_0x249b,0xe8));const a958_0x2815=function(_0x647fad,_0x249b27){_0x647fad=_0x647fad-0x0;let _0x28152b=a958_0x249b[_0x647fad];return _0x28152b;};const _0xc81a98=a958_0x2815;'use strict';const util=require(_0xc81a98('0x3')),logger=require(_0xc81a98('0x8'))(_0xc81a98('0x13')),Sequence=function(){};Sequence[_0xc81a98('0xe')]['enqueue']=function(_0x328b2f){const _0x13e572=_0xc81a98;this[_0x13e572('0x20')]=this[_0x13e572('0x20')]?this[_0x13e572('0x20')][_0x13e572('0x6')](_0x328b2f):_0x328b2f();};const Migration=function(_0x1cbcf2){const _0x44fbd6=_0xc81a98;this[_0x44fbd6('0xb')]=_0x1cbcf2,this['sequence']=new Sequence();};Migration[_0xc81a98('0xe')][_0xc81a98('0x9')]=function(_0x26ec37,_0x4ea746,_0x1abf31){const _0x415b1f=_0xc81a98,_0x3c9ed8=this;this[_0x415b1f('0x19')][_0x415b1f('0x1c')](function(){const _0x2b2306=_0x415b1f;return _0x3c9ed8['queryInterface'][_0x2b2306('0x9')](_0x26ec37,_0x4ea746,_0x1abf31)[_0x2b2306('0x10')](function(){const _0x4921d8=_0x2b2306;logger[_0x4921d8('0xc')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4ea746,_0x26ec37);})[_0x2b2306('0x18')](function(_0x125074){const _0x1cbefd=_0x2b2306;logger[_0x1cbefd('0xc')](JSON[_0x1cbefd('0x1e')](_0x125074));});});},Migration[_0xc81a98('0xe')][_0xc81a98('0x11')]=function(_0x2eb339,_0x3e4b88,_0x1c498d){const _0x449c0f=_0xc81a98,_0x280814=this;this['sequence'][_0x449c0f('0x1c')](function(){const _0x26b18a=_0x449c0f;return _0x280814['queryInterface'][_0x26b18a('0x11')](_0x2eb339,_0x3e4b88,_0x1c498d)[_0x26b18a('0x10')](function(){const _0x16beb6=_0x26b18a;logger['info'](_0x16beb6('0xd'),_0x3e4b88,_0x2eb339);})[_0x26b18a('0x18')](function(_0x31f398){const _0x3cc7ed=_0x26b18a;logger[_0x3cc7ed('0xc')](JSON[_0x3cc7ed('0x1e')](_0x31f398));});});},Migration[_0xc81a98('0xe')][_0xc81a98('0x4')]=function(_0x223bbd){const _0xd85a6d=_0xc81a98,_0x15ca84=this;this[_0xd85a6d('0x19')][_0xd85a6d('0x1c')](function(){const _0x2f6674=_0xd85a6d;return _0x15ca84[_0x2f6674('0xb')][_0x2f6674('0x4')](_0x223bbd,{'force':!![]})[_0x2f6674('0x10')](function(){const _0xa40cb4=_0x2f6674;logger[_0xa40cb4('0xc')](_0xa40cb4('0x1a'),_0x223bbd);})[_0x2f6674('0x18')](function(_0x545ea0){const _0x1bb947=_0x2f6674;logger[_0x1bb947('0xc')](JSON[_0x1bb947('0x1e')](_0x545ea0));});});},Migration[_0xc81a98('0xe')][_0xc81a98('0x12')]=function(_0x42d6da,_0x6d6118,_0x39317f){const _0x4eb3f4=_0xc81a98,_0x1c5c3b=this;this[_0x4eb3f4('0x19')]['enqueue'](function(){const _0x4562bc=_0x4eb3f4;return _0x1c5c3b['queryInterface']['addIndex'](_0x42d6da,_0x6d6118,{'indexName':_0x39317f})[_0x4562bc('0x10')](function(){const _0x27e0fb=_0x4562bc;logger[_0x27e0fb('0xc')](_0x27e0fb('0x5'),_0x42d6da,_0x6d6118[_0x27e0fb('0x15')](','),_0x39317f);})[_0x4562bc('0x18')](function(_0x107b7b){const _0x166b7e=_0x4562bc;logger[_0x166b7e('0xc')](JSON['stringify'](_0x107b7b));});});},Migration[_0xc81a98('0xe')][_0xc81a98('0x1b')]=function(_0x28ef63,_0x4016e8){const _0x3835fd=_0xc81a98,_0x3b3e51=this;this[_0x3835fd('0x19')][_0x3835fd('0x1c')](function(){const _0x5d50ec=_0x3835fd;return _0x3b3e51[_0x5d50ec('0xb')][_0x5d50ec('0x1b')](_0x28ef63,_0x4016e8)[_0x5d50ec('0x10')](function(){const _0x3a5c41=_0x5d50ec;logger['info'](_0x3a5c41('0x1'),_0x28ef63,_0x4016e8);})[_0x5d50ec('0x18')](function(_0x1be3a4){const _0x4238b8=_0x5d50ec;logger[_0x4238b8('0xc')](JSON[_0x4238b8('0x1e')](_0x1be3a4));});});},Migration[_0xc81a98('0xe')][_0xc81a98('0xf')]=function(_0x489557){const _0x2fc3be=_0xc81a98,_0x22e5b4=this;this['sequence'][_0x2fc3be('0x1c')](function(){const _0x1c37cb=_0x2fc3be;return _0x22e5b4['queryInterface']['sequelize'][_0x1c37cb('0xf')](_0x489557)[_0x1c37cb('0x10')](function(){const _0x892a65=_0x1c37cb;logger['info'](_0x892a65('0xa'),_0x489557);})[_0x1c37cb('0x18')](function(_0x502eda){const _0x5f2a1f=_0x1c37cb;logger[_0x5f2a1f('0xc')](JSON[_0x5f2a1f('0x1e')](_0x502eda));});});},Migration[_0xc81a98('0xe')][_0xc81a98('0x1d')]=function(_0x3f2a3c,_0x341ab1){const _0x5ddac3=_0xc81a98,_0x434a87=this;this[_0x5ddac3('0x19')][_0x5ddac3('0x1c')](function(){const _0x37d390=_0x5ddac3;return _0x434a87[_0x37d390('0xb')][_0x37d390('0x1d')](_0x3f2a3c,_0x341ab1)[_0x37d390('0x10')](function(){const _0x4e6fd1=_0x37d390;logger[_0x4e6fd1('0xc')](_0x4e6fd1('0x14'),_0x341ab1,_0x3f2a3c);})['catch'](function(_0x3a391a){const _0x56dd5d=_0x37d390;logger[_0x56dd5d('0xc')](util['inspect'](_0x3a391a,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0xe446cf,_0xb4be31,_0x364b04){const _0x5cf68f=_0xc81a98,_0x568d92=this;this[_0x5cf68f('0x19')][_0x5cf68f('0x1c')](function(){const _0x41588f=_0x5cf68f;return _0x568d92[_0x41588f('0xb')]['renameColumn'](_0xe446cf,_0xb4be31,_0x364b04)['then'](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0xb4be31,_0x364b04,_0xe446cf);})[_0x41588f('0x18')](function(_0x54c096){const _0xc6f7c7=_0x41588f;logger[_0xc6f7c7('0xc')](util[_0xc6f7c7('0x7')](_0x54c096,{'showHidden':![],'depth':null}));});});},Migration[_0xc81a98('0xe')][_0xc81a98('0x17')]=function(_0x3fc4b7){this['sequence']['enqueue'](function(){return _0x3fc4b7();});},module['exports']={'up':function(_0x402f79,_0x403ac7){return new Promise(function(_0x50aca1){const _0x5f197a=a958_0x2815,_0xd81217=new Migration(_0x402f79);_0xd81217[_0x5f197a('0x11')]('settings',_0x5f197a('0x0'),{'type':_0x403ac7[_0x5f197a('0x2')]}),_0xd81217[_0x5f197a('0x11')]('settings',_0x5f197a('0x16'),{'type':_0x403ac7[_0x5f197a('0x1f')],'defaultValue':!![]}),_0xd81217['final'](_0x50aca1);});},'down':function(){}};
\ No newline at end of file
+const a958_0x48f2=['catch','final','finally','enqueue','changeColumn','sequence','addIndex','addIndex\x20%s\x20%s\x20%s','defaultPreferred','inspect','join','renameColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','../config/logger','settings','removeColumn','dropTable','stringify','exports','addColumn','prototype','query','tail','removeIndex','STRING','info','query\x20%s','queryInterface','then','removeIndex\x20%s\x20%s','preferred'];(function(_0x5ffcf1,_0x48f279){const _0x10e056=function(_0x147113){while(--_0x147113){_0x5ffcf1['push'](_0x5ffcf1['shift']());}};_0x10e056(++_0x48f279);}(a958_0x48f2,0x1b5));const a958_0x10e0=function(_0x5ffcf1,_0x48f279){_0x5ffcf1=_0x5ffcf1-0x0;let _0x10e056=a958_0x48f2[_0x5ffcf1];return _0x10e056;};const _0x2f7749=a958_0x10e0;'use strict';const util=require('util'),logger=require(_0x2f7749('0xa'))('migration'),Sequence=function(){};Sequence[_0x2f7749('0x11')][_0x2f7749('0x0')]=function(_0x147113){const _0x20a7c8=_0x2f7749;this['tail']=this['tail']?this[_0x20a7c8('0x13')][_0x20a7c8('0x1e')](_0x147113):_0x147113();};const Migration=function(_0x5b4421){const _0x387e30=_0x2f7749;this[_0x387e30('0x18')]=_0x5b4421,this['sequence']=new Sequence();};Migration[_0x2f7749('0x11')][_0x2f7749('0x1')]=function(_0x5bfd6f,_0x726ca,_0x2786c3){const _0x47e410=_0x2f7749,_0x47de66=this;this[_0x47e410('0x2')][_0x47e410('0x0')](function(){const _0x14cdb3=_0x47e410;return _0x47de66['queryInterface']['changeColumn'](_0x5bfd6f,_0x726ca,_0x2786c3)[_0x14cdb3('0x19')](function(){const _0x34ffa0=_0x14cdb3;logger[_0x34ffa0('0x16')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x726ca,_0x5bfd6f);})[_0x14cdb3('0x1c')](function(_0x1f6b08){const _0x565727=_0x14cdb3;logger[_0x565727('0x16')](JSON[_0x565727('0xe')](_0x1f6b08));});});},Migration[_0x2f7749('0x11')][_0x2f7749('0x10')]=function(_0x59bdce,_0x1f508b,_0x3ae882){const _0x32f42e=_0x2f7749,_0x559421=this;this['sequence'][_0x32f42e('0x0')](function(){const _0xc2cf72=_0x32f42e;return _0x559421[_0xc2cf72('0x18')]['addColumn'](_0x59bdce,_0x1f508b,_0x3ae882)[_0xc2cf72('0x19')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x1f508b,_0x59bdce);})[_0xc2cf72('0x1c')](function(_0xdbdcb6){const _0x382aea=_0xc2cf72;logger[_0x382aea('0x16')](JSON['stringify'](_0xdbdcb6));});});},Migration[_0x2f7749('0x11')][_0x2f7749('0xd')]=function(_0x41b35f){const _0xbc38f4=_0x2f7749,_0x2a9af9=this;this[_0xbc38f4('0x2')][_0xbc38f4('0x0')](function(){const _0x486022=_0xbc38f4;return _0x2a9af9[_0x486022('0x18')][_0x486022('0xd')](_0x41b35f,{'force':!![]})[_0x486022('0x19')](function(){const _0x3545df=_0x486022;logger[_0x3545df('0x16')]('table\x20dropped\x20%s',_0x41b35f);})[_0x486022('0x1c')](function(_0x28ab60){const _0x39560b=_0x486022;logger[_0x39560b('0x16')](JSON[_0x39560b('0xe')](_0x28ab60));});});},Migration[_0x2f7749('0x11')][_0x2f7749('0x3')]=function(_0x1a2e60,_0x42f72e,_0x136577){const _0x5bb407=_0x2f7749,_0x14a25f=this;this[_0x5bb407('0x2')]['enqueue'](function(){return _0x14a25f['queryInterface']['addIndex'](_0x1a2e60,_0x42f72e,{'indexName':_0x136577})['then'](function(){const _0xdc00f3=a958_0x10e0;logger['info'](_0xdc00f3('0x4'),_0x1a2e60,_0x42f72e[_0xdc00f3('0x7')](','),_0x136577);})['catch'](function(_0x560a28){const _0x736b70=a958_0x10e0;logger[_0x736b70('0x16')](JSON['stringify'](_0x560a28));});});},Migration['prototype'][_0x2f7749('0x14')]=function(_0x3e234c,_0x56dc57){const _0x209764=_0x2f7749,_0x4feac8=this;this[_0x209764('0x2')][_0x209764('0x0')](function(){const _0x3b47ad=_0x209764;return _0x4feac8[_0x3b47ad('0x18')][_0x3b47ad('0x14')](_0x3e234c,_0x56dc57)['then'](function(){const _0xcc55db=_0x3b47ad;logger['info'](_0xcc55db('0x1a'),_0x3e234c,_0x56dc57);})['catch'](function(_0x3e2500){const _0x5f361c=_0x3b47ad;logger[_0x5f361c('0x16')](JSON[_0x5f361c('0xe')](_0x3e2500));});});},Migration[_0x2f7749('0x11')][_0x2f7749('0x12')]=function(_0x2502b2){const _0x1232d5=_0x2f7749,_0x50192b=this;this[_0x1232d5('0x2')][_0x1232d5('0x0')](function(){const _0x27e513=_0x1232d5;return _0x50192b[_0x27e513('0x18')]['sequelize'][_0x27e513('0x12')](_0x2502b2)[_0x27e513('0x19')](function(){const _0xa44932=_0x27e513;logger[_0xa44932('0x16')](_0xa44932('0x17'),_0x2502b2);})[_0x27e513('0x1c')](function(_0x4328c9){const _0x2c84dc=_0x27e513;logger['info'](JSON[_0x2c84dc('0xe')](_0x4328c9));});});},Migration[_0x2f7749('0x11')][_0x2f7749('0xc')]=function(_0xb85cf4,_0x368862){const _0x23ca7b=_0x2f7749,_0x30779c=this;this[_0x23ca7b('0x2')][_0x23ca7b('0x0')](function(){const _0x5edc91=_0x23ca7b;return _0x30779c[_0x5edc91('0x18')][_0x5edc91('0xc')](_0xb85cf4,_0x368862)['then'](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x368862,_0xb85cf4);})[_0x5edc91('0x1c')](function(_0x3e34c3){const _0x3981ac=_0x5edc91;logger[_0x3981ac('0x16')](util['inspect'](_0x3e34c3,{'showHidden':![],'depth':null}));});});},Migration[_0x2f7749('0x11')][_0x2f7749('0x8')]=function(_0x2a67e0,_0x34b683,_0x2369d9){const _0x164589=_0x2f7749,_0xb3cfac=this;this['sequence'][_0x164589('0x0')](function(){const _0x310e66=_0x164589;return _0xb3cfac['queryInterface'][_0x310e66('0x8')](_0x2a67e0,_0x34b683,_0x2369d9)['then'](function(){const _0x277518=_0x310e66;logger['info'](_0x277518('0x9'),_0x34b683,_0x2369d9,_0x2a67e0);})[_0x310e66('0x1c')](function(_0x51cb50){const _0x16d066=_0x310e66;logger['info'](util[_0x16d066('0x6')](_0x51cb50,{'showHidden':![],'depth':null}));});});},Migration[_0x2f7749('0x11')][_0x2f7749('0x1d')]=function(_0x257c8a){const _0x2eeb0a=_0x2f7749;this[_0x2eeb0a('0x2')][_0x2eeb0a('0x0')](function(){return _0x257c8a();});},module[_0x2f7749('0xf')]={'up':function(_0x5c4146,_0x273469){return new Promise(function(_0x887db9){const _0x9bbb10=a958_0x10e0,_0x52ac8a=new Migration(_0x5c4146);_0x52ac8a[_0x9bbb10('0x10')](_0x9bbb10('0xb'),_0x9bbb10('0x1b'),{'type':_0x273469[_0x9bbb10('0x15')]}),_0x52ac8a[_0x9bbb10('0x10')](_0x9bbb10('0xb'),_0x9bbb10('0x5'),{'type':_0x273469['BOOLEAN'],'defaultValue':!![]}),_0x52ac8a[_0x9bbb10('0x1d')](_0x887db9);});},'down':function(){}};
\ No newline at end of file