Built motion from commit aab208717af8d15f4fa224cdb6a202877019af9b. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.74.js
index d253e57..30963db 100644 (file)
@@ -1 +1 @@
-const a952_0x5ba9=['tail','Removed\x20column\x20%s\x20from\x20%s','changeColumn','join','addColumn','exports','Added\x20column\x20%s\x20to\x20%s','removeColumn','dropTable','query','info','finally','enqueue','catch','renameColumn','util','queryInterface','then','prototype','final','stringify','inspect','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex','sequence','query\x20%s'];(function(_0x4e1bd8,_0x5ba969){const _0x2f93c1=function(_0x10a090){while(--_0x10a090){_0x4e1bd8['push'](_0x4e1bd8['shift']());}};_0x2f93c1(++_0x5ba969);}(a952_0x5ba9,0x17a));const a952_0x2f93=function(_0x4e1bd8,_0x5ba969){_0x4e1bd8=_0x4e1bd8-0x0;let _0x2f93c1=a952_0x5ba9[_0x4e1bd8];return _0x2f93c1;};const _0x353e65=a952_0x2f93;'use strict';const util=require(_0x353e65('0xe')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x353e65('0x11')][_0x353e65('0xb')]=function(_0x10a090){const _0x5786cd=_0x353e65;this[_0x5786cd('0x1c')]=this[_0x5786cd('0x1c')]?this[_0x5786cd('0x1c')][_0x5786cd('0xa')](_0x10a090):_0x10a090();};const Migration=function(_0xc5b81d){const _0x4403d6=_0x353e65;this[_0x4403d6('0xf')]=_0xc5b81d,this['sequence']=new Sequence();};Migration[_0x353e65('0x11')][_0x353e65('0x1')]=function(_0x11db29,_0x9c5f62,_0x7da1d7){const _0x439547=_0x353e65,_0x26c664=this;this[_0x439547('0x1a')][_0x439547('0xb')](function(){const _0x473f40=_0x439547;return _0x26c664[_0x473f40('0xf')]['changeColumn'](_0x11db29,_0x9c5f62,_0x7da1d7)[_0x473f40('0x10')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x9c5f62,_0x11db29);})[_0x473f40('0xc')](function(_0x578ef3){const _0x3dc9a1=_0x473f40;logger[_0x3dc9a1('0x9')](JSON[_0x3dc9a1('0x13')](_0x578ef3));});});},Migration['prototype'][_0x353e65('0x3')]=function(_0x42f6d1,_0x288266,_0x441bd1){const _0x4e93b8=_0x353e65,_0x160f38=this;this['sequence'][_0x4e93b8('0xb')](function(){const _0x1a9503=_0x4e93b8;return _0x160f38[_0x1a9503('0xf')][_0x1a9503('0x3')](_0x42f6d1,_0x288266,_0x441bd1)['then'](function(){const _0x512f8b=_0x1a9503;logger[_0x512f8b('0x9')](_0x512f8b('0x5'),_0x288266,_0x42f6d1);})[_0x1a9503('0xc')](function(_0x2b8a82){logger['info'](JSON['stringify'](_0x2b8a82));});});},Migration[_0x353e65('0x11')][_0x353e65('0x7')]=function(_0x138f24){const _0x1ad92f=_0x353e65,_0xfa0a4=this;this[_0x1ad92f('0x1a')][_0x1ad92f('0xb')](function(){const _0x521bc6=_0x1ad92f;return _0xfa0a4[_0x521bc6('0xf')][_0x521bc6('0x7')](_0x138f24,{'force':!![]})[_0x521bc6('0x10')](function(){const _0xa7d0ed=_0x521bc6;logger[_0xa7d0ed('0x9')](_0xa7d0ed('0x15'),_0x138f24);})['catch'](function(_0x38f1fe){const _0x5677a3=_0x521bc6;logger[_0x5677a3('0x9')](JSON['stringify'](_0x38f1fe));});});},Migration[_0x353e65('0x11')][_0x353e65('0x17')]=function(_0x69e429,_0xcce369,_0x67c395){const _0x3165f8=this;this['sequence']['enqueue'](function(){const _0x357118=a952_0x2f93;return _0x3165f8[_0x357118('0xf')][_0x357118('0x17')](_0x69e429,_0xcce369,{'indexName':_0x67c395})['then'](function(){const _0x58699a=_0x357118;logger[_0x58699a('0x9')]('addIndex\x20%s\x20%s\x20%s',_0x69e429,_0xcce369[_0x58699a('0x2')](','),_0x67c395);})[_0x357118('0xc')](function(_0x2ce557){const _0xf12014=_0x357118;logger[_0xf12014('0x9')](JSON['stringify'](_0x2ce557));});});},Migration[_0x353e65('0x11')][_0x353e65('0x19')]=function(_0x5f0413,_0x298e09){const _0x4e8c97=_0x353e65,_0x53bae9=this;this[_0x4e8c97('0x1a')][_0x4e8c97('0xb')](function(){const _0xcf490=_0x4e8c97;return _0x53bae9['queryInterface']['removeIndex'](_0x5f0413,_0x298e09)[_0xcf490('0x10')](function(){const _0x9dd33=_0xcf490;logger[_0x9dd33('0x9')](_0x9dd33('0x16'),_0x5f0413,_0x298e09);})[_0xcf490('0xc')](function(_0x45a1fb){const _0x46a1d3=_0xcf490;logger[_0x46a1d3('0x9')](JSON['stringify'](_0x45a1fb));});});},Migration[_0x353e65('0x11')][_0x353e65('0x8')]=function(_0x55bd53){const _0x4ab292=_0x353e65,_0x3698a0=this;this[_0x4ab292('0x1a')]['enqueue'](function(){const _0x14ed00=_0x4ab292;return _0x3698a0['queryInterface']['sequelize'][_0x14ed00('0x8')](_0x55bd53)[_0x14ed00('0x10')](function(){const _0x46ab45=_0x14ed00;logger[_0x46ab45('0x9')](_0x46ab45('0x1b'),_0x55bd53);})[_0x14ed00('0xc')](function(_0x349024){const _0x109c7e=_0x14ed00;logger[_0x109c7e('0x9')](JSON[_0x109c7e('0x13')](_0x349024));});});},Migration['prototype'][_0x353e65('0x6')]=function(_0x38c8ba,_0x5431b7){const _0x325d27=_0x353e65,_0x2acffb=this;this[_0x325d27('0x1a')][_0x325d27('0xb')](function(){const _0x3fbc4a=_0x325d27;return _0x2acffb[_0x3fbc4a('0xf')][_0x3fbc4a('0x6')](_0x38c8ba,_0x5431b7)[_0x3fbc4a('0x10')](function(){const _0x22c72e=_0x3fbc4a;logger[_0x22c72e('0x9')](_0x22c72e('0x0'),_0x5431b7,_0x38c8ba);})[_0x3fbc4a('0xc')](function(_0x289662){const _0x18d017=_0x3fbc4a;logger['info'](util[_0x18d017('0x14')](_0x289662,{'showHidden':![],'depth':null}));});});},Migration[_0x353e65('0x11')][_0x353e65('0xd')]=function(_0x3378da,_0x26df5a,_0x2f4582){const _0x4d2570=_0x353e65,_0x3f59c1=this;this[_0x4d2570('0x1a')]['enqueue'](function(){const _0x1edbd0=_0x4d2570;return _0x3f59c1[_0x1edbd0('0xf')]['renameColumn'](_0x3378da,_0x26df5a,_0x2f4582)[_0x1edbd0('0x10')](function(){const _0xce326b=_0x1edbd0;logger[_0xce326b('0x9')](_0xce326b('0x18'),_0x26df5a,_0x2f4582,_0x3378da);})[_0x1edbd0('0xc')](function(_0x23949a){const _0x51aa43=_0x1edbd0;logger[_0x51aa43('0x9')](util['inspect'](_0x23949a,{'showHidden':![],'depth':null}));});});},Migration[_0x353e65('0x11')][_0x353e65('0x12')]=function(_0x41ae29){const _0x1367de=_0x353e65;this[_0x1367de('0x1a')][_0x1367de('0xb')](function(){return _0x41ae29();});},module[_0x353e65('0x4')]={'up':function(_0x32bdcf){return new Promise(function(_0x27cb46){const _0xa6dd26=new Migration(_0x32bdcf);_0xa6dd26['final'](_0x27cb46);});},'down':function(){}};
\ No newline at end of file
+const a952_0x2a26=['table\x20dropped\x20%s','addColumn','sequence','addIndex','removeIndex','info','catch','final','then','Removed\x20column\x20%s\x20from\x20%s','prototype','query\x20%s','addIndex\x20%s\x20%s\x20%s','inspect','removeIndex\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','dropTable','queryInterface','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','query','stringify','renameColumn','join','enqueue','tail','migration','exports'];(function(_0x1cf54b,_0x2a26e6){const _0x1bd2fe=function(_0x1cbbc7){while(--_0x1cbbc7){_0x1cf54b['push'](_0x1cf54b['shift']());}};_0x1bd2fe(++_0x2a26e6);}(a952_0x2a26,0x139));const a952_0x1bd2=function(_0x1cf54b,_0x2a26e6){_0x1cf54b=_0x1cf54b-0x0;let _0x1bd2fe=a952_0x2a26[_0x1cf54b];return _0x1bd2fe;};const _0x3d182b=a952_0x1bd2;'use strict';const util=require('util'),logger=require('../config/logger')(_0x3d182b('0x15')),Sequence=function(){};Sequence[_0x3d182b('0x5')][_0x3d182b('0x13')]=function(_0x1cbbc7){const _0x38070a=_0x3d182b;this[_0x38070a('0x14')]=this[_0x38070a('0x14')]?this[_0x38070a('0x14')]['finally'](_0x1cbbc7):_0x1cbbc7();};const Migration=function(_0x4b6c1f){const _0x1ad0ab=_0x3d182b;this[_0x1ad0ab('0xc')]=_0x4b6c1f,this[_0x1ad0ab('0x19')]=new Sequence();};Migration[_0x3d182b('0x5')][_0x3d182b('0xe')]=function(_0x5871a3,_0x4ac26a,_0x165297){const _0xed5ae3=this;this['sequence']['enqueue'](function(){const _0x16980c=a952_0x1bd2;return _0xed5ae3[_0x16980c('0xc')]['changeColumn'](_0x5871a3,_0x4ac26a,_0x165297)['then'](function(){const _0xb93989=_0x16980c;logger['info'](_0xb93989('0xd'),_0x4ac26a,_0x5871a3);})[_0x16980c('0x1')](function(_0x20ded7){const _0x3301ea=_0x16980c;logger[_0x3301ea('0x0')](JSON[_0x3301ea('0x10')](_0x20ded7));});});},Migration[_0x3d182b('0x5')][_0x3d182b('0x18')]=function(_0x74474c,_0x590d6b,_0x41b064){const _0x59e7ed=_0x3d182b,_0x544e5f=this;this[_0x59e7ed('0x19')][_0x59e7ed('0x13')](function(){const _0x48f784=_0x59e7ed;return _0x544e5f[_0x48f784('0xc')][_0x48f784('0x18')](_0x74474c,_0x590d6b,_0x41b064)[_0x48f784('0x3')](function(){const _0x5ccf4b=_0x48f784;logger[_0x5ccf4b('0x0')](_0x5ccf4b('0xa'),_0x590d6b,_0x74474c);})['catch'](function(_0x3cf044){const _0x36f7eb=_0x48f784;logger['info'](JSON[_0x36f7eb('0x10')](_0x3cf044));});});},Migration['prototype'][_0x3d182b('0xb')]=function(_0x200076){const _0x2bdfc7=_0x3d182b,_0x2f6f41=this;this[_0x2bdfc7('0x19')][_0x2bdfc7('0x13')](function(){const _0x2c5ad4=_0x2bdfc7;return _0x2f6f41[_0x2c5ad4('0xc')][_0x2c5ad4('0xb')](_0x200076,{'force':!![]})['then'](function(){const _0x48997f=_0x2c5ad4;logger[_0x48997f('0x0')](_0x48997f('0x17'),_0x200076);})[_0x2c5ad4('0x1')](function(_0x2c87b0){const _0x28ca92=_0x2c5ad4;logger[_0x28ca92('0x0')](JSON[_0x28ca92('0x10')](_0x2c87b0));});});},Migration[_0x3d182b('0x5')][_0x3d182b('0x1a')]=function(_0x4d04ae,_0x3a7984,_0xfffdca){const _0xfa9fa9=_0x3d182b,_0x9f80f7=this;this[_0xfa9fa9('0x19')][_0xfa9fa9('0x13')](function(){const _0x30dac7=_0xfa9fa9;return _0x9f80f7[_0x30dac7('0xc')][_0x30dac7('0x1a')](_0x4d04ae,_0x3a7984,{'indexName':_0xfffdca})[_0x30dac7('0x3')](function(){const _0xdd346b=_0x30dac7;logger['info'](_0xdd346b('0x7'),_0x4d04ae,_0x3a7984[_0xdd346b('0x12')](','),_0xfffdca);})[_0x30dac7('0x1')](function(_0x2ca062){const _0x4bddbd=_0x30dac7;logger[_0x4bddbd('0x0')](JSON['stringify'](_0x2ca062));});});},Migration[_0x3d182b('0x5')][_0x3d182b('0x1b')]=function(_0x43b4d9,_0x1989a2){const _0x35cea1=_0x3d182b,_0x2b7777=this;this['sequence'][_0x35cea1('0x13')](function(){const _0x47d739=_0x35cea1;return _0x2b7777[_0x47d739('0xc')][_0x47d739('0x1b')](_0x43b4d9,_0x1989a2)[_0x47d739('0x3')](function(){const _0x41b29c=_0x47d739;logger[_0x41b29c('0x0')](_0x41b29c('0x9'),_0x43b4d9,_0x1989a2);})['catch'](function(_0x1c9b50){const _0x541d85=_0x47d739;logger[_0x541d85('0x0')](JSON[_0x541d85('0x10')](_0x1c9b50));});});},Migration['prototype'][_0x3d182b('0xf')]=function(_0x3f8998){const _0x5cce9b=_0x3d182b,_0x5558de=this;this[_0x5cce9b('0x19')][_0x5cce9b('0x13')](function(){const _0x1f7fd5=_0x5cce9b;return _0x5558de[_0x1f7fd5('0xc')]['sequelize'][_0x1f7fd5('0xf')](_0x3f8998)[_0x1f7fd5('0x3')](function(){const _0x1a434d=_0x1f7fd5;logger[_0x1a434d('0x0')](_0x1a434d('0x6'),_0x3f8998);})[_0x1f7fd5('0x1')](function(_0x3d5212){logger['info'](JSON['stringify'](_0x3d5212));});});},Migration[_0x3d182b('0x5')]['removeColumn']=function(_0x49d2b,_0x4b9346){const _0xa132b9=_0x3d182b,_0x195656=this;this['sequence'][_0xa132b9('0x13')](function(){const _0x377cea=_0xa132b9;return _0x195656['queryInterface']['removeColumn'](_0x49d2b,_0x4b9346)['then'](function(){const _0x259da4=a952_0x1bd2;logger['info'](_0x259da4('0x4'),_0x4b9346,_0x49d2b);})[_0x377cea('0x1')](function(_0xf155c5){const _0x2c64b6=_0x377cea;logger[_0x2c64b6('0x0')](util[_0x2c64b6('0x8')](_0xf155c5,{'showHidden':![],'depth':null}));});});},Migration[_0x3d182b('0x5')]['renameColumn']=function(_0x9f623e,_0x11f50b,_0x1779b4){const _0x1e85a0=_0x3d182b,_0xa2cbd2=this;this[_0x1e85a0('0x19')][_0x1e85a0('0x13')](function(){const _0x32f28c=_0x1e85a0;return _0xa2cbd2['queryInterface'][_0x32f28c('0x11')](_0x9f623e,_0x11f50b,_0x1779b4)[_0x32f28c('0x3')](function(){const _0x3e8a43=_0x32f28c;logger[_0x3e8a43('0x0')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x11f50b,_0x1779b4,_0x9f623e);})[_0x32f28c('0x1')](function(_0xcfbd32){const _0x11fa29=_0x32f28c;logger['info'](util[_0x11fa29('0x8')](_0xcfbd32,{'showHidden':![],'depth':null}));});});},Migration[_0x3d182b('0x5')][_0x3d182b('0x2')]=function(_0x3e5ade){const _0x5b5ecf=_0x3d182b;this['sequence'][_0x5b5ecf('0x13')](function(){return _0x3e5ade();});},module[_0x3d182b('0x16')]={'up':function(_0x34354d){return new Promise(function(_0x52e43c){const _0x35a9eb=a952_0x1bd2,_0x59e92b=new Migration(_0x34354d);_0x59e92b[_0x35a9eb('0x2')](_0x52e43c);});},'down':function(){}};
\ No newline at end of file