Built motion from commit 4a18b36e645f5fa4a517d36f9783bde259878164. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.4.js
index 5fb8ce9..df6e0a4 100644 (file)
@@ -1 +1 @@
-const a977_0x109d=['addIndex','prototype','sequelize','addColumn','query\x20%s','info','enqueue','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','catch','migration','changeColumn','removeIndex','exports','renameColumn','inspect','final','removeIndex\x20%s\x20%s','then','join','Added\x20column\x20%s\x20to\x20%s','stringify','removeColumn','dropTable','tail','query','finally','sequence','addIndex\x20%s\x20%s\x20%s','queryInterface'];(function(_0x4b4294,_0x109daf){const _0x3839dd=function(_0x33e46f){while(--_0x33e46f){_0x4b4294['push'](_0x4b4294['shift']());}};_0x3839dd(++_0x109daf);}(a977_0x109d,0x178));const a977_0x3839=function(_0x4b4294,_0x109daf){_0x4b4294=_0x4b4294-0x0;let _0x3839dd=a977_0x109d[_0x4b4294];return _0x3839dd;};const _0x3e5852=a977_0x3839;'use strict';const util=require('util'),logger=require('../config/logger')(_0x3e5852('0x18')),Sequence=function(){};Sequence[_0x3e5852('0xf')]['enqueue']=function(_0x33e46f){const _0x1b0260=_0x3e5852;this[_0x1b0260('0x8')]=this['tail']?this[_0x1b0260('0x8')][_0x1b0260('0xa')](_0x33e46f):_0x33e46f();};const Migration=function(_0x220b51){const _0x2ef9b7=_0x3e5852;this['queryInterface']=_0x220b51,this[_0x2ef9b7('0xb')]=new Sequence();};Migration[_0x3e5852('0xf')]['changeColumn']=function(_0x175497,_0x633dd3,_0x4f1cab){const _0x2b299d=_0x3e5852,_0x32b859=this;this['sequence'][_0x2b299d('0x14')](function(){const _0x337b08=_0x2b299d;return _0x32b859[_0x337b08('0xd')][_0x337b08('0x19')](_0x175497,_0x633dd3,_0x4f1cab)['then'](function(){const _0x1b1451=_0x337b08;logger[_0x1b1451('0x13')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x633dd3,_0x175497);})['catch'](function(_0x16f095){const _0x54e488=_0x337b08;logger[_0x54e488('0x13')](JSON[_0x54e488('0x5')](_0x16f095));});});},Migration[_0x3e5852('0xf')][_0x3e5852('0x11')]=function(_0x512e5c,_0x10ed25,_0xb8dcc8){const _0x3e4c12=_0x3e5852,_0x300ab3=this;this[_0x3e4c12('0xb')][_0x3e4c12('0x14')](function(){const _0x343870=_0x3e4c12;return _0x300ab3[_0x343870('0xd')][_0x343870('0x11')](_0x512e5c,_0x10ed25,_0xb8dcc8)['then'](function(){const _0x577a34=_0x343870;logger['info'](_0x577a34('0x4'),_0x10ed25,_0x512e5c);})[_0x343870('0x17')](function(_0x4290a7){const _0x3a9bc8=_0x343870;logger[_0x3a9bc8('0x13')](JSON[_0x3a9bc8('0x5')](_0x4290a7));});});},Migration[_0x3e5852('0xf')][_0x3e5852('0x7')]=function(_0x287af8){const _0x5f1290=_0x3e5852,_0x3cd2cd=this;this[_0x5f1290('0xb')]['enqueue'](function(){const _0x3b941d=_0x5f1290;return _0x3cd2cd[_0x3b941d('0xd')][_0x3b941d('0x7')](_0x287af8,{'force':!![]})[_0x3b941d('0x2')](function(){const _0x51f4c2=_0x3b941d;logger[_0x51f4c2('0x13')](_0x51f4c2('0x16'),_0x287af8);})[_0x3b941d('0x17')](function(_0x7e68eb){const _0x58d394=_0x3b941d;logger[_0x58d394('0x13')](JSON[_0x58d394('0x5')](_0x7e68eb));});});},Migration[_0x3e5852('0xf')][_0x3e5852('0xe')]=function(_0x22050b,_0x35f802,_0x4d6103){const _0x44f508=_0x3e5852,_0x51047f=this;this[_0x44f508('0xb')]['enqueue'](function(){const _0x58fd8b=_0x44f508;return _0x51047f[_0x58fd8b('0xd')][_0x58fd8b('0xe')](_0x22050b,_0x35f802,{'indexName':_0x4d6103})[_0x58fd8b('0x2')](function(){const _0x480682=_0x58fd8b;logger[_0x480682('0x13')](_0x480682('0xc'),_0x22050b,_0x35f802[_0x480682('0x3')](','),_0x4d6103);})[_0x58fd8b('0x17')](function(_0x3eb445){logger['info'](JSON['stringify'](_0x3eb445));});});},Migration[_0x3e5852('0xf')][_0x3e5852('0x1a')]=function(_0x282758,_0x3d355c){const _0x156614=_0x3e5852,_0x1e41a3=this;this[_0x156614('0xb')][_0x156614('0x14')](function(){const _0x4406c9=_0x156614;return _0x1e41a3[_0x4406c9('0xd')][_0x4406c9('0x1a')](_0x282758,_0x3d355c)[_0x4406c9('0x2')](function(){const _0x1d7c8e=_0x4406c9;logger[_0x1d7c8e('0x13')](_0x1d7c8e('0x1'),_0x282758,_0x3d355c);})[_0x4406c9('0x17')](function(_0x213bb9){const _0x2b1a1d=_0x4406c9;logger[_0x2b1a1d('0x13')](JSON[_0x2b1a1d('0x5')](_0x213bb9));});});},Migration['prototype'][_0x3e5852('0x9')]=function(_0x43ac7b){const _0x483e0a=_0x3e5852,_0x32a3d7=this;this[_0x483e0a('0xb')]['enqueue'](function(){const _0x5cb1c7=_0x483e0a;return _0x32a3d7[_0x5cb1c7('0xd')][_0x5cb1c7('0x10')]['query'](_0x43ac7b)['then'](function(){const _0x6d6473=_0x5cb1c7;logger['info'](_0x6d6473('0x12'),_0x43ac7b);})['catch'](function(_0x568b8b){const _0x5f533d=_0x5cb1c7;logger[_0x5f533d('0x13')](JSON['stringify'](_0x568b8b));});});},Migration[_0x3e5852('0xf')][_0x3e5852('0x6')]=function(_0x437381,_0x283380){const _0x496422=_0x3e5852,_0x8ef38c=this;this['sequence'][_0x496422('0x14')](function(){const _0x5a556e=_0x496422;return _0x8ef38c[_0x5a556e('0xd')][_0x5a556e('0x6')](_0x437381,_0x283380)[_0x5a556e('0x2')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x283380,_0x437381);})[_0x5a556e('0x17')](function(_0x39cba0){const _0x441674=_0x5a556e;logger[_0x441674('0x13')](util[_0x441674('0x1d')](_0x39cba0,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x17002f,_0x10918e,_0x3f1f8b){const _0x4f0464=_0x3e5852,_0xe89c20=this;this[_0x4f0464('0xb')][_0x4f0464('0x14')](function(){const _0x488f49=_0x4f0464;return _0xe89c20[_0x488f49('0xd')][_0x488f49('0x1c')](_0x17002f,_0x10918e,_0x3f1f8b)[_0x488f49('0x2')](function(){const _0xc58c5e=_0x488f49;logger[_0xc58c5e('0x13')](_0xc58c5e('0x15'),_0x10918e,_0x3f1f8b,_0x17002f);})[_0x488f49('0x17')](function(_0x3e83ba){const _0x16d0f2=_0x488f49;logger[_0x16d0f2('0x13')](util[_0x16d0f2('0x1d')](_0x3e83ba,{'showHidden':![],'depth':null}));});});},Migration[_0x3e5852('0xf')][_0x3e5852('0x0')]=function(_0x3fa305){const _0xd9353a=_0x3e5852;this[_0xd9353a('0xb')]['enqueue'](function(){return _0x3fa305();});},module[_0x3e5852('0x1b')]={'up':function(_0x11b065){return new Promise(function(_0x2ba698){const _0x56ca87=new Migration(_0x11b065);_0x56ca87['final'](_0x2ba698);});},'down':function(){}};
\ No newline at end of file
+const a976_0x13a5=['Added\x20column\x20%s\x20to\x20%s','addIndex','table\x20dropped\x20%s','removeIndex','enqueue','changeColumn','final','query','addIndex\x20%s\x20%s\x20%s','queryInterface','Removed\x20column\x20%s\x20from\x20%s','stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','info','exports','dropTable','inspect','catch','prototype','renameColumn','then','removeColumn','sequelize','addColumn','finally','migration','sequence','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','../config/logger'];(function(_0x53576d,_0x13a5e8){const _0x50c080=function(_0x58fcc5){while(--_0x58fcc5){_0x53576d['push'](_0x53576d['shift']());}};_0x50c080(++_0x13a5e8);}(a976_0x13a5,0x122));const a976_0x50c0=function(_0x53576d,_0x13a5e8){_0x53576d=_0x53576d-0x0;let _0x50c080=a976_0x13a5[_0x53576d];return _0x50c080;};const _0x5be02a=a976_0x50c0;'use strict';const util=require('util'),logger=require(_0x5be02a('0x1c'))(_0x5be02a('0x19')),Sequence=function(){};Sequence[_0x5be02a('0x12')]['enqueue']=function(_0x58fcc5){const _0x404a2f=_0x5be02a;this['tail']=this['tail']?this['tail'][_0x404a2f('0x18')](_0x58fcc5):_0x58fcc5();};const Migration=function(_0x1578e1){this['queryInterface']=_0x1578e1,this['sequence']=new Sequence();};Migration[_0x5be02a('0x12')][_0x5be02a('0x5')]=function(_0x42e2b5,_0x18b2eb,_0x32ea99){const _0x70cb4d=_0x5be02a,_0x479815=this;this[_0x70cb4d('0x1a')][_0x70cb4d('0x4')](function(){const _0x54632c=_0x70cb4d;return _0x479815[_0x54632c('0x9')][_0x54632c('0x5')](_0x42e2b5,_0x18b2eb,_0x32ea99)[_0x54632c('0x14')](function(){const _0x24c068=_0x54632c;logger[_0x24c068('0xd')](_0x24c068('0xc'),_0x18b2eb,_0x42e2b5);})['catch'](function(_0x2be670){const _0x29164c=_0x54632c;logger[_0x29164c('0xd')](JSON['stringify'](_0x2be670));});});},Migration[_0x5be02a('0x12')][_0x5be02a('0x17')]=function(_0x3b164e,_0x5f1674,_0x5361b2){const _0x5db11e=_0x5be02a,_0x51df57=this;this[_0x5db11e('0x1a')][_0x5db11e('0x4')](function(){const _0x599c23=_0x5db11e;return _0x51df57['queryInterface'][_0x599c23('0x17')](_0x3b164e,_0x5f1674,_0x5361b2)[_0x599c23('0x14')](function(){const _0x50a0cf=_0x599c23;logger[_0x50a0cf('0xd')](_0x50a0cf('0x0'),_0x5f1674,_0x3b164e);})['catch'](function(_0xdd57ba){logger['info'](JSON['stringify'](_0xdd57ba));});});},Migration[_0x5be02a('0x12')][_0x5be02a('0xf')]=function(_0x17d60b){const _0x34a968=_0x5be02a,_0x5e05af=this;this[_0x34a968('0x1a')][_0x34a968('0x4')](function(){const _0x425104=_0x34a968;return _0x5e05af['queryInterface']['dropTable'](_0x17d60b,{'force':!![]})[_0x425104('0x14')](function(){const _0x29396b=_0x425104;logger[_0x29396b('0xd')](_0x29396b('0x2'),_0x17d60b);})[_0x425104('0x11')](function(_0x56f5d2){const _0x1263f3=_0x425104;logger[_0x1263f3('0xd')](JSON[_0x1263f3('0xb')](_0x56f5d2));});});},Migration[_0x5be02a('0x12')][_0x5be02a('0x1')]=function(_0x48a1fe,_0xcdee21,_0x8d440a){const _0x534d22=_0x5be02a,_0x2369c8=this;this[_0x534d22('0x1a')]['enqueue'](function(){const _0x1673fb=_0x534d22;return _0x2369c8[_0x1673fb('0x9')]['addIndex'](_0x48a1fe,_0xcdee21,{'indexName':_0x8d440a})[_0x1673fb('0x14')](function(){const _0x467d94=_0x1673fb;logger['info'](_0x467d94('0x8'),_0x48a1fe,_0xcdee21['join'](','),_0x8d440a);})[_0x1673fb('0x11')](function(_0x3ec854){const _0x31100d=_0x1673fb;logger[_0x31100d('0xd')](JSON[_0x31100d('0xb')](_0x3ec854));});});},Migration['prototype'][_0x5be02a('0x3')]=function(_0x1548d4,_0x4cfc06){const _0x33fddb=_0x5be02a,_0x21cb5a=this;this[_0x33fddb('0x1a')]['enqueue'](function(){const _0x2aefdd=_0x33fddb;return _0x21cb5a[_0x2aefdd('0x9')]['removeIndex'](_0x1548d4,_0x4cfc06)[_0x2aefdd('0x14')](function(){const _0x30e22a=_0x2aefdd;logger[_0x30e22a('0xd')]('removeIndex\x20%s\x20%s',_0x1548d4,_0x4cfc06);})[_0x2aefdd('0x11')](function(_0x2553a7){const _0x35d0ba=_0x2aefdd;logger[_0x35d0ba('0xd')](JSON[_0x35d0ba('0xb')](_0x2553a7));});});},Migration[_0x5be02a('0x12')][_0x5be02a('0x7')]=function(_0x27ce62){const _0x59c4b6=_0x5be02a,_0x541b55=this;this[_0x59c4b6('0x1a')][_0x59c4b6('0x4')](function(){const _0x220671=_0x59c4b6;return _0x541b55[_0x220671('0x9')][_0x220671('0x16')]['query'](_0x27ce62)[_0x220671('0x14')](function(){const _0x247e28=_0x220671;logger[_0x247e28('0xd')]('query\x20%s',_0x27ce62);})['catch'](function(_0x2a8630){const _0xa3c3a9=_0x220671;logger[_0xa3c3a9('0xd')](JSON[_0xa3c3a9('0xb')](_0x2a8630));});});},Migration[_0x5be02a('0x12')][_0x5be02a('0x15')]=function(_0x38f4b0,_0x1c8a28){const _0x20805e=_0x5be02a,_0x4523ba=this;this[_0x20805e('0x1a')][_0x20805e('0x4')](function(){const _0x111c39=_0x20805e;return _0x4523ba[_0x111c39('0x9')][_0x111c39('0x15')](_0x38f4b0,_0x1c8a28)[_0x111c39('0x14')](function(){const _0x23d546=_0x111c39;logger[_0x23d546('0xd')](_0x23d546('0xa'),_0x1c8a28,_0x38f4b0);})[_0x111c39('0x11')](function(_0x26a734){const _0x4b5fbe=_0x111c39;logger['info'](util[_0x4b5fbe('0x10')](_0x26a734,{'showHidden':![],'depth':null}));});});},Migration[_0x5be02a('0x12')][_0x5be02a('0x13')]=function(_0x4d7fe5,_0x13e8d3,_0x2808e1){const _0x2c5d27=_0x5be02a,_0x5c0d71=this;this[_0x2c5d27('0x1a')][_0x2c5d27('0x4')](function(){const _0x1c26d9=_0x2c5d27;return _0x5c0d71[_0x1c26d9('0x9')][_0x1c26d9('0x13')](_0x4d7fe5,_0x13e8d3,_0x2808e1)['then'](function(){const _0x2f19ac=_0x1c26d9;logger[_0x2f19ac('0xd')](_0x2f19ac('0x1b'),_0x13e8d3,_0x2808e1,_0x4d7fe5);})[_0x1c26d9('0x11')](function(_0x2bcaa9){const _0xdf7aa0=_0x1c26d9;logger['info'](util[_0xdf7aa0('0x10')](_0x2bcaa9,{'showHidden':![],'depth':null}));});});},Migration[_0x5be02a('0x12')][_0x5be02a('0x6')]=function(_0xd0b698){const _0x4e316c=_0x5be02a;this[_0x4e316c('0x1a')][_0x4e316c('0x4')](function(){return _0xd0b698();});},module[_0x5be02a('0xe')]={'up':function(_0x3ac969){return new Promise(function(_0x5938b8){const _0x51eade=new Migration(_0x3ac969);_0x51eade['final'](_0x5938b8);});},'down':function(){}};
\ No newline at end of file