Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.98.js
index 0387ab3..efdcd30 100644 (file)
@@ -1 +1 @@
-const a990_0x1912=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','exports','dropTable','Added\x20column\x20%s\x20to\x20%s','addColumn','tail','catch','info','addIndex','query','inspect','final','sequence','changeColumn','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s','../config/logger','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','prototype','then','stringify','sequelize','query\x20%s','enqueue','removeIndex','addIndex\x20%s\x20%s\x20%s','join','queryInterface','util'];(function(_0x3fbbd9,_0x191283){const _0x4bc103=function(_0x6e4c4b){while(--_0x6e4c4b){_0x3fbbd9['push'](_0x3fbbd9['shift']());}};_0x4bc103(++_0x191283);}(a990_0x1912,0x192));const a990_0x4bc1=function(_0x3fbbd9,_0x191283){_0x3fbbd9=_0x3fbbd9-0x0;let _0x4bc103=a990_0x1912[_0x3fbbd9];return _0x4bc103;};const _0x5f5864=a990_0x4bc1;'use strict';const util=require(_0x5f5864('0x0')),logger=require(_0x5f5864('0x11'))('migration'),Sequence=function(){};Sequence[_0x5f5864('0x15')][_0x5f5864('0x1a')]=function(_0x6e4c4b){const _0x2222e8=_0x5f5864;this[_0x2222e8('0x6')]=this[_0x2222e8('0x6')]?this[_0x2222e8('0x6')]['finally'](_0x6e4c4b):_0x6e4c4b();};const Migration=function(_0x5660a1){const _0x3251e7=_0x5f5864;this[_0x3251e7('0x1e')]=_0x5660a1,this[_0x3251e7('0xd')]=new Sequence();};Migration[_0x5f5864('0x15')][_0x5f5864('0xe')]=function(_0x43b6af,_0x52b52d,_0xee19a0){const _0x35bf90=_0x5f5864,_0x5eeb73=this;this[_0x35bf90('0xd')][_0x35bf90('0x1a')](function(){const _0x12409a=_0x35bf90;return _0x5eeb73[_0x12409a('0x1e')]['changeColumn'](_0x43b6af,_0x52b52d,_0xee19a0)['then'](function(){const _0x4a2b5c=_0x12409a;logger[_0x4a2b5c('0x8')](_0x4a2b5c('0x13'),_0x52b52d,_0x43b6af);})[_0x12409a('0x7')](function(_0x293179){const _0x55dae8=_0x12409a;logger[_0x55dae8('0x8')](JSON[_0x55dae8('0x17')](_0x293179));});});},Migration[_0x5f5864('0x15')][_0x5f5864('0x5')]=function(_0x5da00e,_0x1e9d3d,_0x514041){const _0x1dd437=_0x5f5864,_0x4a6a36=this;this['sequence'][_0x1dd437('0x1a')](function(){const _0x5a4147=_0x1dd437;return _0x4a6a36[_0x5a4147('0x1e')][_0x5a4147('0x5')](_0x5da00e,_0x1e9d3d,_0x514041)[_0x5a4147('0x16')](function(){const _0x2bcb67=_0x5a4147;logger['info'](_0x2bcb67('0x4'),_0x1e9d3d,_0x5da00e);})[_0x5a4147('0x7')](function(_0xbd346){const _0x1470be=_0x5a4147;logger[_0x1470be('0x8')](JSON[_0x1470be('0x17')](_0xbd346));});});},Migration[_0x5f5864('0x15')][_0x5f5864('0x3')]=function(_0x371808){const _0xb75dd5=_0x5f5864,_0x51ad0f=this;this[_0xb75dd5('0xd')]['enqueue'](function(){const _0x1e90ad=_0xb75dd5;return _0x51ad0f[_0x1e90ad('0x1e')][_0x1e90ad('0x3')](_0x371808,{'force':!![]})[_0x1e90ad('0x16')](function(){const _0x5f53b6=_0x1e90ad;logger['info'](_0x5f53b6('0x10'),_0x371808);})['catch'](function(_0x41c7fc){const _0x5a1289=_0x1e90ad;logger['info'](JSON[_0x5a1289('0x17')](_0x41c7fc));});});},Migration['prototype'][_0x5f5864('0x9')]=function(_0x5c68ef,_0x2c3915,_0x50ff97){const _0x39aabf=_0x5f5864,_0x2b373c=this;this['sequence'][_0x39aabf('0x1a')](function(){const _0x433472=_0x39aabf;return _0x2b373c[_0x433472('0x1e')][_0x433472('0x9')](_0x5c68ef,_0x2c3915,{'indexName':_0x50ff97})[_0x433472('0x16')](function(){const _0xc09568=_0x433472;logger[_0xc09568('0x8')](_0xc09568('0x1c'),_0x5c68ef,_0x2c3915[_0xc09568('0x1d')](','),_0x50ff97);})[_0x433472('0x7')](function(_0x11169f){const _0x15e5e8=_0x433472;logger[_0x15e5e8('0x8')](JSON['stringify'](_0x11169f));});});},Migration[_0x5f5864('0x15')][_0x5f5864('0x1b')]=function(_0x1edc4d,_0x14b8bc){const _0x14d4f2=_0x5f5864,_0x3b5972=this;this[_0x14d4f2('0xd')]['enqueue'](function(){const _0x12a838=_0x14d4f2;return _0x3b5972[_0x12a838('0x1e')][_0x12a838('0x1b')](_0x1edc4d,_0x14b8bc)[_0x12a838('0x16')](function(){const _0x4d4c76=_0x12a838;logger[_0x4d4c76('0x8')]('removeIndex\x20%s\x20%s',_0x1edc4d,_0x14b8bc);})[_0x12a838('0x7')](function(_0x565a17){const _0x1d147a=_0x12a838;logger[_0x1d147a('0x8')](JSON[_0x1d147a('0x17')](_0x565a17));});});},Migration[_0x5f5864('0x15')][_0x5f5864('0xa')]=function(_0x2e5e45){const _0x56f2dc=_0x5f5864,_0x548712=this;this[_0x56f2dc('0xd')][_0x56f2dc('0x1a')](function(){const _0x56fb3a=_0x56f2dc;return _0x548712[_0x56fb3a('0x1e')][_0x56fb3a('0x18')][_0x56fb3a('0xa')](_0x2e5e45)[_0x56fb3a('0x16')](function(){const _0x494474=_0x56fb3a;logger['info'](_0x494474('0x19'),_0x2e5e45);})['catch'](function(_0x33fea8){const _0xceebd9=_0x56fb3a;logger[_0xceebd9('0x8')](JSON['stringify'](_0x33fea8));});});},Migration[_0x5f5864('0x15')][_0x5f5864('0x12')]=function(_0x57332f,_0x57334c){const _0x10698b=_0x5f5864,_0x3025eb=this;this['sequence'][_0x10698b('0x1a')](function(){const _0x438323=_0x10698b;return _0x3025eb[_0x438323('0x1e')][_0x438323('0x12')](_0x57332f,_0x57334c)[_0x438323('0x16')](function(){const _0x3e0f5a=_0x438323;logger[_0x3e0f5a('0x8')](_0x3e0f5a('0xf'),_0x57334c,_0x57332f);})['catch'](function(_0x24d8b3){const _0x24f875=_0x438323;logger[_0x24f875('0x8')](util[_0x24f875('0xb')](_0x24d8b3,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0xc776cb,_0x2abd6b,_0x51ef5d){const _0x46bddc=_0x5f5864,_0x2d245a=this;this[_0x46bddc('0xd')][_0x46bddc('0x1a')](function(){const _0x51a6ee=_0x46bddc;return _0x2d245a[_0x51a6ee('0x1e')][_0x51a6ee('0x14')](_0xc776cb,_0x2abd6b,_0x51ef5d)[_0x51a6ee('0x16')](function(){const _0x6a5a2d=_0x51a6ee;logger['info'](_0x6a5a2d('0x1'),_0x2abd6b,_0x51ef5d,_0xc776cb);})['catch'](function(_0x1e7f65){const _0x41f354=_0x51a6ee;logger[_0x41f354('0x8')](util[_0x41f354('0xb')](_0x1e7f65,{'showHidden':![],'depth':null}));});});},Migration[_0x5f5864('0x15')][_0x5f5864('0xc')]=function(_0x3b07e4){const _0x1dd1a2=_0x5f5864;this[_0x1dd1a2('0xd')][_0x1dd1a2('0x1a')](function(){return _0x3b07e4();});},module[_0x5f5864('0x2')]={'up':function(_0x447f1e){return new Promise(function(_0x324e7a){const _0x6fb13e=a990_0x4bc1,_0x1e4290=new Migration(_0x447f1e);_0x1e4290[_0x6fb13e('0xc')](_0x324e7a);});},'down':function(){}};
\ No newline at end of file
+const a990_0x1c6f=['final','join','enqueue','tail','removeIndex','dropTable','changeColumn','util','removeColumn','table\x20dropped\x20%s','addIndex\x20%s\x20%s\x20%s','stringify','info','then','addColumn','finally','Removed\x20column\x20%s\x20from\x20%s','query\x20%s','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','Added\x20column\x20%s\x20to\x20%s','renameColumn','query','removeIndex\x20%s\x20%s','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','inspect','queryInterface','catch','prototype','sequence'];(function(_0x21efbb,_0x1c6f85){const _0x312469=function(_0x5b621b){while(--_0x5b621b){_0x21efbb['push'](_0x21efbb['shift']());}};_0x312469(++_0x1c6f85);}(a990_0x1c6f,0xe6));const a990_0x3124=function(_0x21efbb,_0x1c6f85){_0x21efbb=_0x21efbb-0x0;let _0x312469=a990_0x1c6f[_0x21efbb];return _0x312469;};const _0x5c388b=a990_0x3124;'use strict';const util=require(_0x5c388b('0x19')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x5c388b('0x10')][_0x5c388b('0x14')]=function(_0x5b621b){const _0x5c3a8b=_0x5c388b;this[_0x5c3a8b('0x15')]=this[_0x5c3a8b('0x15')]?this['tail'][_0x5c3a8b('0x2')](_0x5b621b):_0x5b621b();};const Migration=function(_0x3a427c){const _0x1336bc=_0x5c388b;this[_0x1336bc('0xe')]=_0x3a427c,this[_0x1336bc('0x11')]=new Sequence();};Migration[_0x5c388b('0x10')]['changeColumn']=function(_0x47dcb2,_0x416111,_0x5c1d32){const _0xc9ae17=_0x5c388b,_0x3cb564=this;this[_0xc9ae17('0x11')][_0xc9ae17('0x14')](function(){const _0x1e6241=_0xc9ae17;return _0x3cb564['queryInterface'][_0x1e6241('0x18')](_0x47dcb2,_0x416111,_0x5c1d32)[_0x1e6241('0x0')](function(){const _0x171437=_0x1e6241;logger['info'](_0x171437('0x6'),_0x416111,_0x47dcb2);})[_0x1e6241('0xf')](function(_0x3005f6){const _0x3eda09=_0x1e6241;logger['info'](JSON[_0x3eda09('0x1d')](_0x3005f6));});});},Migration['prototype'][_0x5c388b('0x1')]=function(_0x535080,_0x1512c7,_0x42a2b1){const _0x40d8eb=_0x5c388b,_0x559331=this;this[_0x40d8eb('0x11')][_0x40d8eb('0x14')](function(){const _0xd8f754=_0x40d8eb;return _0x559331['queryInterface'][_0xd8f754('0x1')](_0x535080,_0x1512c7,_0x42a2b1)['then'](function(){const _0x10604f=_0xd8f754;logger[_0x10604f('0x1e')](_0x10604f('0x7'),_0x1512c7,_0x535080);})[_0xd8f754('0xf')](function(_0x33bae4){const _0x688a26=_0xd8f754;logger[_0x688a26('0x1e')](JSON[_0x688a26('0x1d')](_0x33bae4));});});},Migration[_0x5c388b('0x10')]['dropTable']=function(_0x42a35b){const _0x52c83d=_0x5c388b,_0x1abf51=this;this[_0x52c83d('0x11')][_0x52c83d('0x14')](function(){const _0x560b90=_0x52c83d;return _0x1abf51[_0x560b90('0xe')][_0x560b90('0x17')](_0x42a35b,{'force':!![]})[_0x560b90('0x0')](function(){const _0x6e90d4=_0x560b90;logger[_0x6e90d4('0x1e')](_0x6e90d4('0x1b'),_0x42a35b);})[_0x560b90('0xf')](function(_0x3c9aa5){const _0x3c319d=_0x560b90;logger['info'](JSON[_0x3c319d('0x1d')](_0x3c9aa5));});});},Migration[_0x5c388b('0x10')][_0x5c388b('0xb')]=function(_0x560c6f,_0x99ccb1,_0x4fe4b6){const _0x3ee2f0=_0x5c388b,_0x22a91f=this;this['sequence'][_0x3ee2f0('0x14')](function(){const _0x3ae034=_0x3ee2f0;return _0x22a91f['queryInterface'][_0x3ae034('0xb')](_0x560c6f,_0x99ccb1,{'indexName':_0x4fe4b6})[_0x3ae034('0x0')](function(){const _0x1c8ef7=_0x3ae034;logger[_0x1c8ef7('0x1e')](_0x1c8ef7('0x1c'),_0x560c6f,_0x99ccb1[_0x1c8ef7('0x13')](','),_0x4fe4b6);})[_0x3ae034('0xf')](function(_0x13eb14){const _0x21f66d=_0x3ae034;logger[_0x21f66d('0x1e')](JSON[_0x21f66d('0x1d')](_0x13eb14));});});},Migration[_0x5c388b('0x10')][_0x5c388b('0x16')]=function(_0x512b37,_0x21a032){const _0x42b6e3=_0x5c388b,_0x30de76=this;this[_0x42b6e3('0x11')][_0x42b6e3('0x14')](function(){const _0x332980=_0x42b6e3;return _0x30de76[_0x332980('0xe')]['removeIndex'](_0x512b37,_0x21a032)['then'](function(){const _0x431b4f=_0x332980;logger['info'](_0x431b4f('0xa'),_0x512b37,_0x21a032);})[_0x332980('0xf')](function(_0x267dc8){const _0x584c4c=_0x332980;logger[_0x584c4c('0x1e')](JSON[_0x584c4c('0x1d')](_0x267dc8));});});},Migration[_0x5c388b('0x10')][_0x5c388b('0x9')]=function(_0x404826){const _0x3114eb=_0x5c388b,_0x375193=this;this[_0x3114eb('0x11')][_0x3114eb('0x14')](function(){const _0x5948ee=_0x3114eb;return _0x375193[_0x5948ee('0xe')][_0x5948ee('0x5')][_0x5948ee('0x9')](_0x404826)[_0x5948ee('0x0')](function(){const _0x4fcb70=_0x5948ee;logger[_0x4fcb70('0x1e')](_0x4fcb70('0x4'),_0x404826);})[_0x5948ee('0xf')](function(_0x2f2977){const _0x507872=_0x5948ee;logger[_0x507872('0x1e')](JSON[_0x507872('0x1d')](_0x2f2977));});});},Migration['prototype'][_0x5c388b('0x1a')]=function(_0xd5616b,_0x1c701c){const _0x29665c=_0x5c388b,_0x14f231=this;this[_0x29665c('0x11')][_0x29665c('0x14')](function(){const _0x5a4615=_0x29665c;return _0x14f231['queryInterface'][_0x5a4615('0x1a')](_0xd5616b,_0x1c701c)['then'](function(){const _0x57cee5=_0x5a4615;logger[_0x57cee5('0x1e')](_0x57cee5('0x3'),_0x1c701c,_0xd5616b);})['catch'](function(_0x35eb3d){const _0x4300f2=_0x5a4615;logger[_0x4300f2('0x1e')](util[_0x4300f2('0xd')](_0x35eb3d,{'showHidden':![],'depth':null}));});});},Migration[_0x5c388b('0x10')][_0x5c388b('0x8')]=function(_0x217942,_0x1f4c76,_0x519f1c){const _0xd13074=_0x5c388b,_0x230792=this;this['sequence'][_0xd13074('0x14')](function(){const _0x2b1880=_0xd13074;return _0x230792['queryInterface'][_0x2b1880('0x8')](_0x217942,_0x1f4c76,_0x519f1c)[_0x2b1880('0x0')](function(){const _0x258606=_0x2b1880;logger[_0x258606('0x1e')](_0x258606('0xc'),_0x1f4c76,_0x519f1c,_0x217942);})['catch'](function(_0x4c1ba3){const _0x46795e=_0x2b1880;logger[_0x46795e('0x1e')](util[_0x46795e('0xd')](_0x4c1ba3,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5c388b('0x12')]=function(_0x25a3bc){const _0x608d21=_0x5c388b;this[_0x608d21('0x11')][_0x608d21('0x14')](function(){return _0x25a3bc();});},module['exports']={'up':function(_0x47c990){return new Promise(function(_0x19d68f){const _0x2dc379=a990_0x3124,_0x74d997=new Migration(_0x47c990);_0x74d997[_0x2dc379('0x12')](_0x19d68f);});},'down':function(){}};
\ No newline at end of file