Built motion from commit 129fb4d95212661e48f0db455e75d668addbaddf. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.1.js
index 7efc32a..4dab108 100644 (file)
@@ -1 +1 @@
-const a991_0x5d48=['catch','Removed\x20column\x20%s\x20from\x20%s','inspect','removeIndex','tail','final','enqueue','prototype','Added\x20column\x20%s\x20to\x20%s','join','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','queryInterface','removeIndex\x20%s\x20%s','addColumn','util','sequelize','query\x20%s','sequence','then','indicesType','changeColumn','info','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','table\x20dropped\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','finally','stringify'];(function(_0x54104b,_0x5d48d6){const _0x3526f1=function(_0x25a54a){while(--_0x25a54a){_0x54104b['push'](_0x54104b['shift']());}};_0x3526f1(++_0x5d48d6);}(a991_0x5d48,0x85));const a991_0x3526=function(_0x54104b,_0x5d48d6){_0x54104b=_0x54104b-0x0;let _0x3526f1=a991_0x5d48[_0x54104b];return _0x3526f1;};const _0x197c1c=a991_0x3526;'use strict';const util=require(_0x197c1c('0x1b')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x197c1c('0x13')][_0x197c1c('0x12')]=function(_0x25a54a){const _0x475bb8=_0x197c1c;this['tail']=this[_0x475bb8('0x10')]?this[_0x475bb8('0x10')][_0x475bb8('0xa')](_0x25a54a):_0x25a54a();};const Migration=function(_0x1d2fcc){const _0x324d16=_0x197c1c;this[_0x324d16('0x18')]=_0x1d2fcc,this[_0x324d16('0x1')]=new Sequence();};Migration[_0x197c1c('0x13')][_0x197c1c('0x4')]=function(_0x397cb7,_0x1f99dd,_0x326d79){const _0x20afa0=_0x197c1c,_0x599086=this;this[_0x20afa0('0x1')]['enqueue'](function(){const _0x5860ea=_0x20afa0;return _0x599086[_0x5860ea('0x18')][_0x5860ea('0x4')](_0x397cb7,_0x1f99dd,_0x326d79)[_0x5860ea('0x2')](function(){const _0x2b000d=_0x5860ea;logger[_0x2b000d('0x5')](_0x2b000d('0x16'),_0x1f99dd,_0x397cb7);})[_0x5860ea('0xc')](function(_0x1a6c8d){const _0x10012e=_0x5860ea;logger[_0x10012e('0x5')](JSON[_0x10012e('0xb')](_0x1a6c8d));});});},Migration['prototype'][_0x197c1c('0x1a')]=function(_0x4cfff1,_0x4ea6a0,_0x507bb7){const _0x541fc2=_0x197c1c,_0x1b8d63=this;this['sequence'][_0x541fc2('0x12')](function(){const _0x1db347=_0x541fc2;return _0x1b8d63[_0x1db347('0x18')][_0x1db347('0x1a')](_0x4cfff1,_0x4ea6a0,_0x507bb7)[_0x1db347('0x2')](function(){const _0x46c318=_0x1db347;logger[_0x46c318('0x5')](_0x46c318('0x14'),_0x4ea6a0,_0x4cfff1);})[_0x1db347('0xc')](function(_0x5d4cbe){const _0x1e9883=_0x1db347;logger['info'](JSON[_0x1e9883('0xb')](_0x5d4cbe));});});},Migration[_0x197c1c('0x13')][_0x197c1c('0x7')]=function(_0x340983){const _0x5b8615=_0x197c1c,_0x576f29=this;this['sequence'][_0x5b8615('0x12')](function(){const _0x1eab6a=_0x5b8615;return _0x576f29['queryInterface']['dropTable'](_0x340983,{'force':!![]})[_0x1eab6a('0x2')](function(){const _0x4e0ae7=_0x1eab6a;logger[_0x4e0ae7('0x5')](_0x4e0ae7('0x8'),_0x340983);})[_0x1eab6a('0xc')](function(_0x4d13a8){const _0x389b3a=_0x1eab6a;logger['info'](JSON[_0x389b3a('0xb')](_0x4d13a8));});});},Migration[_0x197c1c('0x13')]['addIndex']=function(_0x4dc000,_0x3846c3,_0x308037){const _0x2abc80=_0x197c1c,_0x4513a2=this;this[_0x2abc80('0x1')][_0x2abc80('0x12')](function(){const _0x21f00d=_0x2abc80;return _0x4513a2[_0x21f00d('0x18')]['addIndex'](_0x4dc000,_0x3846c3,{'indexName':_0x308037['indexName'],'indicesType':_0x308037[_0x21f00d('0x3')]})['then'](function(){const _0x549e09=_0x21f00d;logger['info'](_0x549e09('0x9'),_0x4dc000,_0x3846c3[_0x549e09('0x15')](','),_0x308037['indexName'],_0x308037[_0x549e09('0x3')]);})[_0x21f00d('0xc')](function(_0x3b9bca){const _0x4f5986=_0x21f00d;logger[_0x4f5986('0x5')](JSON[_0x4f5986('0xb')](_0x3b9bca));});});},Migration[_0x197c1c('0x13')][_0x197c1c('0xf')]=function(_0x208f3c,_0x1051cb){const _0x16f8b9=_0x197c1c,_0x2a6478=this;this['sequence'][_0x16f8b9('0x12')](function(){const _0x1ac4aa=_0x16f8b9;return _0x2a6478[_0x1ac4aa('0x18')][_0x1ac4aa('0xf')](_0x208f3c,_0x1051cb)[_0x1ac4aa('0x2')](function(){const _0x5ade39=_0x1ac4aa;logger[_0x5ade39('0x5')](_0x5ade39('0x19'),_0x208f3c,_0x1051cb);})['catch'](function(_0x3e9474){const _0x6da41a=_0x1ac4aa;logger[_0x6da41a('0x5')](JSON['stringify'](_0x3e9474));});});},Migration[_0x197c1c('0x13')]['query']=function(_0x592458){const _0x8ced59=_0x197c1c,_0x2bd651=this;this[_0x8ced59('0x1')][_0x8ced59('0x12')](function(){const _0x2a34f5=_0x8ced59;return _0x2bd651['queryInterface'][_0x2a34f5('0x1c')]['query'](_0x592458)[_0x2a34f5('0x2')](function(){const _0x209b9f=_0x2a34f5;logger['info'](_0x209b9f('0x0'),_0x592458);})['catch'](function(_0x2ae2ee){const _0x4a40c3=_0x2a34f5;logger[_0x4a40c3('0x5')](JSON[_0x4a40c3('0xb')](_0x2ae2ee));});});},Migration[_0x197c1c('0x13')]['removeColumn']=function(_0x5c77ad,_0x39123a){const _0x408ca5=_0x197c1c,_0x2f46fd=this;this[_0x408ca5('0x1')]['enqueue'](function(){const _0x4ce548=_0x408ca5;return _0x2f46fd['queryInterface']['removeColumn'](_0x5c77ad,_0x39123a)[_0x4ce548('0x2')](function(){const _0x5190da=_0x4ce548;logger[_0x5190da('0x5')](_0x5190da('0xd'),_0x39123a,_0x5c77ad);})['catch'](function(_0x24fd3a){const _0x4d494e=_0x4ce548;logger['info'](util[_0x4d494e('0xe')](_0x24fd3a,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x197c1c('0x17')]=function(_0xf7fe10,_0x2b9b41,_0x328a64){const _0x377ede=_0x197c1c,_0xf1b86a=this;this[_0x377ede('0x1')][_0x377ede('0x12')](function(){const _0x1b0182=_0x377ede;return _0xf1b86a[_0x1b0182('0x18')][_0x1b0182('0x17')](_0xf7fe10,_0x2b9b41,_0x328a64)['then'](function(){const _0x5a9ed0=_0x1b0182;logger[_0x5a9ed0('0x5')](_0x5a9ed0('0x6'),_0x2b9b41,_0x328a64,_0xf7fe10);})['catch'](function(_0x2e0003){const _0x4b9c1b=_0x1b0182;logger[_0x4b9c1b('0x5')](util[_0x4b9c1b('0xe')](_0x2e0003,{'showHidden':![],'depth':null}));});});},Migration[_0x197c1c('0x13')][_0x197c1c('0x11')]=function(_0x4e252b){const _0x198891=_0x197c1c;this[_0x198891('0x1')][_0x198891('0x12')](function(){return _0x4e252b();});},module['exports']={'up':function(_0x499483){return new Promise(function(_0x579713){const _0x5ddb92=a991_0x3526,_0x43e662=new Migration(_0x499483);_0x43e662[_0x5ddb92('0x11')](_0x579713);});},'down':function(){}};
\ No newline at end of file
+const a1153_0x3ac4=['finally','query','inspect','removeIndex','Removed\x20column\x20%s\x20from\x20%s','../config/logger','addColumn','stringify','indexName','catch','removeColumn','migration','exports','Added\x20column\x20%s\x20to\x20%s','dropTable','query\x20%s','enqueue','changeColumn','tail','final','then','info','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','renameColumn','indicesType','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','queryInterface','removeIndex\x20%s\x20%s'];(function(_0x472e9a,_0x6c6bea){const _0x3ac4c0=function(_0x1bd0e2){while(--_0x1bd0e2){_0x472e9a['push'](_0x472e9a['shift']());}};_0x3ac4c0(++_0x6c6bea);}(a1153_0x3ac4,0x138));const a1153_0x1bd0=function(_0x472e9a,_0x6c6bea){_0x472e9a=_0x472e9a-0x131;let _0x3ac4c0=a1153_0x3ac4[_0x472e9a];return _0x3ac4c0;};const a1153_0x4d3d1c=a1153_0x1bd0;'use strict';const util=require('util'),logger=require(a1153_0x4d3d1c(0x13e))(a1153_0x4d3d1c(0x144)),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x2e9eb7){const _0x7e095e=a1153_0x4d3d1c;this['tail']=this[_0x7e095e(0x14b)]?this['tail'][_0x7e095e(0x139)](_0x2e9eb7):_0x2e9eb7();};const Migration=function(_0x141584){const _0x249a09=a1153_0x4d3d1c;this[_0x249a09(0x137)]=_0x141584,this[_0x249a09(0x134)]=new Sequence();};Migration['prototype'][a1153_0x4d3d1c(0x14a)]=function(_0x404e6d,_0x16889a,_0x32ff74){const _0x2f9f5e=a1153_0x4d3d1c,_0xf7e07d=this;this[_0x2f9f5e(0x134)][_0x2f9f5e(0x149)](function(){const _0x3e2051=_0x2f9f5e;return _0xf7e07d[_0x3e2051(0x137)][_0x3e2051(0x14a)](_0x404e6d,_0x16889a,_0x32ff74)[_0x3e2051(0x14d)](function(){const _0x60bd5c=_0x3e2051;logger[_0x60bd5c(0x14e)](_0x60bd5c(0x135),_0x16889a,_0x404e6d);})[_0x3e2051(0x142)](function(_0x4da363){logger['info'](JSON['stringify'](_0x4da363));});});},Migration[a1153_0x4d3d1c(0x131)][a1153_0x4d3d1c(0x13f)]=function(_0x2b606e,_0x511282,_0x2f4576){const _0x3e682b=a1153_0x4d3d1c,_0x4603be=this;this['sequence'][_0x3e682b(0x149)](function(){const _0x1390f8=_0x3e682b;return _0x4603be[_0x1390f8(0x137)][_0x1390f8(0x13f)](_0x2b606e,_0x511282,_0x2f4576)['then'](function(){const _0x43e657=_0x1390f8;logger[_0x43e657(0x14e)](_0x43e657(0x146),_0x511282,_0x2b606e);})['catch'](function(_0xd21a6d){const _0x46fbb0=_0x1390f8;logger['info'](JSON[_0x46fbb0(0x140)](_0xd21a6d));});});},Migration[a1153_0x4d3d1c(0x131)][a1153_0x4d3d1c(0x147)]=function(_0x11c360){const _0x54f0c6=a1153_0x4d3d1c,_0x55765c=this;this[_0x54f0c6(0x134)]['enqueue'](function(){const _0x22fefa=_0x54f0c6;return _0x55765c[_0x22fefa(0x137)][_0x22fefa(0x147)](_0x11c360,{'force':!![]})['then'](function(){const _0xf99411=_0x22fefa;logger['info'](_0xf99411(0x136),_0x11c360);})[_0x22fefa(0x142)](function(_0x307b96){const _0x10e97e=_0x22fefa;logger['info'](JSON[_0x10e97e(0x140)](_0x307b96));});});},Migration[a1153_0x4d3d1c(0x131)]['addIndex']=function(_0x5979e5,_0x35f057,_0x5b04f1){const _0x1af0ce=a1153_0x4d3d1c,_0x4e4d01=this;this['sequence'][_0x1af0ce(0x149)](function(){const _0x4cd378=_0x1af0ce;return _0x4e4d01['queryInterface'][_0x4cd378(0x14f)](_0x5979e5,_0x35f057,{'indexName':_0x5b04f1[_0x4cd378(0x141)],'indicesType':_0x5b04f1[_0x4cd378(0x133)]})[_0x4cd378(0x14d)](function(){const _0x3dc258=_0x4cd378;logger[_0x3dc258(0x14e)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x5979e5,_0x35f057['join'](','),_0x5b04f1['indexName'],_0x5b04f1[_0x3dc258(0x133)]);})[_0x4cd378(0x142)](function(_0x4d780a){logger['info'](JSON['stringify'](_0x4d780a));});});},Migration[a1153_0x4d3d1c(0x131)]['removeIndex']=function(_0x106254,_0x52bff8){const _0x50da42=a1153_0x4d3d1c,_0x3a2094=this;this[_0x50da42(0x134)][_0x50da42(0x149)](function(){const _0x4bd58d=_0x50da42;return _0x3a2094[_0x4bd58d(0x137)][_0x4bd58d(0x13c)](_0x106254,_0x52bff8)[_0x4bd58d(0x14d)](function(){const _0x40115f=_0x4bd58d;logger[_0x40115f(0x14e)](_0x40115f(0x138),_0x106254,_0x52bff8);})[_0x4bd58d(0x142)](function(_0x464c75){const _0x5ae825=_0x4bd58d;logger['info'](JSON[_0x5ae825(0x140)](_0x464c75));});});},Migration[a1153_0x4d3d1c(0x131)][a1153_0x4d3d1c(0x13a)]=function(_0x593d5b){const _0x5ce441=a1153_0x4d3d1c,_0x42dd42=this;this[_0x5ce441(0x134)]['enqueue'](function(){const _0x1fa90d=_0x5ce441;return _0x42dd42[_0x1fa90d(0x137)]['sequelize']['query'](_0x593d5b)[_0x1fa90d(0x14d)](function(){const _0x3bbe94=_0x1fa90d;logger[_0x3bbe94(0x14e)](_0x3bbe94(0x148),_0x593d5b);})[_0x1fa90d(0x142)](function(_0x53fb6c){const _0x30fb78=_0x1fa90d;logger[_0x30fb78(0x14e)](JSON['stringify'](_0x53fb6c));});});},Migration[a1153_0x4d3d1c(0x131)]['removeColumn']=function(_0x322c1b,_0x4d984e){const _0x113b94=this;this['sequence']['enqueue'](function(){const _0x51be47=a1153_0x1bd0;return _0x113b94[_0x51be47(0x137)][_0x51be47(0x143)](_0x322c1b,_0x4d984e)[_0x51be47(0x14d)](function(){const _0x3f671e=_0x51be47;logger[_0x3f671e(0x14e)](_0x3f671e(0x13d),_0x4d984e,_0x322c1b);})['catch'](function(_0x3e0b0d){const _0x36ea21=_0x51be47;logger['info'](util[_0x36ea21(0x13b)](_0x3e0b0d,{'showHidden':![],'depth':null}));});});},Migration[a1153_0x4d3d1c(0x131)][a1153_0x4d3d1c(0x132)]=function(_0x5593ce,_0x1ecc15,_0x32901d){const _0x95dec7=a1153_0x4d3d1c,_0x27eb2c=this;this['sequence'][_0x95dec7(0x149)](function(){const _0x242ea5=_0x95dec7;return _0x27eb2c[_0x242ea5(0x137)]['renameColumn'](_0x5593ce,_0x1ecc15,_0x32901d)[_0x242ea5(0x14d)](function(){const _0x6599ad=_0x242ea5;logger[_0x6599ad(0x14e)](_0x6599ad(0x150),_0x1ecc15,_0x32901d,_0x5593ce);})[_0x242ea5(0x142)](function(_0x533ca3){const _0x5f40cf=_0x242ea5;logger[_0x5f40cf(0x14e)](util[_0x5f40cf(0x13b)](_0x533ca3,{'showHidden':![],'depth':null}));});});},Migration[a1153_0x4d3d1c(0x131)]['final']=function(_0x1092a2){const _0x137df9=a1153_0x4d3d1c;this[_0x137df9(0x134)][_0x137df9(0x149)](function(){return _0x1092a2();});},module[a1153_0x4d3d1c(0x145)]={'up':function(_0x4f2d21){return new Promise(function(_0x2a7196){const _0x56218e=a1153_0x1bd0,_0x19188f=new Migration(_0x4f2d21);_0x19188f[_0x56218e(0x14c)](_0x2a7196);});},'down':function(){}};
\ No newline at end of file