Built motion from commit f651e4b0a7312c0adceb5e57d6684a801a3aaf0d. Version 3.0.0...
[motion-next.git] / server / migrations / 2.5.4.js
index 59a894a..3060d73 100644 (file)
@@ -1 +1 @@
-const a1017_0xa443=['inspect','sequelize','indicesType','queryInterface','query','query\x20%s','renameColumn','stringify','addIndex','info','prototype','removeIndex','indexName','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequence','util','changeColumn','join','migration','addColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\x20%s','tail','../config/logger','then','Removed\x20column\x20%s\x20from\x20%s','final','catch','removeColumn','dropTable','enqueue'];(function(_0x201767,_0xa4434d){const _0x109654=function(_0x1b7a5d){while(--_0x1b7a5d){_0x201767['push'](_0x201767['shift']());}};_0x109654(++_0xa4434d);}(a1017_0xa443,0x142));const a1017_0x1096=function(_0x201767,_0xa4434d){_0x201767=_0x201767-0x0;let _0x109654=a1017_0xa443[_0x201767];return _0x109654;};const _0x54618b=a1017_0x1096;'use strict';const util=require(_0x54618b('0xd')),logger=require(_0x54618b('0x16'))(_0x54618b('0x10')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x1b7a5d){const _0x4da870=_0x54618b;this[_0x4da870('0x15')]=this[_0x4da870('0x15')]?this['tail']['finally'](_0x1b7a5d):_0x1b7a5d();};const Migration=function(_0x2879b7){this['queryInterface']=_0x2879b7,this['sequence']=new Sequence();};Migration[_0x54618b('0x8')][_0x54618b('0xe')]=function(_0x13624f,_0xf1667d,_0x39c3b6){const _0x4093e6=_0x54618b,_0x5b7c92=this;this[_0x4093e6('0xc')][_0x4093e6('0x1d')](function(){const _0xc49b2b=_0x4093e6;return _0x5b7c92['queryInterface'][_0xc49b2b('0xe')](_0x13624f,_0xf1667d,_0x39c3b6)[_0xc49b2b('0x17')](function(){const _0x3eabb1=_0xc49b2b;logger[_0x3eabb1('0x7')](_0x3eabb1('0x12'),_0xf1667d,_0x13624f);})['catch'](function(_0x91bab4){const _0x50eca6=_0xc49b2b;logger[_0x50eca6('0x7')](JSON[_0x50eca6('0x5')](_0x91bab4));});});},Migration[_0x54618b('0x8')][_0x54618b('0x11')]=function(_0x3b3a24,_0x2b66b9,_0x1e3064){const _0x2ae184=_0x54618b,_0x5669bc=this;this['sequence'][_0x2ae184('0x1d')](function(){const _0x35e3a0=_0x2ae184;return _0x5669bc['queryInterface']['addColumn'](_0x3b3a24,_0x2b66b9,_0x1e3064)[_0x35e3a0('0x17')](function(){const _0x241efe=_0x35e3a0;logger[_0x241efe('0x7')](_0x241efe('0x14'),_0x2b66b9,_0x3b3a24);})[_0x35e3a0('0x1a')](function(_0x13f7fe){logger['info'](JSON['stringify'](_0x13f7fe));});});},Migration[_0x54618b('0x8')][_0x54618b('0x1c')]=function(_0x1703da){const _0x591c86=_0x54618b,_0x27491d=this;this['sequence'][_0x591c86('0x1d')](function(){const _0x26f9ec=_0x591c86;return _0x27491d['queryInterface'][_0x26f9ec('0x1c')](_0x1703da,{'force':!![]})[_0x26f9ec('0x17')](function(){const _0x3a4e08=_0x26f9ec;logger[_0x3a4e08('0x7')](_0x3a4e08('0x13'),_0x1703da);})['catch'](function(_0x45ee65){logger['info'](JSON['stringify'](_0x45ee65));});});},Migration[_0x54618b('0x8')][_0x54618b('0x6')]=function(_0x430f27,_0x300ada,_0x51e726){const _0x12450f=_0x54618b,_0xf9c188=this;this['sequence'][_0x12450f('0x1d')](function(){const _0x3b1078=_0x12450f;return _0xf9c188[_0x3b1078('0x1')][_0x3b1078('0x6')](_0x430f27,_0x300ada,{'indexName':_0x51e726[_0x3b1078('0xa')],'indicesType':_0x51e726['indicesType']})[_0x3b1078('0x17')](function(){const _0x5e5960=_0x3b1078;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x430f27,_0x300ada[_0x5e5960('0xf')](','),_0x51e726[_0x5e5960('0xa')],_0x51e726[_0x5e5960('0x0')]);})['catch'](function(_0x3b3a18){const _0xd3655c=_0x3b1078;logger[_0xd3655c('0x7')](JSON[_0xd3655c('0x5')](_0x3b3a18));});});},Migration['prototype'][_0x54618b('0x9')]=function(_0x5a57f9,_0x5c01bd){const _0x46e4da=_0x54618b,_0x12c085=this;this[_0x46e4da('0xc')]['enqueue'](function(){const _0x17a070=_0x46e4da;return _0x12c085['queryInterface']['removeIndex'](_0x5a57f9,_0x5c01bd)[_0x17a070('0x17')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x5a57f9,_0x5c01bd);})[_0x17a070('0x1a')](function(_0x4270e4){const _0x4c914e=_0x17a070;logger[_0x4c914e('0x7')](JSON['stringify'](_0x4270e4));});});},Migration[_0x54618b('0x8')][_0x54618b('0x2')]=function(_0xcdfd3){const _0x212891=_0x54618b,_0x585b9f=this;this[_0x212891('0xc')]['enqueue'](function(){const _0x448f43=_0x212891;return _0x585b9f[_0x448f43('0x1')][_0x448f43('0x1f')][_0x448f43('0x2')](_0xcdfd3)[_0x448f43('0x17')](function(){const _0x24c261=_0x448f43;logger[_0x24c261('0x7')](_0x24c261('0x3'),_0xcdfd3);})[_0x448f43('0x1a')](function(_0x5810f2){const _0x46da7=_0x448f43;logger[_0x46da7('0x7')](JSON[_0x46da7('0x5')](_0x5810f2));});});},Migration['prototype']['removeColumn']=function(_0x3bdf8c,_0x5270e0){const _0x859d8f=_0x54618b,_0x5488dd=this;this[_0x859d8f('0xc')]['enqueue'](function(){const _0x1c6471=_0x859d8f;return _0x5488dd[_0x1c6471('0x1')][_0x1c6471('0x1b')](_0x3bdf8c,_0x5270e0)[_0x1c6471('0x17')](function(){const _0x4cdd82=_0x1c6471;logger[_0x4cdd82('0x7')](_0x4cdd82('0x18'),_0x5270e0,_0x3bdf8c);})['catch'](function(_0x1c5561){const _0x14c23c=_0x1c6471;logger[_0x14c23c('0x7')](util['inspect'](_0x1c5561,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x54618b('0x4')]=function(_0x197b3d,_0x301ccb,_0x47c19c){const _0x449142=_0x54618b,_0x2f1a31=this;this[_0x449142('0xc')]['enqueue'](function(){const _0x4c72fe=_0x449142;return _0x2f1a31[_0x4c72fe('0x1')]['renameColumn'](_0x197b3d,_0x301ccb,_0x47c19c)[_0x4c72fe('0x17')](function(){const _0x20cf1e=_0x4c72fe;logger[_0x20cf1e('0x7')](_0x20cf1e('0xb'),_0x301ccb,_0x47c19c,_0x197b3d);})[_0x4c72fe('0x1a')](function(_0x48256f){const _0x20dd8d=_0x4c72fe;logger[_0x20dd8d('0x7')](util[_0x20dd8d('0x1e')](_0x48256f,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x54618b('0x19')]=function(_0xfa0fb){const _0x5f317d=_0x54618b;this[_0x5f317d('0xc')][_0x5f317d('0x1d')](function(){return _0xfa0fb();});},module['exports']={'up':function(_0x555ceb){return new Promise(function(_0x4cba13){const _0x511aeb=a1017_0x1096,_0x243389=new Migration(_0x555ceb);_0x243389[_0x511aeb('0x19')](_0x4cba13);});},'down':function(){}};
\ No newline at end of file
+const a1017_0x5ce9=['removeIndex','renameColumn','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','Added\x20column\x20%s\x20to\x20%s','addIndex','changeColumn','queryInterface','inspect','tail','stringify','catch','info','dropTable','then','util','migration','../config/logger','final','query','join','sequence','prototype','enqueue','addColumn','table\x20dropped\x20%s','indexName','indicesType','finally','addIndex\x20%s\x20%s\x20%s\x20[%s]','query\x20%s'];(function(_0x16f55b,_0x5ce955){const _0x120203=function(_0x19e930){while(--_0x19e930){_0x16f55b['push'](_0x16f55b['shift']());}};_0x120203(++_0x5ce955);}(a1017_0x5ce9,0x1a0));const a1017_0x1202=function(_0x16f55b,_0x5ce955){_0x16f55b=_0x16f55b-0x0;let _0x120203=a1017_0x5ce9[_0x16f55b];return _0x120203;};const _0x39a664=a1017_0x1202;'use strict';const util=require(_0x39a664('0x2')),logger=require(_0x39a664('0x4'))(_0x39a664('0x3')),Sequence=function(){};Sequence['prototype'][_0x39a664('0xa')]=function(_0x19e930){const _0x1a7334=_0x39a664;this[_0x1a7334('0x1b')]=this['tail']?this['tail'][_0x1a7334('0xf')](_0x19e930):_0x19e930();};const Migration=function(_0x384280){this['queryInterface']=_0x384280,this['sequence']=new Sequence();};Migration['prototype']['changeColumn']=function(_0x16e216,_0x5dd62a,_0x5e35e8){const _0x1913d2=_0x39a664,_0x29ccda=this;this['sequence'][_0x1913d2('0xa')](function(){const _0x530000=_0x1913d2;return _0x29ccda[_0x530000('0x19')][_0x530000('0x18')](_0x16e216,_0x5dd62a,_0x5e35e8)[_0x530000('0x1')](function(){const _0x274d2f=_0x530000;logger[_0x274d2f('0x1e')](_0x274d2f('0x15'),_0x5dd62a,_0x16e216);})[_0x530000('0x1d')](function(_0x27520a){const _0x1432b4=_0x530000;logger[_0x1432b4('0x1e')](JSON[_0x1432b4('0x1c')](_0x27520a));});});},Migration[_0x39a664('0x9')][_0x39a664('0xb')]=function(_0x2636d,_0x53fd33,_0xe30939){const _0x18ae4d=_0x39a664,_0x3198f3=this;this[_0x18ae4d('0x8')]['enqueue'](function(){const _0x19c972=_0x18ae4d;return _0x3198f3['queryInterface'][_0x19c972('0xb')](_0x2636d,_0x53fd33,_0xe30939)[_0x19c972('0x1')](function(){const _0x1ec73a=_0x19c972;logger[_0x1ec73a('0x1e')](_0x1ec73a('0x16'),_0x53fd33,_0x2636d);})[_0x19c972('0x1d')](function(_0x14d27b){const _0x89c3d9=_0x19c972;logger[_0x89c3d9('0x1e')](JSON[_0x89c3d9('0x1c')](_0x14d27b));});});},Migration[_0x39a664('0x9')][_0x39a664('0x0')]=function(_0xa614bf){const _0x1c0830=_0x39a664,_0x4040f5=this;this[_0x1c0830('0x8')][_0x1c0830('0xa')](function(){const _0x5a44f9=_0x1c0830;return _0x4040f5[_0x5a44f9('0x19')]['dropTable'](_0xa614bf,{'force':!![]})[_0x5a44f9('0x1')](function(){const _0x25070a=_0x5a44f9;logger[_0x25070a('0x1e')](_0x25070a('0xc'),_0xa614bf);})[_0x5a44f9('0x1d')](function(_0x4fcff0){const _0x2bde31=_0x5a44f9;logger['info'](JSON[_0x2bde31('0x1c')](_0x4fcff0));});});},Migration[_0x39a664('0x9')][_0x39a664('0x17')]=function(_0x14585c,_0x22575c,_0x1c059d){const _0x229609=_0x39a664,_0x5269a5=this;this[_0x229609('0x8')][_0x229609('0xa')](function(){const _0x3ffcc8=_0x229609;return _0x5269a5['queryInterface'][_0x3ffcc8('0x17')](_0x14585c,_0x22575c,{'indexName':_0x1c059d[_0x3ffcc8('0xd')],'indicesType':_0x1c059d['indicesType']})[_0x3ffcc8('0x1')](function(){const _0x34c21f=_0x3ffcc8;logger[_0x34c21f('0x1e')](_0x34c21f('0x10'),_0x14585c,_0x22575c[_0x34c21f('0x7')](','),_0x1c059d['indexName'],_0x1c059d[_0x34c21f('0xe')]);})[_0x3ffcc8('0x1d')](function(_0x5ed88e){const _0x3770a0=_0x3ffcc8;logger[_0x3770a0('0x1e')](JSON[_0x3770a0('0x1c')](_0x5ed88e));});});},Migration[_0x39a664('0x9')][_0x39a664('0x12')]=function(_0x1a07e4,_0x4f99ac){const _0x29bece=_0x39a664,_0x10baae=this;this[_0x29bece('0x8')][_0x29bece('0xa')](function(){const _0x3db0c4=_0x29bece;return _0x10baae['queryInterface'][_0x3db0c4('0x12')](_0x1a07e4,_0x4f99ac)['then'](function(){const _0xb9ea39=_0x3db0c4;logger[_0xb9ea39('0x1e')]('removeIndex\x20%s\x20%s',_0x1a07e4,_0x4f99ac);})[_0x3db0c4('0x1d')](function(_0x2ba4e1){const _0x23cbce=_0x3db0c4;logger['info'](JSON[_0x23cbce('0x1c')](_0x2ba4e1));});});},Migration[_0x39a664('0x9')][_0x39a664('0x6')]=function(_0x53e32d){const _0x4c3c88=_0x39a664,_0x2982e1=this;this[_0x4c3c88('0x8')][_0x4c3c88('0xa')](function(){const _0x5f5336=_0x4c3c88;return _0x2982e1['queryInterface']['sequelize']['query'](_0x53e32d)['then'](function(){const _0x1febd0=a1017_0x1202;logger[_0x1febd0('0x1e')](_0x1febd0('0x11'),_0x53e32d);})[_0x5f5336('0x1d')](function(_0x468107){const _0x128795=_0x5f5336;logger['info'](JSON[_0x128795('0x1c')](_0x468107));});});},Migration[_0x39a664('0x9')]['removeColumn']=function(_0x10b449,_0x1e20fb){const _0x33eb0c=_0x39a664,_0x529a8b=this;this[_0x33eb0c('0x8')]['enqueue'](function(){const _0x2bc295=_0x33eb0c;return _0x529a8b[_0x2bc295('0x19')][_0x2bc295('0x14')](_0x10b449,_0x1e20fb)[_0x2bc295('0x1')](function(){const _0x28c41d=_0x2bc295;logger[_0x28c41d('0x1e')]('Removed\x20column\x20%s\x20from\x20%s',_0x1e20fb,_0x10b449);})[_0x2bc295('0x1d')](function(_0x75731e){const _0x3ecdf1=_0x2bc295;logger['info'](util[_0x3ecdf1('0x1a')](_0x75731e,{'showHidden':![],'depth':null}));});});},Migration[_0x39a664('0x9')]['renameColumn']=function(_0x585f3a,_0x21a4f4,_0x57f66a){const _0x5617e7=_0x39a664,_0x2ccfac=this;this[_0x5617e7('0x8')][_0x5617e7('0xa')](function(){const _0x26d086=_0x5617e7;return _0x2ccfac[_0x26d086('0x19')][_0x26d086('0x13')](_0x585f3a,_0x21a4f4,_0x57f66a)[_0x26d086('0x1')](function(){const _0x1c5ad5=_0x26d086;logger[_0x1c5ad5('0x1e')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x21a4f4,_0x57f66a,_0x585f3a);})[_0x26d086('0x1d')](function(_0x3c030d){const _0xe6c7eb=_0x26d086;logger['info'](util[_0xe6c7eb('0x1a')](_0x3c030d,{'showHidden':![],'depth':null}));});});},Migration[_0x39a664('0x9')][_0x39a664('0x5')]=function(_0x296966){const _0x56e23e=_0x39a664;this['sequence'][_0x56e23e('0xa')](function(){return _0x296966();});},module['exports']={'up':function(_0x358d8b){return new Promise(function(_0x346462){const _0x3362d8=a1017_0x1202,_0x4127bb=new Migration(_0x358d8b);_0x4127bb[_0x3362d8('0x5')](_0x346462);});},'down':function(){}};
\ No newline at end of file