Built motion from commit 973e3e332e1c8e2f84c4b0cd2e5af794131724f5. Version 3.0.0...
[motion-next.git] / server / migrations / 2.2.1.js
index 6f01f09..007b57b 100644 (file)
@@ -1 +1 @@
-const a966_0x4f14=['query','exports','removeColumn','queryInterface','query\x20%s','../config/logger','removeIndex','prototype','sequelize','enqueue','dropTable','addColumn','sequence','Removed\x20column\x20%s\x20from\x20%s','migration','stringify','addIndex','final','catch','table\x20dropped\x20%s','info','changeColumn','finally','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','inspect','util','then','join','Added\x20column\x20%s\x20to\x20%s','renameColumn','tail'];(function(_0x569398,_0x4f147f){const _0x253abf=function(_0x5500e7){while(--_0x5500e7){_0x569398['push'](_0x569398['shift']());}};_0x253abf(++_0x4f147f);}(a966_0x4f14,0x13a));const a966_0x253a=function(_0x569398,_0x4f147f){_0x569398=_0x569398-0x0;let _0x253abf=a966_0x4f14[_0x569398];return _0x253abf;};const _0x572c75=a966_0x253a;'use strict';const util=require(_0x572c75('0x15')),logger=require(_0x572c75('0x1'))(_0x572c75('0xa')),Sequence=function(){};Sequence['prototype'][_0x572c75('0x5')]=function(_0x5500e7){const _0x1612d8=_0x572c75;this[_0x1612d8('0x1a')]=this['tail']?this[_0x1612d8('0x1a')][_0x1612d8('0x12')](_0x5500e7):_0x5500e7();};const Migration=function(_0x436122){const _0x3816d9=_0x572c75;this['queryInterface']=_0x436122,this[_0x3816d9('0x8')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x46fcf3,_0xa96038,_0x5e3ad7){const _0x11b716=_0x572c75,_0x250a24=this;this[_0x11b716('0x8')][_0x11b716('0x5')](function(){const _0x29a629=_0x11b716;return _0x250a24['queryInterface'][_0x29a629('0x11')](_0x46fcf3,_0xa96038,_0x5e3ad7)[_0x29a629('0x16')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xa96038,_0x46fcf3);})[_0x29a629('0xe')](function(_0x451698){const _0x115c32=_0x29a629;logger[_0x115c32('0x10')](JSON[_0x115c32('0xb')](_0x451698));});});},Migration[_0x572c75('0x3')][_0x572c75('0x7')]=function(_0x5dadca,_0x487b9b,_0xf2809f){const _0x33e030=_0x572c75,_0x388810=this;this[_0x33e030('0x8')][_0x33e030('0x5')](function(){const _0x4f09fa=_0x33e030;return _0x388810[_0x4f09fa('0x1e')]['addColumn'](_0x5dadca,_0x487b9b,_0xf2809f)[_0x4f09fa('0x16')](function(){const _0x811dfa=_0x4f09fa;logger['info'](_0x811dfa('0x18'),_0x487b9b,_0x5dadca);})[_0x4f09fa('0xe')](function(_0x42b7c){const _0x58f14d=_0x4f09fa;logger[_0x58f14d('0x10')](JSON[_0x58f14d('0xb')](_0x42b7c));});});},Migration[_0x572c75('0x3')][_0x572c75('0x6')]=function(_0x53088e){const _0x4fc3ca=_0x572c75,_0x42325d=this;this[_0x4fc3ca('0x8')][_0x4fc3ca('0x5')](function(){const _0x5ae85b=_0x4fc3ca;return _0x42325d[_0x5ae85b('0x1e')][_0x5ae85b('0x6')](_0x53088e,{'force':!![]})[_0x5ae85b('0x16')](function(){const _0x47f8f9=_0x5ae85b;logger['info'](_0x47f8f9('0xf'),_0x53088e);})[_0x5ae85b('0xe')](function(_0x3e5ff1){const _0x360597=_0x5ae85b;logger['info'](JSON[_0x360597('0xb')](_0x3e5ff1));});});},Migration['prototype'][_0x572c75('0xc')]=function(_0x12b4a6,_0x1eacd9,_0x4b54a0){const _0x11d2b6=_0x572c75,_0x811bd=this;this[_0x11d2b6('0x8')][_0x11d2b6('0x5')](function(){const _0x4d37bd=_0x11d2b6;return _0x811bd['queryInterface'][_0x4d37bd('0xc')](_0x12b4a6,_0x1eacd9,{'indexName':_0x4b54a0})[_0x4d37bd('0x16')](function(){const _0x28fa12=_0x4d37bd;logger[_0x28fa12('0x10')]('addIndex\x20%s\x20%s\x20%s',_0x12b4a6,_0x1eacd9[_0x28fa12('0x17')](','),_0x4b54a0);})['catch'](function(_0x370522){const _0xd39a59=_0x4d37bd;logger[_0xd39a59('0x10')](JSON['stringify'](_0x370522));});});},Migration[_0x572c75('0x3')][_0x572c75('0x2')]=function(_0x33c983,_0x45d35a){const _0x8093e9=_0x572c75,_0x35c4e6=this;this['sequence'][_0x8093e9('0x5')](function(){const _0x9c75c9=_0x8093e9;return _0x35c4e6[_0x9c75c9('0x1e')][_0x9c75c9('0x2')](_0x33c983,_0x45d35a)['then'](function(){logger['info']('removeIndex\x20%s\x20%s',_0x33c983,_0x45d35a);})['catch'](function(_0x2b8ef7){logger['info'](JSON['stringify'](_0x2b8ef7));});});},Migration[_0x572c75('0x3')]['query']=function(_0x5b2221){const _0x3f7c6=_0x572c75,_0x5060d7=this;this['sequence'][_0x3f7c6('0x5')](function(){const _0x1066a7=_0x3f7c6;return _0x5060d7[_0x1066a7('0x1e')][_0x1066a7('0x4')][_0x1066a7('0x1b')](_0x5b2221)['then'](function(){const _0x2d86ba=_0x1066a7;logger[_0x2d86ba('0x10')](_0x2d86ba('0x0'),_0x5b2221);})[_0x1066a7('0xe')](function(_0x54420f){const _0xf1b3dc=_0x1066a7;logger[_0xf1b3dc('0x10')](JSON[_0xf1b3dc('0xb')](_0x54420f));});});},Migration[_0x572c75('0x3')][_0x572c75('0x1d')]=function(_0x48b933,_0x14ea54){const _0x1a0f42=_0x572c75,_0xcce72e=this;this[_0x1a0f42('0x8')][_0x1a0f42('0x5')](function(){const _0x5207bc=_0x1a0f42;return _0xcce72e['queryInterface'][_0x5207bc('0x1d')](_0x48b933,_0x14ea54)[_0x5207bc('0x16')](function(){const _0x3b94bf=_0x5207bc;logger[_0x3b94bf('0x10')](_0x3b94bf('0x9'),_0x14ea54,_0x48b933);})[_0x5207bc('0xe')](function(_0x5c9375){const _0x5bcbf8=_0x5207bc;logger[_0x5bcbf8('0x10')](util[_0x5bcbf8('0x14')](_0x5c9375,{'showHidden':![],'depth':null}));});});},Migration[_0x572c75('0x3')][_0x572c75('0x19')]=function(_0x5327ba,_0x31dfc9,_0x5b5abf){const _0x4fe074=_0x572c75,_0x4bf392=this;this['sequence'][_0x4fe074('0x5')](function(){const _0x175542=_0x4fe074;return _0x4bf392[_0x175542('0x1e')]['renameColumn'](_0x5327ba,_0x31dfc9,_0x5b5abf)[_0x175542('0x16')](function(){const _0x30460d=_0x175542;logger[_0x30460d('0x10')](_0x30460d('0x13'),_0x31dfc9,_0x5b5abf,_0x5327ba);})['catch'](function(_0x104d5c){const _0xd4dc9b=_0x175542;logger['info'](util[_0xd4dc9b('0x14')](_0x104d5c,{'showHidden':![],'depth':null}));});});},Migration[_0x572c75('0x3')][_0x572c75('0xd')]=function(_0x2db6f2){this['sequence']['enqueue'](function(){return _0x2db6f2();});},module[_0x572c75('0x1c')]={'up':function(_0x2c04f4){return new Promise(function(_0x4704a0){const _0x721eb=a966_0x253a,_0x38d646=new Migration(_0x2c04f4);_0x38d646[_0x721eb('0xd')](_0x4704a0);});},'down':function(){}};
\ No newline at end of file
+const a966_0x1f46=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Removed\x20column\x20%s\x20from\x20%s','catch','exports','final','tail','removeIndex','Added\x20column\x20%s\x20to\x20%s','../config/logger','queryInterface','inspect','renameColumn','sequelize','migration','dropTable','stringify','addIndex\x20%s\x20%s\x20%s','util','prototype','addIndex','query\x20%s','info','removeColumn','changeColumn','enqueue','then','query','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0xfec16e,_0x1f4614){const _0x274b63=function(_0x561307){while(--_0x561307){_0xfec16e['push'](_0xfec16e['shift']());}};_0x274b63(++_0x1f4614);}(a966_0x1f46,0x100));const a966_0x274b=function(_0xfec16e,_0x1f4614){_0xfec16e=_0xfec16e-0x0;let _0x274b63=a966_0x1f46[_0xfec16e];return _0x274b63;};const _0x240a4b=a966_0x274b;'use strict';const util=require(_0x240a4b('0x16')),logger=require(_0x240a4b('0xd'))(_0x240a4b('0x12')),Sequence=function(){};Sequence[_0x240a4b('0x17')][_0x240a4b('0x0')]=function(_0x561307){const _0x2995ca=_0x240a4b;this[_0x2995ca('0xa')]=this['tail']?this[_0x2995ca('0xa')]['finally'](_0x561307):_0x561307();};const Migration=function(_0x5e8009){this['queryInterface']=_0x5e8009,this['sequence']=new Sequence();};Migration[_0x240a4b('0x17')][_0x240a4b('0x1c')]=function(_0x4ff55f,_0x176eb9,_0xf77bcd){const _0x1dafb5=_0x240a4b,_0x2e6b10=this;this['sequence'][_0x1dafb5('0x0')](function(){const _0x29f2f9=_0x1dafb5;return _0x2e6b10['queryInterface'][_0x29f2f9('0x1c')](_0x4ff55f,_0x176eb9,_0xf77bcd)['then'](function(){const _0x65d58a=_0x29f2f9;logger['info'](_0x65d58a('0x4'),_0x176eb9,_0x4ff55f);})[_0x29f2f9('0x7')](function(_0x1d0677){const _0x11efbf=_0x29f2f9;logger[_0x11efbf('0x1a')](JSON[_0x11efbf('0x14')](_0x1d0677));});});},Migration[_0x240a4b('0x17')]['addColumn']=function(_0x2bd568,_0x638cd8,_0x419e97){const _0x24ac5e=_0x240a4b,_0x584813=this;this[_0x24ac5e('0x3')]['enqueue'](function(){const _0x4f2582=_0x24ac5e;return _0x584813[_0x4f2582('0xe')]['addColumn'](_0x2bd568,_0x638cd8,_0x419e97)[_0x4f2582('0x1')](function(){const _0x28f1d4=_0x4f2582;logger[_0x28f1d4('0x1a')](_0x28f1d4('0xc'),_0x638cd8,_0x2bd568);})[_0x4f2582('0x7')](function(_0x290757){const _0x172d4e=_0x4f2582;logger[_0x172d4e('0x1a')](JSON[_0x172d4e('0x14')](_0x290757));});});},Migration[_0x240a4b('0x17')][_0x240a4b('0x13')]=function(_0x273d12){const _0x3c3d9a=_0x240a4b,_0x5c7e61=this;this[_0x3c3d9a('0x3')][_0x3c3d9a('0x0')](function(){const _0x138b2f=_0x3c3d9a;return _0x5c7e61[_0x138b2f('0xe')]['dropTable'](_0x273d12,{'force':!![]})['then'](function(){const _0x4aeb98=_0x138b2f;logger[_0x4aeb98('0x1a')]('table\x20dropped\x20%s',_0x273d12);})[_0x138b2f('0x7')](function(_0x13af6e){const _0x3b0ace=_0x138b2f;logger[_0x3b0ace('0x1a')](JSON[_0x3b0ace('0x14')](_0x13af6e));});});},Migration['prototype']['addIndex']=function(_0xec1fb7,_0xfc3c0a,_0x3a23c6){const _0x1a0ae3=this;this['sequence']['enqueue'](function(){const _0xe77265=a966_0x274b;return _0x1a0ae3[_0xe77265('0xe')][_0xe77265('0x18')](_0xec1fb7,_0xfc3c0a,{'indexName':_0x3a23c6})[_0xe77265('0x1')](function(){const _0xd9e419=_0xe77265;logger['info'](_0xd9e419('0x15'),_0xec1fb7,_0xfc3c0a['join'](','),_0x3a23c6);})[_0xe77265('0x7')](function(_0x34bdf7){const _0x1be051=_0xe77265;logger[_0x1be051('0x1a')](JSON[_0x1be051('0x14')](_0x34bdf7));});});},Migration[_0x240a4b('0x17')][_0x240a4b('0xb')]=function(_0x54777e,_0x50d1b8){const _0xdbb78e=_0x240a4b,_0x377d73=this;this[_0xdbb78e('0x3')]['enqueue'](function(){const _0x42e16d=_0xdbb78e;return _0x377d73['queryInterface'][_0x42e16d('0xb')](_0x54777e,_0x50d1b8)['then'](function(){const _0x31af37=_0x42e16d;logger[_0x31af37('0x1a')]('removeIndex\x20%s\x20%s',_0x54777e,_0x50d1b8);})[_0x42e16d('0x7')](function(_0x14293f){logger['info'](JSON['stringify'](_0x14293f));});});},Migration['prototype'][_0x240a4b('0x2')]=function(_0xd51a57){const _0x1bcb76=_0x240a4b,_0x6eacca=this;this[_0x1bcb76('0x3')][_0x1bcb76('0x0')](function(){const _0x3fc8a7=_0x1bcb76;return _0x6eacca[_0x3fc8a7('0xe')][_0x3fc8a7('0x11')][_0x3fc8a7('0x2')](_0xd51a57)['then'](function(){const _0x1c2a99=_0x3fc8a7;logger[_0x1c2a99('0x1a')](_0x1c2a99('0x19'),_0xd51a57);})[_0x3fc8a7('0x7')](function(_0x2eeb01){const _0x2eec3c=_0x3fc8a7;logger['info'](JSON[_0x2eec3c('0x14')](_0x2eeb01));});});},Migration[_0x240a4b('0x17')][_0x240a4b('0x1b')]=function(_0x167133,_0x2b1e23){const _0x850fa6=_0x240a4b,_0x5bee53=this;this[_0x850fa6('0x3')][_0x850fa6('0x0')](function(){const _0xa73441=_0x850fa6;return _0x5bee53[_0xa73441('0xe')][_0xa73441('0x1b')](_0x167133,_0x2b1e23)[_0xa73441('0x1')](function(){const _0x22a27d=_0xa73441;logger['info'](_0x22a27d('0x6'),_0x2b1e23,_0x167133);})[_0xa73441('0x7')](function(_0x6f3c37){const _0x2fe839=_0xa73441;logger['info'](util[_0x2fe839('0xf')](_0x6f3c37,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x5ed872,_0x232451,_0x589723){const _0x550c1b=_0x240a4b,_0x544d26=this;this[_0x550c1b('0x3')][_0x550c1b('0x0')](function(){const _0x448b82=_0x550c1b;return _0x544d26[_0x448b82('0xe')][_0x448b82('0x10')](_0x5ed872,_0x232451,_0x589723)[_0x448b82('0x1')](function(){const _0x591ce2=_0x448b82;logger[_0x591ce2('0x1a')](_0x591ce2('0x5'),_0x232451,_0x589723,_0x5ed872);})['catch'](function(_0x3fb7f0){logger['info'](util['inspect'](_0x3fb7f0,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x240a4b('0x9')]=function(_0x54f3d0){const _0x769f3b=_0x240a4b;this[_0x769f3b('0x3')][_0x769f3b('0x0')](function(){return _0x54f3d0();});},module[_0x240a4b('0x8')]={'up':function(_0x48ab4e){return new Promise(function(_0x1c6ff3){const _0x2e1405=new Migration(_0x48ab4e);_0x2e1405['final'](_0x1c6ff3);});},'down':function(){}};
\ No newline at end of file