Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.14.js
index 218c049..d472745 100644 (file)
@@ -1 +1 @@
-const a997_0x3da5=['Added\x20column\x20%s\x20to\x20%s','changeColumn','then','exports','addIndex','query','sequelize','enqueue','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s','final','indicesType','info','addColumn','../config/logger','tail','inspect','addIndex\x20%s\x20%s\x20%s\x20[%s]','catch','removeIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','util','removeColumn','finally','dropTable','renameColumn','queryInterface','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','indexName','sequence'];(function(_0x4f66e4,_0x3da5e4){const _0x346993=function(_0xf53ff4){while(--_0xf53ff4){_0x4f66e4['push'](_0x4f66e4['shift']());}};_0x346993(++_0x3da5e4);}(a997_0x3da5,0xcb));const a997_0x3469=function(_0x4f66e4,_0x3da5e4){_0x4f66e4=_0x4f66e4-0x0;let _0x346993=a997_0x3da5[_0x4f66e4];return _0x346993;};const _0x167a33=a997_0x3469;'use strict';const util=require(_0x167a33('0x11')),logger=require(_0x167a33('0x9'))('migration'),Sequence=function(){};Sequence[_0x167a33('0x19')][_0x167a33('0x2')]=function(_0xf53ff4){const _0x439d2e=_0x167a33;this[_0x439d2e('0xa')]=this[_0x439d2e('0xa')]?this[_0x439d2e('0xa')][_0x439d2e('0x13')](_0xf53ff4):_0xf53ff4();};const Migration=function(_0x415d85){const _0x37d1ee=_0x167a33;this[_0x37d1ee('0x16')]=_0x415d85,this[_0x37d1ee('0x1b')]=new Sequence();};Migration[_0x167a33('0x19')]['changeColumn']=function(_0x1e0039,_0x160a69,_0x23d123){const _0x3d4eab=_0x167a33,_0x31ad1f=this;this[_0x3d4eab('0x1b')][_0x3d4eab('0x2')](function(){const _0x5883c0=_0x3d4eab;return _0x31ad1f[_0x5883c0('0x16')][_0x5883c0('0x1d')](_0x1e0039,_0x160a69,_0x23d123)[_0x5883c0('0x1e')](function(){const _0x508f0f=_0x5883c0;logger[_0x508f0f('0x7')](_0x508f0f('0xf'),_0x160a69,_0x1e0039);})[_0x5883c0('0xd')](function(_0x3e86bf){const _0x107cc9=_0x5883c0;logger['info'](JSON[_0x107cc9('0x10')](_0x3e86bf));});});},Migration[_0x167a33('0x19')][_0x167a33('0x8')]=function(_0x579926,_0x38c6b2,_0x545a2a){const _0x4a66e6=_0x167a33,_0xfaa12a=this;this[_0x4a66e6('0x1b')]['enqueue'](function(){const _0x58e04d=_0x4a66e6;return _0xfaa12a[_0x58e04d('0x16')]['addColumn'](_0x579926,_0x38c6b2,_0x545a2a)['then'](function(){const _0x1ac908=_0x58e04d;logger['info'](_0x1ac908('0x1c'),_0x38c6b2,_0x579926);})[_0x58e04d('0xd')](function(_0x440598){const _0x9dd145=_0x58e04d;logger[_0x9dd145('0x7')](JSON[_0x9dd145('0x10')](_0x440598));});});},Migration['prototype'][_0x167a33('0x14')]=function(_0x45c5d7){const _0x22597f=_0x167a33,_0x327943=this;this[_0x22597f('0x1b')][_0x22597f('0x2')](function(){const _0x32ca47=_0x22597f;return _0x327943[_0x32ca47('0x16')][_0x32ca47('0x14')](_0x45c5d7,{'force':!![]})[_0x32ca47('0x1e')](function(){const _0xfc4c73=_0x32ca47;logger[_0xfc4c73('0x7')](_0xfc4c73('0x17'),_0x45c5d7);})[_0x32ca47('0xd')](function(_0x3e9028){const _0xa57e1c=_0x32ca47;logger[_0xa57e1c('0x7')](JSON['stringify'](_0x3e9028));});});},Migration[_0x167a33('0x19')][_0x167a33('0x20')]=function(_0x183332,_0x18ca46,_0x1a4d4e){const _0x598ea4=_0x167a33,_0x24c3f6=this;this[_0x598ea4('0x1b')]['enqueue'](function(){const _0x4377c7=_0x598ea4;return _0x24c3f6[_0x4377c7('0x16')]['addIndex'](_0x183332,_0x18ca46,{'indexName':_0x1a4d4e[_0x4377c7('0x1a')],'indicesType':_0x1a4d4e[_0x4377c7('0x6')]})['then'](function(){const _0x457a3f=_0x4377c7;logger['info'](_0x457a3f('0xc'),_0x183332,_0x18ca46['join'](','),_0x1a4d4e[_0x457a3f('0x1a')],_0x1a4d4e[_0x457a3f('0x6')]);})[_0x4377c7('0xd')](function(_0x103747){const _0xf0b010=_0x4377c7;logger[_0xf0b010('0x7')](JSON['stringify'](_0x103747));});});},Migration[_0x167a33('0x19')][_0x167a33('0xe')]=function(_0x3f71b0,_0x3601d9){const _0x2a85a8=_0x167a33,_0x366069=this;this['sequence'][_0x2a85a8('0x2')](function(){const _0x27d587=_0x2a85a8;return _0x366069[_0x27d587('0x16')]['removeIndex'](_0x3f71b0,_0x3601d9)['then'](function(){const _0x17358c=_0x27d587;logger['info'](_0x17358c('0x4'),_0x3f71b0,_0x3601d9);})['catch'](function(_0x53c36f){const _0xcf5f02=_0x27d587;logger['info'](JSON[_0xcf5f02('0x10')](_0x53c36f));});});},Migration[_0x167a33('0x19')][_0x167a33('0x0')]=function(_0x2fd13d){const _0x11cff0=_0x167a33,_0x3fe6ae=this;this['sequence'][_0x11cff0('0x2')](function(){const _0x4b1fe3=_0x11cff0;return _0x3fe6ae[_0x4b1fe3('0x16')][_0x4b1fe3('0x1')][_0x4b1fe3('0x0')](_0x2fd13d)[_0x4b1fe3('0x1e')](function(){const _0x2a768d=_0x4b1fe3;logger[_0x2a768d('0x7')]('query\x20%s',_0x2fd13d);})['catch'](function(_0x207823){const _0x45159e=_0x4b1fe3;logger[_0x45159e('0x7')](JSON['stringify'](_0x207823));});});},Migration['prototype'][_0x167a33('0x12')]=function(_0x18cef9,_0xaf7ef5){const _0x45096b=_0x167a33,_0x515556=this;this['sequence'][_0x45096b('0x2')](function(){const _0x485000=_0x45096b;return _0x515556[_0x485000('0x16')][_0x485000('0x12')](_0x18cef9,_0xaf7ef5)[_0x485000('0x1e')](function(){const _0x4f9c3a=_0x485000;logger['info'](_0x4f9c3a('0x3'),_0xaf7ef5,_0x18cef9);})[_0x485000('0xd')](function(_0x38faba){const _0x281fae=_0x485000;logger[_0x281fae('0x7')](util[_0x281fae('0xb')](_0x38faba,{'showHidden':![],'depth':null}));});});},Migration[_0x167a33('0x19')][_0x167a33('0x15')]=function(_0x354e94,_0x1822f1,_0x204f7b){const _0x530dc4=_0x167a33,_0x589e4c=this;this[_0x530dc4('0x1b')]['enqueue'](function(){const _0x96ee79=_0x530dc4;return _0x589e4c[_0x96ee79('0x16')][_0x96ee79('0x15')](_0x354e94,_0x1822f1,_0x204f7b)['then'](function(){const _0xce6f61=_0x96ee79;logger[_0xce6f61('0x7')](_0xce6f61('0x18'),_0x1822f1,_0x204f7b,_0x354e94);})[_0x96ee79('0xd')](function(_0x2a56ef){const _0x1cef2d=_0x96ee79;logger[_0x1cef2d('0x7')](util[_0x1cef2d('0xb')](_0x2a56ef,{'showHidden':![],'depth':null}));});});},Migration[_0x167a33('0x19')][_0x167a33('0x5')]=function(_0x4df396){const _0x1f305f=_0x167a33;this[_0x1f305f('0x1b')][_0x1f305f('0x2')](function(){return _0x4df396();});},module[_0x167a33('0x1f')]={'up':function(_0x3068e5){return new Promise(function(_0x56894e){const _0x104a23=a997_0x3469,_0x2051c6=new Migration(_0x3068e5);_0x2051c6[_0x104a23('0x5')](_0x56894e);});},'down':function(){}};
\ No newline at end of file
+const a997_0x329b=['Changed\x20column\x20%s\x20in\x20table\x20%s','then','dropTable','prototype','queryInterface','indicesType','util','removeColumn','sequence','tail','table\x20dropped\x20%s','query','migration','join','inspect','indexName','final','info','Removed\x20column\x20%s\x20from\x20%s','finally','stringify','addColumn','renameColumn','sequelize','enqueue','addIndex','removeIndex','catch'];(function(_0x31c710,_0x329b96){const _0x1c5017=function(_0x245e88){while(--_0x245e88){_0x31c710['push'](_0x31c710['shift']());}};_0x1c5017(++_0x329b96);}(a997_0x329b,0x1dd));const a997_0x1c50=function(_0x31c710,_0x329b96){_0x31c710=_0x31c710-0x0;let _0x1c5017=a997_0x329b[_0x31c710];return _0x1c5017;};const _0x58c7af=a997_0x1c50;'use strict';const util=require(_0x58c7af('0x5')),logger=require('../config/logger')(_0x58c7af('0xb')),Sequence=function(){};Sequence[_0x58c7af('0x2')]['enqueue']=function(_0x245e88){const _0x4edd34=_0x58c7af;this[_0x4edd34('0x8')]=this['tail']?this[_0x4edd34('0x8')][_0x4edd34('0x12')](_0x245e88):_0x245e88();};const Migration=function(_0x32633c){const _0x1925b2=_0x58c7af;this[_0x1925b2('0x3')]=_0x32633c,this['sequence']=new Sequence();};Migration[_0x58c7af('0x2')]['changeColumn']=function(_0x219cbe,_0x5e7de8,_0x55785a){const _0x54d07f=_0x58c7af,_0x2c3196=this;this['sequence'][_0x54d07f('0x17')](function(){const _0x28883c=_0x54d07f;return _0x2c3196['queryInterface']['changeColumn'](_0x219cbe,_0x5e7de8,_0x55785a)[_0x28883c('0x0')](function(){const _0x1845ab=_0x28883c;logger[_0x1845ab('0x10')](_0x1845ab('0x1b'),_0x5e7de8,_0x219cbe);})[_0x28883c('0x1a')](function(_0x34e825){const _0x537bdf=_0x28883c;logger['info'](JSON[_0x537bdf('0x13')](_0x34e825));});});},Migration[_0x58c7af('0x2')]['addColumn']=function(_0x13d6b1,_0x254564,_0x58ec7b){const _0x190eb7=_0x58c7af,_0x36bb7a=this;this[_0x190eb7('0x7')]['enqueue'](function(){const _0x43fd5e=_0x190eb7;return _0x36bb7a[_0x43fd5e('0x3')][_0x43fd5e('0x14')](_0x13d6b1,_0x254564,_0x58ec7b)['then'](function(){const _0xc403a9=_0x43fd5e;logger[_0xc403a9('0x10')]('Added\x20column\x20%s\x20to\x20%s',_0x254564,_0x13d6b1);})['catch'](function(_0x5db94b){const _0x1e31e8=_0x43fd5e;logger[_0x1e31e8('0x10')](JSON[_0x1e31e8('0x13')](_0x5db94b));});});},Migration['prototype'][_0x58c7af('0x1')]=function(_0x4dfb8b){const _0x50a88e=_0x58c7af,_0x3b06e0=this;this[_0x50a88e('0x7')][_0x50a88e('0x17')](function(){const _0x3dead2=_0x50a88e;return _0x3b06e0['queryInterface'][_0x3dead2('0x1')](_0x4dfb8b,{'force':!![]})[_0x3dead2('0x0')](function(){const _0x5c9203=_0x3dead2;logger['info'](_0x5c9203('0x9'),_0x4dfb8b);})['catch'](function(_0xbc7f65){const _0x91c9be=_0x3dead2;logger['info'](JSON[_0x91c9be('0x13')](_0xbc7f65));});});},Migration[_0x58c7af('0x2')][_0x58c7af('0x18')]=function(_0x4e2209,_0x8bb8d7,_0x28ca23){const _0x3361e8=_0x58c7af,_0x5376f9=this;this[_0x3361e8('0x7')][_0x3361e8('0x17')](function(){const _0x23961f=_0x3361e8;return _0x5376f9[_0x23961f('0x3')]['addIndex'](_0x4e2209,_0x8bb8d7,{'indexName':_0x28ca23[_0x23961f('0xe')],'indicesType':_0x28ca23[_0x23961f('0x4')]})[_0x23961f('0x0')](function(){const _0x2ed46d=_0x23961f;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x4e2209,_0x8bb8d7[_0x2ed46d('0xc')](','),_0x28ca23['indexName'],_0x28ca23[_0x2ed46d('0x4')]);})[_0x23961f('0x1a')](function(_0x59ddbf){const _0x40d698=_0x23961f;logger[_0x40d698('0x10')](JSON[_0x40d698('0x13')](_0x59ddbf));});});},Migration['prototype'][_0x58c7af('0x19')]=function(_0x33bb21,_0x531e40){const _0x30b4ae=_0x58c7af,_0x173379=this;this[_0x30b4ae('0x7')]['enqueue'](function(){return _0x173379['queryInterface']['removeIndex'](_0x33bb21,_0x531e40)['then'](function(){logger['info']('removeIndex\x20%s\x20%s',_0x33bb21,_0x531e40);})['catch'](function(_0x5aac26){const _0x31795b=a997_0x1c50;logger[_0x31795b('0x10')](JSON[_0x31795b('0x13')](_0x5aac26));});});},Migration[_0x58c7af('0x2')]['query']=function(_0x40ab63){const _0xea6e86=_0x58c7af,_0x974549=this;this[_0xea6e86('0x7')][_0xea6e86('0x17')](function(){const _0x4348f5=_0xea6e86;return _0x974549[_0x4348f5('0x3')][_0x4348f5('0x16')][_0x4348f5('0xa')](_0x40ab63)[_0x4348f5('0x0')](function(){const _0x447b4f=_0x4348f5;logger[_0x447b4f('0x10')]('query\x20%s',_0x40ab63);})['catch'](function(_0x3ac211){const _0x3b81d7=_0x4348f5;logger[_0x3b81d7('0x10')](JSON['stringify'](_0x3ac211));});});},Migration[_0x58c7af('0x2')][_0x58c7af('0x6')]=function(_0x20c25f,_0x4bdf42){const _0x1001d8=_0x58c7af,_0x1d834e=this;this[_0x1001d8('0x7')][_0x1001d8('0x17')](function(){const _0x4258e5=_0x1001d8;return _0x1d834e[_0x4258e5('0x3')]['removeColumn'](_0x20c25f,_0x4bdf42)['then'](function(){const _0x58ef0c=_0x4258e5;logger[_0x58ef0c('0x10')](_0x58ef0c('0x11'),_0x4bdf42,_0x20c25f);})[_0x4258e5('0x1a')](function(_0x5d1c78){const _0x28c795=_0x4258e5;logger['info'](util[_0x28c795('0xd')](_0x5d1c78,{'showHidden':![],'depth':null}));});});},Migration[_0x58c7af('0x2')][_0x58c7af('0x15')]=function(_0x460b33,_0x5e5dcf,_0x520896){const _0xeebbf4=_0x58c7af,_0x1022dd=this;this[_0xeebbf4('0x7')][_0xeebbf4('0x17')](function(){const _0x444e31=_0xeebbf4;return _0x1022dd[_0x444e31('0x3')]['renameColumn'](_0x460b33,_0x5e5dcf,_0x520896)[_0x444e31('0x0')](function(){const _0x427381=_0x444e31;logger[_0x427381('0x10')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5e5dcf,_0x520896,_0x460b33);})['catch'](function(_0x41e709){const _0x250876=_0x444e31;logger[_0x250876('0x10')](util[_0x250876('0xd')](_0x41e709,{'showHidden':![],'depth':null}));});});},Migration[_0x58c7af('0x2')][_0x58c7af('0xf')]=function(_0x1cea40){const _0xdaf988=_0x58c7af;this[_0xdaf988('0x7')][_0xdaf988('0x17')](function(){return _0x1cea40();});},module['exports']={'up':function(_0x345340){return new Promise(function(_0x16d9e4){const _0x30878d=a997_0x1c50,_0x5593a3=new Migration(_0x345340);_0x5593a3[_0x30878d('0xf')](_0x16d9e4);});},'down':function(){}};
\ No newline at end of file