Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.1.js
index 09433a4..fcae7d6 100644 (file)
@@ -1 +1 @@
-const a973_0x5808=['removeColumn','Removed\x20column\x20%s\x20from\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','table\x20dropped\x20%s','prototype','Added\x20column\x20%s\x20to\x20%s','join','tail','removeIndex','inspect','query','removeIndex\x20%s\x20%s','finally','dropTable','sequelize','sequence','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn','../config/logger','util','changeColumn','queryInterface','addIndex','final','stringify','catch','then','enqueue','info'];(function(_0x497079,_0x580806){const _0xa11350=function(_0x48a3f8){while(--_0x48a3f8){_0x497079['push'](_0x497079['shift']());}};_0xa11350(++_0x580806);}(a973_0x5808,0xda));const a973_0xa113=function(_0x497079,_0x580806){_0x497079=_0x497079-0x0;let _0xa11350=a973_0x5808[_0x497079];return _0xa11350;};const _0x18d35a=a973_0xa113;'use strict';const util=require(_0x18d35a('0xc')),logger=require(_0x18d35a('0xb'))('migration'),Sequence=function(){};Sequence[_0x18d35a('0x1b')][_0x18d35a('0x14')]=function(_0x48a3f8){const _0x5d594f=_0x18d35a;this['tail']=this[_0x5d594f('0x0')]?this['tail'][_0x5d594f('0x5')](_0x48a3f8):_0x48a3f8();};const Migration=function(_0x53fd6a){const _0x30b915=_0x18d35a;this[_0x30b915('0xe')]=_0x53fd6a,this['sequence']=new Sequence();};Migration[_0x18d35a('0x1b')][_0x18d35a('0xd')]=function(_0x5a7127,_0x59e9fe,_0xbafa21){const _0x53b199=_0x18d35a,_0x1e8e60=this;this[_0x53b199('0x8')][_0x53b199('0x14')](function(){const _0x465a9f=_0x53b199;return _0x1e8e60[_0x465a9f('0xe')]['changeColumn'](_0x5a7127,_0x59e9fe,_0xbafa21)[_0x465a9f('0x13')](function(){const _0x35ab4d=_0x465a9f;logger[_0x35ab4d('0x15')](_0x35ab4d('0x18'),_0x59e9fe,_0x5a7127);})[_0x465a9f('0x12')](function(_0x5f4a14){const _0x2038ca=_0x465a9f;logger[_0x2038ca('0x15')](JSON['stringify'](_0x5f4a14));});});},Migration[_0x18d35a('0x1b')][_0x18d35a('0xa')]=function(_0x4e86c2,_0x821cb4,_0x4051a6){const _0x4a5acc=_0x18d35a,_0x490dfa=this;this['sequence'][_0x4a5acc('0x14')](function(){const _0x4fc55a=_0x4a5acc;return _0x490dfa[_0x4fc55a('0xe')][_0x4fc55a('0xa')](_0x4e86c2,_0x821cb4,_0x4051a6)[_0x4fc55a('0x13')](function(){const _0x3b9787=_0x4fc55a;logger[_0x3b9787('0x15')](_0x3b9787('0x1c'),_0x821cb4,_0x4e86c2);})['catch'](function(_0x235fb7){logger['info'](JSON['stringify'](_0x235fb7));});});},Migration[_0x18d35a('0x1b')]['dropTable']=function(_0x26d774){const _0x4fc3f8=this;this['sequence']['enqueue'](function(){const _0x430977=a973_0xa113;return _0x4fc3f8[_0x430977('0xe')][_0x430977('0x6')](_0x26d774,{'force':!![]})[_0x430977('0x13')](function(){const _0x2e84bb=_0x430977;logger[_0x2e84bb('0x15')](_0x2e84bb('0x1a'),_0x26d774);})[_0x430977('0x12')](function(_0x47cb51){const _0x45d940=_0x430977;logger[_0x45d940('0x15')](JSON['stringify'](_0x47cb51));});});},Migration[_0x18d35a('0x1b')]['addIndex']=function(_0x2df34f,_0xf7d4bc,_0x1530f1){const _0x2a608c=_0x18d35a,_0x15269c=this;this[_0x2a608c('0x8')][_0x2a608c('0x14')](function(){const _0x3fdfa8=_0x2a608c;return _0x15269c['queryInterface'][_0x3fdfa8('0xf')](_0x2df34f,_0xf7d4bc,{'indexName':_0x1530f1})['then'](function(){const _0x25b0b3=_0x3fdfa8;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x2df34f,_0xf7d4bc[_0x25b0b3('0x1d')](','),_0x1530f1);})[_0x3fdfa8('0x12')](function(_0x5ea58c){const _0x35288b=_0x3fdfa8;logger['info'](JSON[_0x35288b('0x11')](_0x5ea58c));});});},Migration[_0x18d35a('0x1b')]['removeIndex']=function(_0x18e177,_0x5de429){const _0x37a341=_0x18d35a,_0x333e14=this;this['sequence'][_0x37a341('0x14')](function(){const _0x4282d4=_0x37a341;return _0x333e14[_0x4282d4('0xe')][_0x4282d4('0x1')](_0x18e177,_0x5de429)[_0x4282d4('0x13')](function(){const _0x4a604f=_0x4282d4;logger[_0x4a604f('0x15')](_0x4a604f('0x4'),_0x18e177,_0x5de429);})[_0x4282d4('0x12')](function(_0x5230b0){const _0x398af1=_0x4282d4;logger[_0x398af1('0x15')](JSON[_0x398af1('0x11')](_0x5230b0));});});},Migration['prototype']['query']=function(_0x4e5ae0){const _0x3b9cc8=_0x18d35a,_0x52a1d9=this;this['sequence'][_0x3b9cc8('0x14')](function(){const _0x4b616c=_0x3b9cc8;return _0x52a1d9['queryInterface'][_0x4b616c('0x7')][_0x4b616c('0x3')](_0x4e5ae0)[_0x4b616c('0x13')](function(){logger['info']('query\x20%s',_0x4e5ae0);})[_0x4b616c('0x12')](function(_0x28a77a){const _0xe0abb5=_0x4b616c;logger[_0xe0abb5('0x15')](JSON[_0xe0abb5('0x11')](_0x28a77a));});});},Migration[_0x18d35a('0x1b')][_0x18d35a('0x16')]=function(_0x1fa50e,_0x5a75cf){const _0x408867=_0x18d35a,_0x43fa06=this;this[_0x408867('0x8')]['enqueue'](function(){const _0x205167=_0x408867;return _0x43fa06[_0x205167('0xe')][_0x205167('0x16')](_0x1fa50e,_0x5a75cf)['then'](function(){const _0xac5eb0=_0x205167;logger[_0xac5eb0('0x15')](_0xac5eb0('0x17'),_0x5a75cf,_0x1fa50e);})['catch'](function(_0x24fef5){const _0x132a4b=_0x205167;logger[_0x132a4b('0x15')](util[_0x132a4b('0x2')](_0x24fef5,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x3cbb28,_0x19645d,_0x432836){const _0x220035=_0x18d35a,_0x1ae3f8=this;this[_0x220035('0x8')][_0x220035('0x14')](function(){const _0x178a06=_0x220035;return _0x1ae3f8['queryInterface']['renameColumn'](_0x3cbb28,_0x19645d,_0x432836)[_0x178a06('0x13')](function(){const _0x51ebf8=_0x178a06;logger[_0x51ebf8('0x15')](_0x51ebf8('0x9'),_0x19645d,_0x432836,_0x3cbb28);})[_0x178a06('0x12')](function(_0x2f9aa8){const _0x192038=_0x178a06;logger['info'](util[_0x192038('0x2')](_0x2f9aa8,{'showHidden':![],'depth':null}));});});},Migration[_0x18d35a('0x1b')][_0x18d35a('0x10')]=function(_0x5418fd){const _0x264eff=_0x18d35a;this['sequence'][_0x264eff('0x14')](function(){return _0x5418fd();});},module[_0x18d35a('0x19')]={'up':function(_0x1d44d8){return new Promise(function(_0x55cbe6){const _0x2ddc8b=a973_0xa113,_0x245841=new Migration(_0x1d44d8);_0x245841[_0x2ddc8b('0x10')](_0x55cbe6);});},'down':function(){}};
\ No newline at end of file
+const a973_0x1673=['info','exports','queryInterface','prototype','tail','query\x20%s','removeIndex','final','sequelize','removeIndex\x20%s\x20%s','migration','../config/logger','enqueue','removeColumn','table\x20dropped\x20%s','changeColumn','dropTable','sequence','inspect','join','Removed\x20column\x20%s\x20from\x20%s','addIndex\x20%s\x20%s\x20%s','util','query','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex','stringify','then','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','catch','addColumn'];(function(_0x28ba3a,_0x167316){const _0x1141d7=function(_0x3a5211){while(--_0x3a5211){_0x28ba3a['push'](_0x28ba3a['shift']());}};_0x1141d7(++_0x167316);}(a973_0x1673,0x1c3));const a973_0x1141=function(_0x28ba3a,_0x167316){_0x28ba3a=_0x28ba3a-0x0;let _0x1141d7=a973_0x1673[_0x28ba3a];return _0x1141d7;};const _0x49bea9=a973_0x1141;'use strict';const util=require(_0x49bea9('0x0')),logger=require(_0x49bea9('0x16'))(_0x49bea9('0x15')),Sequence=function(){};Sequence['prototype'][_0x49bea9('0x17')]=function(_0x3a5211){const _0x26563a=_0x49bea9;this[_0x26563a('0xf')]=this[_0x26563a('0xf')]?this[_0x26563a('0xf')]['finally'](_0x3a5211):_0x3a5211();};const Migration=function(_0x2b3af8){const _0x4052fb=_0x49bea9;this[_0x4052fb('0xd')]=_0x2b3af8,this[_0x4052fb('0x1c')]=new Sequence();};Migration[_0x49bea9('0xe')][_0x49bea9('0x1a')]=function(_0x4fa469,_0x5a8d49,_0x24d07f){const _0x34e94f=_0x49bea9,_0x20dee2=this;this[_0x34e94f('0x1c')]['enqueue'](function(){const _0x1c4f38=_0x34e94f;return _0x20dee2[_0x1c4f38('0xd')]['changeColumn'](_0x4fa469,_0x5a8d49,_0x24d07f)[_0x1c4f38('0x6')](function(){const _0x11c60f=_0x1c4f38;logger[_0x11c60f('0xb')](_0x11c60f('0x3'),_0x5a8d49,_0x4fa469);})[_0x1c4f38('0x9')](function(_0x1d135f){const _0x2fa349=_0x1c4f38;logger[_0x2fa349('0xb')](JSON[_0x2fa349('0x5')](_0x1d135f));});});},Migration[_0x49bea9('0xe')][_0x49bea9('0xa')]=function(_0x3856b0,_0xe6941d,_0xbc19fa){const _0xf579de=_0x49bea9,_0x6efc60=this;this[_0xf579de('0x1c')][_0xf579de('0x17')](function(){const _0x1f5202=_0xf579de;return _0x6efc60['queryInterface']['addColumn'](_0x3856b0,_0xe6941d,_0xbc19fa)[_0x1f5202('0x6')](function(){const _0x5a4264=_0x1f5202;logger[_0x5a4264('0xb')](_0x5a4264('0x7'),_0xe6941d,_0x3856b0);})[_0x1f5202('0x9')](function(_0x29b849){const _0x5851ef=_0x1f5202;logger[_0x5851ef('0xb')](JSON[_0x5851ef('0x5')](_0x29b849));});});},Migration[_0x49bea9('0xe')][_0x49bea9('0x1b')]=function(_0x39a49a){const _0x45c7c9=_0x49bea9,_0x4fe5f2=this;this['sequence'][_0x45c7c9('0x17')](function(){const _0x186833=_0x45c7c9;return _0x4fe5f2[_0x186833('0xd')][_0x186833('0x1b')](_0x39a49a,{'force':!![]})['then'](function(){const _0x3ae7fb=_0x186833;logger[_0x3ae7fb('0xb')](_0x3ae7fb('0x19'),_0x39a49a);})[_0x186833('0x9')](function(_0x36b50a){const _0x4ab287=_0x186833;logger[_0x4ab287('0xb')](JSON[_0x4ab287('0x5')](_0x36b50a));});});},Migration[_0x49bea9('0xe')][_0x49bea9('0x4')]=function(_0x30ba77,_0x2cae04,_0x5a0a26){const _0x16d34c=_0x49bea9,_0x2cc570=this;this[_0x16d34c('0x1c')][_0x16d34c('0x17')](function(){const _0x3a3b8f=_0x16d34c;return _0x2cc570[_0x3a3b8f('0xd')][_0x3a3b8f('0x4')](_0x30ba77,_0x2cae04,{'indexName':_0x5a0a26})['then'](function(){const _0x1e11e8=_0x3a3b8f;logger['info'](_0x1e11e8('0x20'),_0x30ba77,_0x2cae04[_0x1e11e8('0x1e')](','),_0x5a0a26);})[_0x3a3b8f('0x9')](function(_0x1c63a4){const _0x276445=_0x3a3b8f;logger[_0x276445('0xb')](JSON['stringify'](_0x1c63a4));});});},Migration[_0x49bea9('0xe')]['removeIndex']=function(_0xf81ead,_0x1d36dc){const _0x8cb49=_0x49bea9,_0x2b33e2=this;this[_0x8cb49('0x1c')][_0x8cb49('0x17')](function(){const _0x341fc0=_0x8cb49;return _0x2b33e2['queryInterface'][_0x341fc0('0x11')](_0xf81ead,_0x1d36dc)[_0x341fc0('0x6')](function(){const _0x2991fa=_0x341fc0;logger[_0x2991fa('0xb')](_0x2991fa('0x14'),_0xf81ead,_0x1d36dc);})[_0x341fc0('0x9')](function(_0x41a1f1){const _0x50fd57=_0x341fc0;logger['info'](JSON[_0x50fd57('0x5')](_0x41a1f1));});});},Migration['prototype'][_0x49bea9('0x1')]=function(_0x18389a){const _0x4beda7=_0x49bea9,_0x5a4307=this;this[_0x4beda7('0x1c')][_0x4beda7('0x17')](function(){const _0x527886=_0x4beda7;return _0x5a4307[_0x527886('0xd')][_0x527886('0x13')][_0x527886('0x1')](_0x18389a)['then'](function(){const _0x17406a=_0x527886;logger[_0x17406a('0xb')](_0x17406a('0x10'),_0x18389a);})[_0x527886('0x9')](function(_0x4ba843){const _0x5672ce=_0x527886;logger[_0x5672ce('0xb')](JSON[_0x5672ce('0x5')](_0x4ba843));});});},Migration[_0x49bea9('0xe')]['removeColumn']=function(_0x29e9f3,_0x325d7e){const _0x2064e1=_0x49bea9,_0xf1399c=this;this[_0x2064e1('0x1c')]['enqueue'](function(){const _0x3883b5=_0x2064e1;return _0xf1399c[_0x3883b5('0xd')][_0x3883b5('0x18')](_0x29e9f3,_0x325d7e)[_0x3883b5('0x6')](function(){const _0x587a28=_0x3883b5;logger[_0x587a28('0xb')](_0x587a28('0x1f'),_0x325d7e,_0x29e9f3);})['catch'](function(_0x4975ff){const _0x4401d5=_0x3883b5;logger[_0x4401d5('0xb')](util[_0x4401d5('0x1d')](_0x4975ff,{'showHidden':![],'depth':null}));});});},Migration[_0x49bea9('0xe')][_0x49bea9('0x2')]=function(_0x41f8a9,_0x610f7b,_0x529f23){const _0x2edc18=_0x49bea9,_0x2dcbd6=this;this[_0x2edc18('0x1c')]['enqueue'](function(){const _0x4aae6f=_0x2edc18;return _0x2dcbd6['queryInterface'][_0x4aae6f('0x2')](_0x41f8a9,_0x610f7b,_0x529f23)[_0x4aae6f('0x6')](function(){const _0x1f0ef8=_0x4aae6f;logger['info'](_0x1f0ef8('0x8'),_0x610f7b,_0x529f23,_0x41f8a9);})['catch'](function(_0x495cbe){const _0x3bcd53=_0x4aae6f;logger[_0x3bcd53('0xb')](util[_0x3bcd53('0x1d')](_0x495cbe,{'showHidden':![],'depth':null}));});});},Migration[_0x49bea9('0xe')][_0x49bea9('0x12')]=function(_0x49846e){this['sequence']['enqueue'](function(){return _0x49846e();});},module[_0x49bea9('0xc')]={'up':function(_0x43ac6b){return new Promise(function(_0x42d826){const _0x7ab3e8=a973_0x1141,_0x3455e8=new Migration(_0x43ac6b);_0x3455e8[_0x7ab3e8('0x12')](_0x42d826);});},'down':function(){}};
\ No newline at end of file