Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.84.js
index a6d24fd..4c13608 100644 (file)
@@ -1 +1 @@
-const a963_0x3261=['enqueue','dropTable','changeColumn','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','prototype','query','sequelize','catch','info','queryInterface','join','removeIndex','sequence','exports','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query\x20%s','table\x20dropped\x20%s','then','addColumn','Removed\x20column\x20%s\x20from\x20%s','util','stringify','inspect','final','tail'];(function(_0x2de5ba,_0x3261a6){const _0x533a1f=function(_0x105015){while(--_0x105015){_0x2de5ba['push'](_0x2de5ba['shift']());}};_0x533a1f(++_0x3261a6);}(a963_0x3261,0x69));const a963_0x533a=function(_0x2de5ba,_0x3261a6){_0x2de5ba=_0x2de5ba-0x0;let _0x533a1f=a963_0x3261[_0x2de5ba];return _0x533a1f;};const _0x1c6fce=a963_0x533a;'use strict';const util=require(_0x1c6fce('0x2')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x1c6fce('0xd')][_0x1c6fce('0x7')]=function(_0x105015){const _0x412ed1=_0x1c6fce;this[_0x412ed1('0x6')]=this[_0x412ed1('0x6')]?this[_0x412ed1('0x6')][_0x412ed1('0xc')](_0x105015):_0x105015();};const Migration=function(_0x42c22b){const _0x3cfc15=_0x1c6fce;this['queryInterface']=_0x42c22b,this[_0x3cfc15('0x15')]=new Sequence();};Migration['prototype'][_0x1c6fce('0x9')]=function(_0x5e0f96,_0xa241cc,_0x202021){const _0x5e9437=_0x1c6fce,_0x4d1db7=this;this[_0x5e9437('0x15')]['enqueue'](function(){const _0x3144aa=_0x5e9437;return _0x4d1db7[_0x3144aa('0x12')]['changeColumn'](_0x5e0f96,_0xa241cc,_0x202021)[_0x3144aa('0x1b')](function(){const _0x5eaf29=_0x3144aa;logger['info'](_0x5eaf29('0xb'),_0xa241cc,_0x5e0f96);})[_0x3144aa('0x10')](function(_0x15ad5a){const _0x1d4189=_0x3144aa;logger[_0x1d4189('0x11')](JSON['stringify'](_0x15ad5a));});});},Migration[_0x1c6fce('0xd')][_0x1c6fce('0x0')]=function(_0x386b12,_0x111c8b,_0x2d0289){const _0x2edc55=_0x1c6fce,_0x20503e=this;this[_0x2edc55('0x15')][_0x2edc55('0x7')](function(){const _0x4f853a=_0x2edc55;return _0x20503e[_0x4f853a('0x12')]['addColumn'](_0x386b12,_0x111c8b,_0x2d0289)[_0x4f853a('0x1b')](function(){const _0x3a14a3=_0x4f853a;logger[_0x3a14a3('0x11')](_0x3a14a3('0x17'),_0x111c8b,_0x386b12);})[_0x4f853a('0x10')](function(_0x551c09){const _0x483ddc=_0x4f853a;logger[_0x483ddc('0x11')](JSON['stringify'](_0x551c09));});});},Migration[_0x1c6fce('0xd')]['dropTable']=function(_0x344fad){const _0x30d2d7=_0x1c6fce,_0x3738bf=this;this[_0x30d2d7('0x15')][_0x30d2d7('0x7')](function(){const _0x33ce96=_0x30d2d7;return _0x3738bf[_0x33ce96('0x12')][_0x33ce96('0x8')](_0x344fad,{'force':!![]})['then'](function(){const _0x11e006=_0x33ce96;logger[_0x11e006('0x11')](_0x11e006('0x1a'),_0x344fad);})[_0x33ce96('0x10')](function(_0x25f348){const _0x2c674c=_0x33ce96;logger[_0x2c674c('0x11')](JSON['stringify'](_0x25f348));});});},Migration[_0x1c6fce('0xd')]['addIndex']=function(_0x4aa8ee,_0x3b63e8,_0x1110a2){const _0x532c08=_0x1c6fce,_0x4be08b=this;this[_0x532c08('0x15')][_0x532c08('0x7')](function(){const _0x383528=_0x532c08;return _0x4be08b[_0x383528('0x12')]['addIndex'](_0x4aa8ee,_0x3b63e8,{'indexName':_0x1110a2})[_0x383528('0x1b')](function(){const _0x28f489=_0x383528;logger[_0x28f489('0x11')]('addIndex\x20%s\x20%s\x20%s',_0x4aa8ee,_0x3b63e8[_0x28f489('0x13')](','),_0x1110a2);})[_0x383528('0x10')](function(_0xd929ba){const _0x240bb8=_0x383528;logger[_0x240bb8('0x11')](JSON[_0x240bb8('0x3')](_0xd929ba));});});},Migration[_0x1c6fce('0xd')][_0x1c6fce('0x14')]=function(_0x44824a,_0x5b0596){const _0x5dedc4=_0x1c6fce,_0x52ba98=this;this['sequence'][_0x5dedc4('0x7')](function(){const _0x1e0be2=_0x5dedc4;return _0x52ba98[_0x1e0be2('0x12')]['removeIndex'](_0x44824a,_0x5b0596)[_0x1e0be2('0x1b')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x44824a,_0x5b0596);})[_0x1e0be2('0x10')](function(_0x2eab1d){const _0x4b8cf8=_0x1e0be2;logger['info'](JSON[_0x4b8cf8('0x3')](_0x2eab1d));});});},Migration[_0x1c6fce('0xd')][_0x1c6fce('0xe')]=function(_0x42bc0f){const _0x142332=_0x1c6fce,_0x1c8b7b=this;this[_0x142332('0x15')][_0x142332('0x7')](function(){const _0x19b18f=_0x142332;return _0x1c8b7b[_0x19b18f('0x12')][_0x19b18f('0xf')][_0x19b18f('0xe')](_0x42bc0f)[_0x19b18f('0x1b')](function(){const _0x2dad1b=_0x19b18f;logger[_0x2dad1b('0x11')](_0x2dad1b('0x19'),_0x42bc0f);})['catch'](function(_0x16dd53){const _0x2f4443=_0x19b18f;logger['info'](JSON[_0x2f4443('0x3')](_0x16dd53));});});},Migration[_0x1c6fce('0xd')]['removeColumn']=function(_0x1677ca,_0x2cd0c5){const _0x28e300=_0x1c6fce,_0x4ebfeb=this;this[_0x28e300('0x15')]['enqueue'](function(){const _0x1fbacb=_0x28e300;return _0x4ebfeb['queryInterface']['removeColumn'](_0x1677ca,_0x2cd0c5)[_0x1fbacb('0x1b')](function(){const _0x591b1b=_0x1fbacb;logger[_0x591b1b('0x11')](_0x591b1b('0x1'),_0x2cd0c5,_0x1677ca);})['catch'](function(_0x35b214){const _0x4f6843=_0x1fbacb;logger[_0x4f6843('0x11')](util['inspect'](_0x35b214,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1c6fce('0xa')]=function(_0x4a2504,_0x20456e,_0x19c73c){const _0x3c3b4c=_0x1c6fce,_0x1fbfb5=this;this[_0x3c3b4c('0x15')][_0x3c3b4c('0x7')](function(){const _0x39ff5f=_0x3c3b4c;return _0x1fbfb5[_0x39ff5f('0x12')][_0x39ff5f('0xa')](_0x4a2504,_0x20456e,_0x19c73c)[_0x39ff5f('0x1b')](function(){const _0x1736cd=_0x39ff5f;logger[_0x1736cd('0x11')](_0x1736cd('0x18'),_0x20456e,_0x19c73c,_0x4a2504);})[_0x39ff5f('0x10')](function(_0x49d39c){const _0x466ad0=_0x39ff5f;logger[_0x466ad0('0x11')](util[_0x466ad0('0x4')](_0x49d39c,{'showHidden':![],'depth':null}));});});},Migration[_0x1c6fce('0xd')][_0x1c6fce('0x5')]=function(_0x1ab8e7){const _0x36fba8=_0x1c6fce;this[_0x36fba8('0x15')][_0x36fba8('0x7')](function(){return _0x1ab8e7();});},module[_0x1c6fce('0x16')]={'up':function(_0x3bb65e){return new Promise(function(_0x339636){const _0x5c5db7=a963_0x533a,_0x361918=new Migration(_0x3bb65e);_0x361918[_0x5c5db7('0x5')](_0x339636);});},'down':function(){}};
\ No newline at end of file
+const a963_0x430c=['prototype','query\x20%s','stringify','sequelize','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex','removeColumn','dropTable','changeColumn','finally','sequence','queryInterface','final','addIndex','catch','info','addIndex\x20%s\x20%s\x20%s','migration','inspect','exports','addColumn','enqueue','then','query','tail','join'];(function(_0x52e880,_0x430c7f){const _0x3ba42e=function(_0x26c307){while(--_0x26c307){_0x52e880['push'](_0x52e880['shift']());}};_0x3ba42e(++_0x430c7f);}(a963_0x430c,0x72));const a963_0x3ba4=function(_0x52e880,_0x430c7f){_0x52e880=_0x52e880-0x0;let _0x3ba42e=a963_0x430c[_0x52e880];return _0x3ba42e;};const _0x110c32=a963_0x3ba4;'use strict';const util=require('util'),logger=require('../config/logger')(_0x110c32('0x7')),Sequence=function(){};Sequence[_0x110c32('0x10')][_0x110c32('0xb')]=function(_0x26c307){const _0x2b2b22=_0x110c32;this[_0x2b2b22('0xe')]=this['tail']?this[_0x2b2b22('0xe')][_0x2b2b22('0x19')](_0x26c307):_0x26c307();};const Migration=function(_0x10a287){const _0x36a0dc=_0x110c32;this[_0x36a0dc('0x1')]=_0x10a287,this[_0x36a0dc('0x0')]=new Sequence();};Migration['prototype'][_0x110c32('0x18')]=function(_0x1d069b,_0x1918aa,_0x496804){const _0xc87abe=_0x110c32,_0x80576e=this;this[_0xc87abe('0x0')][_0xc87abe('0xb')](function(){const _0x50bb08=_0xc87abe;return _0x80576e[_0x50bb08('0x1')][_0x50bb08('0x18')](_0x1d069b,_0x1918aa,_0x496804)[_0x50bb08('0xc')](function(){const _0x142094=_0x50bb08;logger[_0x142094('0x5')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1918aa,_0x1d069b);})[_0x50bb08('0x4')](function(_0x157ad6){const _0x42f0a2=_0x50bb08;logger[_0x42f0a2('0x5')](JSON[_0x42f0a2('0x12')](_0x157ad6));});});},Migration['prototype'][_0x110c32('0xa')]=function(_0x9a7824,_0x1bac0f,_0x42ea60){const _0x15328e=_0x110c32,_0x581e83=this;this[_0x15328e('0x0')][_0x15328e('0xb')](function(){const _0x5725bc=_0x15328e;return _0x581e83[_0x5725bc('0x1')][_0x5725bc('0xa')](_0x9a7824,_0x1bac0f,_0x42ea60)[_0x5725bc('0xc')](function(){const _0x3156a5=_0x5725bc;logger[_0x3156a5('0x5')]('Added\x20column\x20%s\x20to\x20%s',_0x1bac0f,_0x9a7824);})[_0x5725bc('0x4')](function(_0x5d555b){const _0x306cdd=_0x5725bc;logger[_0x306cdd('0x5')](JSON[_0x306cdd('0x12')](_0x5d555b));});});},Migration[_0x110c32('0x10')]['dropTable']=function(_0xfba215){const _0x2d6c8d=_0x110c32,_0x3e0040=this;this[_0x2d6c8d('0x0')][_0x2d6c8d('0xb')](function(){const _0x19f764=_0x2d6c8d;return _0x3e0040[_0x19f764('0x1')][_0x19f764('0x17')](_0xfba215,{'force':!![]})[_0x19f764('0xc')](function(){const _0x42d8a5=_0x19f764;logger[_0x42d8a5('0x5')]('table\x20dropped\x20%s',_0xfba215);})[_0x19f764('0x4')](function(_0x2d7dba){const _0x13d68a=_0x19f764;logger[_0x13d68a('0x5')](JSON[_0x13d68a('0x12')](_0x2d7dba));});});},Migration[_0x110c32('0x10')][_0x110c32('0x3')]=function(_0x253592,_0x2623eb,_0x29d0ec){const _0xcd4fed=_0x110c32,_0x2e87cc=this;this[_0xcd4fed('0x0')][_0xcd4fed('0xb')](function(){const _0x42287a=_0xcd4fed;return _0x2e87cc[_0x42287a('0x1')][_0x42287a('0x3')](_0x253592,_0x2623eb,{'indexName':_0x29d0ec})['then'](function(){const _0x5ea693=_0x42287a;logger[_0x5ea693('0x5')](_0x5ea693('0x6'),_0x253592,_0x2623eb[_0x5ea693('0xf')](','),_0x29d0ec);})[_0x42287a('0x4')](function(_0x1840f4){const _0x17a6fc=_0x42287a;logger['info'](JSON[_0x17a6fc('0x12')](_0x1840f4));});});},Migration[_0x110c32('0x10')][_0x110c32('0x15')]=function(_0x280f2e,_0x4b9391){const _0x2c6135=_0x110c32,_0xe3e8b1=this;this[_0x2c6135('0x0')][_0x2c6135('0xb')](function(){const _0x38a36a=_0x2c6135;return _0xe3e8b1[_0x38a36a('0x1')][_0x38a36a('0x15')](_0x280f2e,_0x4b9391)['then'](function(){logger['info']('removeIndex\x20%s\x20%s',_0x280f2e,_0x4b9391);})[_0x38a36a('0x4')](function(_0x34b3af){const _0x2f0bca=_0x38a36a;logger['info'](JSON[_0x2f0bca('0x12')](_0x34b3af));});});},Migration[_0x110c32('0x10')][_0x110c32('0xd')]=function(_0x2cf2a2){const _0x31a8e6=_0x110c32,_0x28444c=this;this[_0x31a8e6('0x0')][_0x31a8e6('0xb')](function(){const _0x8c6e80=_0x31a8e6;return _0x28444c[_0x8c6e80('0x1')][_0x8c6e80('0x13')]['query'](_0x2cf2a2)['then'](function(){const _0x4220a5=_0x8c6e80;logger[_0x4220a5('0x5')](_0x4220a5('0x11'),_0x2cf2a2);})[_0x8c6e80('0x4')](function(_0x3f498f){const _0x8b19f1=_0x8c6e80;logger[_0x8b19f1('0x5')](JSON[_0x8b19f1('0x12')](_0x3f498f));});});},Migration[_0x110c32('0x10')][_0x110c32('0x16')]=function(_0xe8a9a9,_0x35c02c){const _0x285110=_0x110c32,_0x954b9b=this;this[_0x285110('0x0')]['enqueue'](function(){const _0x581073=_0x285110;return _0x954b9b['queryInterface']['removeColumn'](_0xe8a9a9,_0x35c02c)[_0x581073('0xc')](function(){const _0x31c667=_0x581073;logger[_0x31c667('0x5')]('Removed\x20column\x20%s\x20from\x20%s',_0x35c02c,_0xe8a9a9);})[_0x581073('0x4')](function(_0x56ed8a){const _0x200fb8=_0x581073;logger[_0x200fb8('0x5')](util[_0x200fb8('0x8')](_0x56ed8a,{'showHidden':![],'depth':null}));});});},Migration[_0x110c32('0x10')]['renameColumn']=function(_0x2a0385,_0x21ea1e,_0x229ff4){const _0x58a6fe=_0x110c32,_0x299465=this;this[_0x58a6fe('0x0')][_0x58a6fe('0xb')](function(){const _0x206667=_0x58a6fe;return _0x299465[_0x206667('0x1')]['renameColumn'](_0x2a0385,_0x21ea1e,_0x229ff4)[_0x206667('0xc')](function(){const _0x1456af=_0x206667;logger[_0x1456af('0x5')](_0x1456af('0x14'),_0x21ea1e,_0x229ff4,_0x2a0385);})[_0x206667('0x4')](function(_0x398548){const _0x2ae461=_0x206667;logger[_0x2ae461('0x5')](util[_0x2ae461('0x8')](_0x398548,{'showHidden':![],'depth':null}));});});},Migration[_0x110c32('0x10')][_0x110c32('0x2')]=function(_0x5be6bb){const _0x342604=_0x110c32;this[_0x342604('0x0')][_0x342604('0xb')](function(){return _0x5be6bb();});},module[_0x110c32('0x9')]={'up':function(_0x26c536){return new Promise(function(_0x42bd55){const _0xeac15a=a963_0x3ba4,_0x42476d=new Migration(_0x26c536);_0x42476d[_0xeac15a('0x2')](_0x42bd55);});},'down':function(){}};
\ No newline at end of file