Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.11.js
index 8625e44..355e05f 100644 (file)
@@ -1 +1 @@
-const a994_0x3008=['sequelize','query','Added\x20column\x20%s\x20to\x20%s','migration','then','queryInterface','removeColumn','removeIndex\x20%s\x20%s','info','table\x20dropped\x20%s','addIndex','exports','../config/logger','final','renameColumn','addColumn','join','finally','tail','inspect','sequence','catch','removeIndex','stringify','indexName','changeColumn','prototype','Removed\x20column\x20%s\x20from\x20%s','enqueue','addIndex\x20%s\x20%s\x20%s\x20[%s]','dropTable','util','indicesType','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x5df932,_0x300823){const _0x1d7bb9=function(_0x4143d6){while(--_0x4143d6){_0x5df932['push'](_0x5df932['shift']());}};_0x1d7bb9(++_0x300823);}(a994_0x3008,0x1d0));const a994_0x1d7b=function(_0x5df932,_0x300823){_0x5df932=_0x5df932-0x0;let _0x1d7bb9=a994_0x3008[_0x5df932];return _0x1d7bb9;};const _0x4f622b=a994_0x1d7b;'use strict';const util=require(_0x4f622b('0x9')),logger=require(_0x4f622b('0x18'))(_0x4f622b('0xf')),Sequence=function(){};Sequence['prototype'][_0x4f622b('0x6')]=function(_0x4143d6){const _0x48ad8a=_0x4f622b;this[_0x48ad8a('0x1e')]=this[_0x48ad8a('0x1e')]?this[_0x48ad8a('0x1e')][_0x48ad8a('0x1d')](_0x4143d6):_0x4143d6();};const Migration=function(_0x34edef){const _0x4c6e83=_0x4f622b;this[_0x4c6e83('0x11')]=_0x34edef,this['sequence']=new Sequence();};Migration['prototype'][_0x4f622b('0x3')]=function(_0xb605e5,_0x2e1233,_0x3ef28d){const _0x95ae3c=_0x4f622b,_0x252042=this;this[_0x95ae3c('0x20')]['enqueue'](function(){const _0x29385f=_0x95ae3c;return _0x252042[_0x29385f('0x11')][_0x29385f('0x3')](_0xb605e5,_0x2e1233,_0x3ef28d)[_0x29385f('0x10')](function(){const _0x1edea7=_0x29385f;logger['info'](_0x1edea7('0xb'),_0x2e1233,_0xb605e5);})[_0x29385f('0x21')](function(_0x7ec5fb){const _0x5cea8c=_0x29385f;logger[_0x5cea8c('0x14')](JSON[_0x5cea8c('0x1')](_0x7ec5fb));});});},Migration['prototype'][_0x4f622b('0x1b')]=function(_0x6101f0,_0xdd7b0e,_0x56f46a){const _0x3db301=_0x4f622b,_0x24f673=this;this[_0x3db301('0x20')][_0x3db301('0x6')](function(){const _0x53455a=_0x3db301;return _0x24f673['queryInterface'][_0x53455a('0x1b')](_0x6101f0,_0xdd7b0e,_0x56f46a)['then'](function(){const _0x2938bb=_0x53455a;logger['info'](_0x2938bb('0xe'),_0xdd7b0e,_0x6101f0);})[_0x53455a('0x21')](function(_0x4d7e53){const _0x4c824f=_0x53455a;logger[_0x4c824f('0x14')](JSON['stringify'](_0x4d7e53));});});},Migration[_0x4f622b('0x4')][_0x4f622b('0x8')]=function(_0x3f4e5d){const _0x2495e6=_0x4f622b,_0x3f3564=this;this[_0x2495e6('0x20')][_0x2495e6('0x6')](function(){const _0x184003=_0x2495e6;return _0x3f3564['queryInterface']['dropTable'](_0x3f4e5d,{'force':!![]})[_0x184003('0x10')](function(){const _0x11ab0a=_0x184003;logger[_0x11ab0a('0x14')](_0x11ab0a('0x15'),_0x3f4e5d);})['catch'](function(_0x46ecbe){const _0x42b6a9=_0x184003;logger[_0x42b6a9('0x14')](JSON[_0x42b6a9('0x1')](_0x46ecbe));});});},Migration[_0x4f622b('0x4')][_0x4f622b('0x16')]=function(_0x431ff0,_0x12f4dc,_0xb18a21){const _0x2b2296=_0x4f622b,_0x4697ff=this;this[_0x2b2296('0x20')][_0x2b2296('0x6')](function(){const _0x1945cc=_0x2b2296;return _0x4697ff[_0x1945cc('0x11')]['addIndex'](_0x431ff0,_0x12f4dc,{'indexName':_0xb18a21[_0x1945cc('0x2')],'indicesType':_0xb18a21[_0x1945cc('0xa')]})[_0x1945cc('0x10')](function(){const _0xfb6c7c=_0x1945cc;logger[_0xfb6c7c('0x14')](_0xfb6c7c('0x7'),_0x431ff0,_0x12f4dc[_0xfb6c7c('0x1c')](','),_0xb18a21[_0xfb6c7c('0x2')],_0xb18a21[_0xfb6c7c('0xa')]);})['catch'](function(_0x2ba7c6){const _0x5c9b77=_0x1945cc;logger[_0x5c9b77('0x14')](JSON[_0x5c9b77('0x1')](_0x2ba7c6));});});},Migration[_0x4f622b('0x4')][_0x4f622b('0x0')]=function(_0x2e039a,_0x5d2baf){const _0x132201=this;this['sequence']['enqueue'](function(){const _0x7e1610=a994_0x1d7b;return _0x132201['queryInterface'][_0x7e1610('0x0')](_0x2e039a,_0x5d2baf)[_0x7e1610('0x10')](function(){const _0x41be7e=_0x7e1610;logger[_0x41be7e('0x14')](_0x41be7e('0x13'),_0x2e039a,_0x5d2baf);})[_0x7e1610('0x21')](function(_0x2b4f6b){const _0x40ab84=_0x7e1610;logger[_0x40ab84('0x14')](JSON[_0x40ab84('0x1')](_0x2b4f6b));});});},Migration[_0x4f622b('0x4')][_0x4f622b('0xd')]=function(_0x4677e8){const _0x2c3f62=this;this['sequence']['enqueue'](function(){const _0x16c338=a994_0x1d7b;return _0x2c3f62['queryInterface'][_0x16c338('0xc')][_0x16c338('0xd')](_0x4677e8)[_0x16c338('0x10')](function(){logger['info']('query\x20%s',_0x4677e8);})[_0x16c338('0x21')](function(_0x2b91b7){const _0x2bc3bb=_0x16c338;logger[_0x2bc3bb('0x14')](JSON['stringify'](_0x2b91b7));});});},Migration[_0x4f622b('0x4')]['removeColumn']=function(_0x1b012c,_0x3db842){const _0x1e381c=_0x4f622b,_0x5703a0=this;this[_0x1e381c('0x20')][_0x1e381c('0x6')](function(){const _0x4dc98d=_0x1e381c;return _0x5703a0[_0x4dc98d('0x11')][_0x4dc98d('0x12')](_0x1b012c,_0x3db842)[_0x4dc98d('0x10')](function(){const _0x561439=_0x4dc98d;logger[_0x561439('0x14')](_0x561439('0x5'),_0x3db842,_0x1b012c);})[_0x4dc98d('0x21')](function(_0x51a562){const _0x7ccf4a=_0x4dc98d;logger[_0x7ccf4a('0x14')](util[_0x7ccf4a('0x1f')](_0x51a562,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4f622b('0x1a')]=function(_0x4db281,_0x258447,_0x275fff){const _0x498600=_0x4f622b,_0xa2331b=this;this[_0x498600('0x20')]['enqueue'](function(){const _0x4da7d3=_0x498600;return _0xa2331b[_0x4da7d3('0x11')]['renameColumn'](_0x4db281,_0x258447,_0x275fff)['then'](function(){const _0x46ddf8=_0x4da7d3;logger[_0x46ddf8('0x14')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x258447,_0x275fff,_0x4db281);})[_0x4da7d3('0x21')](function(_0x40a3d8){const _0x2b9f2c=_0x4da7d3;logger['info'](util[_0x2b9f2c('0x1f')](_0x40a3d8,{'showHidden':![],'depth':null}));});});},Migration[_0x4f622b('0x4')]['final']=function(_0x5d7b5a){const _0x50a311=_0x4f622b;this[_0x50a311('0x20')][_0x50a311('0x6')](function(){return _0x5d7b5a();});},module[_0x4f622b('0x17')]={'up':function(_0x2c09af){return new Promise(function(_0x4dedd9){const _0x13cfd5=a994_0x1d7b,_0x1edf63=new Migration(_0x2c09af);_0x1edf63[_0x13cfd5('0x19')](_0x4dedd9);});},'down':function(){}};
\ No newline at end of file
+const a994_0x2ed2=['tail','inspect','Removed\x20column\x20%s\x20from\x20%s','sequence','prototype','stringify','indicesType','then','changeColumn','sequelize','finally','info','exports','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','final','queryInterface','../config/logger','removeIndex\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','join','addColumn','renameColumn','query','removeColumn','table\x20dropped\x20%s','query\x20%s','catch','migration','addIndex\x20%s\x20%s\x20%s\x20[%s]','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x43bd85,_0x2ed222){const _0x24485a=function(_0x58fd83){while(--_0x58fd83){_0x43bd85['push'](_0x43bd85['shift']());}};_0x24485a(++_0x2ed222);}(a994_0x2ed2,0x13e));const a994_0x2448=function(_0x43bd85,_0x2ed222){_0x43bd85=_0x43bd85-0x0;let _0x24485a=a994_0x2ed2[_0x43bd85];return _0x24485a;};const _0x41edc1=a994_0x2448;'use strict';const util=require('util'),logger=require(_0x41edc1('0x13'))(_0x41edc1('0x1e')),Sequence=function(){};Sequence['prototype'][_0x41edc1('0x0')]=function(_0x58fd83){const _0x5a7074=_0x41edc1;this[_0x5a7074('0x2')]=this[_0x5a7074('0x2')]?this[_0x5a7074('0x2')][_0x5a7074('0xc')](_0x58fd83):_0x58fd83();};const Migration=function(_0x2b2f5e){const _0x3a418d=_0x41edc1;this[_0x3a418d('0x12')]=_0x2b2f5e,this['sequence']=new Sequence();};Migration[_0x41edc1('0x6')]['changeColumn']=function(_0x3b18b8,_0x5b921a,_0x544319){const _0x54fd81=_0x41edc1,_0xe52792=this;this[_0x54fd81('0x5')]['enqueue'](function(){const _0x45ed83=_0x54fd81;return _0xe52792[_0x45ed83('0x12')][_0x45ed83('0xa')](_0x3b18b8,_0x5b921a,_0x544319)[_0x45ed83('0x9')](function(){const _0x45ad9c=_0x45ed83;logger[_0x45ad9c('0xd')](_0x45ad9c('0x1'),_0x5b921a,_0x3b18b8);})['catch'](function(_0x3036bb){const _0x5d09b9=_0x45ed83;logger['info'](JSON[_0x5d09b9('0x7')](_0x3036bb));});});},Migration[_0x41edc1('0x6')][_0x41edc1('0x17')]=function(_0x492f5c,_0xb1de41,_0x46851c){const _0x513fc5=_0x41edc1,_0x750381=this;this[_0x513fc5('0x5')][_0x513fc5('0x0')](function(){const _0x2fbfe3=_0x513fc5;return _0x750381[_0x2fbfe3('0x12')][_0x2fbfe3('0x17')](_0x492f5c,_0xb1de41,_0x46851c)[_0x2fbfe3('0x9')](function(){const _0x4c0530=_0x2fbfe3;logger[_0x4c0530('0xd')](_0x4c0530('0x15'),_0xb1de41,_0x492f5c);})[_0x2fbfe3('0x1d')](function(_0x55d155){const _0x36525e=_0x2fbfe3;logger['info'](JSON[_0x36525e('0x7')](_0x55d155));});});},Migration['prototype'][_0x41edc1('0xf')]=function(_0x6000c4){const _0x45ee3c=_0x41edc1,_0x23f224=this;this[_0x45ee3c('0x5')][_0x45ee3c('0x0')](function(){const _0x21e48b=_0x45ee3c;return _0x23f224[_0x21e48b('0x12')][_0x21e48b('0xf')](_0x6000c4,{'force':!![]})[_0x21e48b('0x9')](function(){const _0x5db38f=_0x21e48b;logger[_0x5db38f('0xd')](_0x5db38f('0x1b'),_0x6000c4);})[_0x21e48b('0x1d')](function(_0xe5025d){logger['info'](JSON['stringify'](_0xe5025d));});});},Migration[_0x41edc1('0x6')]['addIndex']=function(_0x3f6677,_0x198978,_0x4e13c8){const _0x5d9baf=_0x41edc1,_0x57b630=this;this['sequence'][_0x5d9baf('0x0')](function(){const _0x13f862=_0x5d9baf;return _0x57b630[_0x13f862('0x12')]['addIndex'](_0x3f6677,_0x198978,{'indexName':_0x4e13c8['indexName'],'indicesType':_0x4e13c8[_0x13f862('0x8')]})[_0x13f862('0x9')](function(){const _0x32bad4=_0x13f862;logger[_0x32bad4('0xd')](_0x32bad4('0x1f'),_0x3f6677,_0x198978[_0x32bad4('0x16')](','),_0x4e13c8['indexName'],_0x4e13c8[_0x32bad4('0x8')]);})['catch'](function(_0x531731){const _0x4bf9ea=_0x13f862;logger['info'](JSON[_0x4bf9ea('0x7')](_0x531731));});});},Migration[_0x41edc1('0x6')]['removeIndex']=function(_0x2a0355,_0x47e3e3){const _0x1cbc71=_0x41edc1,_0x112bcf=this;this[_0x1cbc71('0x5')][_0x1cbc71('0x0')](function(){const _0x427ea3=_0x1cbc71;return _0x112bcf[_0x427ea3('0x12')]['removeIndex'](_0x2a0355,_0x47e3e3)[_0x427ea3('0x9')](function(){const _0x4ec929=_0x427ea3;logger[_0x4ec929('0xd')](_0x4ec929('0x14'),_0x2a0355,_0x47e3e3);})[_0x427ea3('0x1d')](function(_0x2d755f){const _0x10fcfb=_0x427ea3;logger[_0x10fcfb('0xd')](JSON['stringify'](_0x2d755f));});});},Migration[_0x41edc1('0x6')]['query']=function(_0x4f65cb){const _0x113f81=_0x41edc1,_0xf830e=this;this[_0x113f81('0x5')]['enqueue'](function(){const _0x50124a=_0x113f81;return _0xf830e[_0x50124a('0x12')][_0x50124a('0xb')][_0x50124a('0x19')](_0x4f65cb)['then'](function(){const _0x536f49=_0x50124a;logger[_0x536f49('0xd')](_0x536f49('0x1c'),_0x4f65cb);})[_0x50124a('0x1d')](function(_0xf76c8f){const _0x28ff82=_0x50124a;logger[_0x28ff82('0xd')](JSON[_0x28ff82('0x7')](_0xf76c8f));});});},Migration['prototype']['removeColumn']=function(_0xaa89e4,_0x101a7e){const _0x4779fe=_0x41edc1,_0x502402=this;this[_0x4779fe('0x5')][_0x4779fe('0x0')](function(){const _0x1125f9=_0x4779fe;return _0x502402[_0x1125f9('0x12')][_0x1125f9('0x1a')](_0xaa89e4,_0x101a7e)[_0x1125f9('0x9')](function(){const _0x505ba1=_0x1125f9;logger[_0x505ba1('0xd')](_0x505ba1('0x4'),_0x101a7e,_0xaa89e4);})[_0x1125f9('0x1d')](function(_0x5f4b0d){const _0x2a9543=_0x1125f9;logger['info'](util[_0x2a9543('0x3')](_0x5f4b0d,{'showHidden':![],'depth':null}));});});},Migration[_0x41edc1('0x6')][_0x41edc1('0x18')]=function(_0x526115,_0x51594f,_0x33ce92){const _0x331816=_0x41edc1,_0x3c4e91=this;this[_0x331816('0x5')][_0x331816('0x0')](function(){const _0x45eaa2=_0x331816;return _0x3c4e91[_0x45eaa2('0x12')]['renameColumn'](_0x526115,_0x51594f,_0x33ce92)[_0x45eaa2('0x9')](function(){const _0x2f6676=_0x45eaa2;logger[_0x2f6676('0xd')](_0x2f6676('0x10'),_0x51594f,_0x33ce92,_0x526115);})[_0x45eaa2('0x1d')](function(_0x408b79){const _0x4ab011=_0x45eaa2;logger[_0x4ab011('0xd')](util[_0x4ab011('0x3')](_0x408b79,{'showHidden':![],'depth':null}));});});},Migration[_0x41edc1('0x6')][_0x41edc1('0x11')]=function(_0x4604e6){const _0x2fbedc=_0x41edc1;this['sequence'][_0x2fbedc('0x0')](function(){return _0x4604e6();});},module[_0x41edc1('0xe')]={'up':function(_0x5ea4f7){return new Promise(function(_0x46fffe){const _0x4ef49a=a994_0x2448,_0x53f168=new Migration(_0x5ea4f7);_0x53f168[_0x4ef49a('0x11')](_0x46fffe);});},'down':function(){}};
\ No newline at end of file