Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.61.js
index cc6d148..bd8ee90 100644 (file)
@@ -1 +1 @@
-const a940_0x3c53=['catch','migration','finally','changeColumn','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','query\x20%s','renameColumn','Removed\x20column\x20%s\x20from\x20%s','info','dropTable','inspect','addIndex\x20%s\x20%s\x20%s','tail','sequence','then','removeColumn','enqueue','Added\x20column\x20%s\x20to\x20%s','stringify','addColumn','queryInterface','sequelize','join'];(function(_0x3d8be4,_0x3c53fc){const _0x2375ee=function(_0x1277b5){while(--_0x1277b5){_0x3d8be4['push'](_0x3d8be4['shift']());}};_0x2375ee(++_0x3c53fc);}(a940_0x3c53,0x17d));const a940_0x2375=function(_0x3d8be4,_0x3c53fc){_0x3d8be4=_0x3d8be4-0x0;let _0x2375ee=a940_0x3c53[_0x3d8be4];return _0x2375ee;};const _0x50c9ac=a940_0x2375;'use strict';const util=require('util'),logger=require('../config/logger')(_0x50c9ac('0x14')),Sequence=function(){};Sequence[_0x50c9ac('0x0')][_0x50c9ac('0xc')]=function(_0x1277b5){const _0x10aa54=_0x50c9ac;this[_0x10aa54('0x8')]=this[_0x10aa54('0x8')]?this[_0x10aa54('0x8')][_0x10aa54('0x15')](_0x1277b5):_0x1277b5();};const Migration=function(_0x69a129){const _0x327e45=_0x50c9ac;this['queryInterface']=_0x69a129,this[_0x327e45('0x9')]=new Sequence();};Migration[_0x50c9ac('0x0')][_0x50c9ac('0x16')]=function(_0x3217f4,_0x19b15e,_0x3ae95e){const _0x5a55cf=_0x50c9ac,_0xf6cf1d=this;this[_0x5a55cf('0x9')][_0x5a55cf('0xc')](function(){const _0x36c3ee=_0x5a55cf;return _0xf6cf1d[_0x36c3ee('0x10')][_0x36c3ee('0x16')](_0x3217f4,_0x19b15e,_0x3ae95e)[_0x36c3ee('0xa')](function(){const _0x353495=_0x36c3ee;logger[_0x353495('0x4')](_0x353495('0x18'),_0x19b15e,_0x3217f4);})[_0x36c3ee('0x13')](function(_0x462bcc){const _0x2b98d1=_0x36c3ee;logger[_0x2b98d1('0x4')](JSON[_0x2b98d1('0xe')](_0x462bcc));});});},Migration['prototype'][_0x50c9ac('0xf')]=function(_0x4cbf84,_0x3bef93,_0x3b93c2){const _0x5f0107=_0x50c9ac,_0x327c63=this;this[_0x5f0107('0x9')][_0x5f0107('0xc')](function(){const _0x1c12f2=_0x5f0107;return _0x327c63[_0x1c12f2('0x10')][_0x1c12f2('0xf')](_0x4cbf84,_0x3bef93,_0x3b93c2)[_0x1c12f2('0xa')](function(){const _0x207088=_0x1c12f2;logger[_0x207088('0x4')](_0x207088('0xd'),_0x3bef93,_0x4cbf84);})[_0x1c12f2('0x13')](function(_0x4c143c){const _0x27bf1a=_0x1c12f2;logger[_0x27bf1a('0x4')](JSON['stringify'](_0x4c143c));});});},Migration['prototype'][_0x50c9ac('0x5')]=function(_0x4247d8){const _0x3df4a5=_0x50c9ac,_0x32e303=this;this[_0x3df4a5('0x9')][_0x3df4a5('0xc')](function(){const _0x59dfa4=_0x3df4a5;return _0x32e303[_0x59dfa4('0x10')][_0x59dfa4('0x5')](_0x4247d8,{'force':!![]})[_0x59dfa4('0xa')](function(){logger['info']('table\x20dropped\x20%s',_0x4247d8);})[_0x59dfa4('0x13')](function(_0x5afa01){const _0xe7ccdf=_0x59dfa4;logger['info'](JSON[_0xe7ccdf('0xe')](_0x5afa01));});});},Migration[_0x50c9ac('0x0')][_0x50c9ac('0x17')]=function(_0xbd2c8,_0x45f1e0,_0x226699){const _0x1797b1=_0x50c9ac,_0x924201=this;this[_0x1797b1('0x9')][_0x1797b1('0xc')](function(){const _0x5b272d=_0x1797b1;return _0x924201['queryInterface'][_0x5b272d('0x17')](_0xbd2c8,_0x45f1e0,{'indexName':_0x226699})['then'](function(){const _0x503de1=_0x5b272d;logger['info'](_0x503de1('0x7'),_0xbd2c8,_0x45f1e0[_0x503de1('0x12')](','),_0x226699);})[_0x5b272d('0x13')](function(_0x5bcabf){const _0x1474dd=_0x5b272d;logger['info'](JSON[_0x1474dd('0xe')](_0x5bcabf));});});},Migration[_0x50c9ac('0x0')]['query']=function(_0x2c1404){const _0x4721e2=_0x50c9ac,_0x598fc2=this;this[_0x4721e2('0x9')]['enqueue'](function(){const _0x12dc51=_0x4721e2;return _0x598fc2[_0x12dc51('0x10')][_0x12dc51('0x11')]['query'](_0x2c1404)[_0x12dc51('0xa')](function(){const _0x5712f9=_0x12dc51;logger[_0x5712f9('0x4')](_0x5712f9('0x1'),_0x2c1404);})[_0x12dc51('0x13')](function(_0x116e79){const _0x34f6df=_0x12dc51;logger[_0x34f6df('0x4')](JSON[_0x34f6df('0xe')](_0x116e79));});});},Migration[_0x50c9ac('0x0')][_0x50c9ac('0xb')]=function(_0x4855c1,_0x3d1c9a){const _0x567587=_0x50c9ac,_0x161cf7=this;this[_0x567587('0x9')][_0x567587('0xc')](function(){const _0x233c89=_0x567587;return _0x161cf7[_0x233c89('0x10')][_0x233c89('0xb')](_0x4855c1,_0x3d1c9a)[_0x233c89('0xa')](function(){const _0xad76f8=_0x233c89;logger[_0xad76f8('0x4')](_0xad76f8('0x3'),_0x3d1c9a,_0x4855c1);})[_0x233c89('0x13')](function(_0x5ba09b){const _0x89b174=_0x233c89;logger[_0x89b174('0x4')](util[_0x89b174('0x6')](_0x5ba09b,{'showHidden':![],'depth':null}));});});},Migration[_0x50c9ac('0x0')][_0x50c9ac('0x2')]=function(_0x4040be,_0x3a11df,_0x27bc10){const _0x1e42e2=_0x50c9ac,_0x17355e=this;this[_0x1e42e2('0x9')][_0x1e42e2('0xc')](function(){const _0x30d165=_0x1e42e2;return _0x17355e[_0x30d165('0x10')][_0x30d165('0x2')](_0x4040be,_0x3a11df,_0x27bc10)[_0x30d165('0xa')](function(){const _0x30ecac=_0x30d165;logger[_0x30ecac('0x4')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3a11df,_0x27bc10,_0x4040be);})[_0x30d165('0x13')](function(_0x28fd9e){const _0x41efea=_0x30d165;logger['info'](util[_0x41efea('0x6')](_0x28fd9e,{'showHidden':![],'depth':null}));});});},Migration[_0x50c9ac('0x0')]['final']=function(_0x1517ec){const _0xe380b3=_0x50c9ac;this[_0xe380b3('0x9')][_0xe380b3('0xc')](function(){return _0x1517ec();});},module['exports']={'up':function(_0x491354){return new Promise(function(_0x27098f){const _0x53b26e=new Migration(_0x491354);_0x53b26e['final'](_0x27098f);});},'down':function(){}};
\ No newline at end of file
+const a940_0xb3a7=['tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex','catch','sequence','../config/logger','migration','query','join','table\x20dropped\x20%s','stringify','info','inspect','renameColumn','Added\x20column\x20%s\x20to\x20%s','dropTable','Removed\x20column\x20%s\x20from\x20%s','sequelize','exports','then','final','addColumn','changeColumn','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','removeColumn','queryInterface','query\x20%s','addIndex\x20%s\x20%s\x20%s'];(function(_0x5e4cc8,_0xb3a76e){const _0x9f1ea5=function(_0x15507d){while(--_0x15507d){_0x5e4cc8['push'](_0x5e4cc8['shift']());}};_0x9f1ea5(++_0xb3a76e);}(a940_0xb3a7,0x116));const a940_0x9f1e=function(_0x5e4cc8,_0xb3a76e){_0x5e4cc8=_0x5e4cc8-0x0;let _0x9f1ea5=a940_0xb3a7[_0x5e4cc8];return _0x9f1ea5;};const _0xc7c56=a940_0x9f1e;'use strict';const util=require('util'),logger=require(_0xc7c56('0x1b'))(_0xc7c56('0x1c')),Sequence=function(){};Sequence[_0xc7c56('0x11')][_0xc7c56('0xf')]=function(_0x15507d){const _0x2c0015=_0xc7c56;this[_0x2c0015('0x16')]=this[_0x2c0015('0x16')]?this[_0x2c0015('0x16')]['finally'](_0x15507d):_0x15507d();};const Migration=function(_0x2bd79f){const _0x5d55d2=_0xc7c56;this[_0x5d55d2('0x13')]=_0x2bd79f,this[_0x5d55d2('0x1a')]=new Sequence();};Migration['prototype'][_0xc7c56('0xe')]=function(_0x36e2e4,_0x31f135,_0x5324f9){const _0x1f3d94=_0xc7c56,_0x36bb34=this;this[_0x1f3d94('0x1a')][_0x1f3d94('0xf')](function(){const _0x3694fe=_0x1f3d94;return _0x36bb34[_0x3694fe('0x13')][_0x3694fe('0xe')](_0x36e2e4,_0x31f135,_0x5324f9)[_0x3694fe('0xb')](function(){const _0x28e1c0=_0x3694fe;logger['info'](_0x28e1c0('0x10'),_0x31f135,_0x36e2e4);})[_0x3694fe('0x19')](function(_0xb88dc8){const _0x55eb21=_0x3694fe;logger[_0x55eb21('0x3')](JSON['stringify'](_0xb88dc8));});});},Migration[_0xc7c56('0x11')][_0xc7c56('0xd')]=function(_0x4155f3,_0xb367e0,_0x241c32){const _0x95c9a0=_0xc7c56,_0x33bfcd=this;this['sequence'][_0x95c9a0('0xf')](function(){const _0x493b60=_0x95c9a0;return _0x33bfcd[_0x493b60('0x13')][_0x493b60('0xd')](_0x4155f3,_0xb367e0,_0x241c32)['then'](function(){const _0x4f6444=_0x493b60;logger[_0x4f6444('0x3')](_0x4f6444('0x6'),_0xb367e0,_0x4155f3);})[_0x493b60('0x19')](function(_0x426bbb){const _0x2e3d52=_0x493b60;logger[_0x2e3d52('0x3')](JSON['stringify'](_0x426bbb));});});},Migration[_0xc7c56('0x11')][_0xc7c56('0x7')]=function(_0x1a9dda){const _0x4dbd52=_0xc7c56,_0x3fc743=this;this[_0x4dbd52('0x1a')][_0x4dbd52('0xf')](function(){const _0x52293e=_0x4dbd52;return _0x3fc743['queryInterface']['dropTable'](_0x1a9dda,{'force':!![]})[_0x52293e('0xb')](function(){const _0x1fcd24=_0x52293e;logger[_0x1fcd24('0x3')](_0x1fcd24('0x1'),_0x1a9dda);})[_0x52293e('0x19')](function(_0x5b0fba){const _0x29ac35=_0x52293e;logger[_0x29ac35('0x3')](JSON['stringify'](_0x5b0fba));});});},Migration[_0xc7c56('0x11')][_0xc7c56('0x18')]=function(_0x2fabb3,_0x320110,_0x36f9f0){const _0xc54868=_0xc7c56,_0x491c36=this;this[_0xc54868('0x1a')]['enqueue'](function(){const _0x4116a6=_0xc54868;return _0x491c36[_0x4116a6('0x13')][_0x4116a6('0x18')](_0x2fabb3,_0x320110,{'indexName':_0x36f9f0})[_0x4116a6('0xb')](function(){const _0x1d1af8=_0x4116a6;logger[_0x1d1af8('0x3')](_0x1d1af8('0x15'),_0x2fabb3,_0x320110[_0x1d1af8('0x0')](','),_0x36f9f0);})[_0x4116a6('0x19')](function(_0x1a6d10){const _0x905e6f=_0x4116a6;logger[_0x905e6f('0x3')](JSON[_0x905e6f('0x2')](_0x1a6d10));});});},Migration[_0xc7c56('0x11')][_0xc7c56('0x1d')]=function(_0x2d9452){const _0x3aa772=this;this['sequence']['enqueue'](function(){const _0x1ee6c0=a940_0x9f1e;return _0x3aa772['queryInterface'][_0x1ee6c0('0x9')]['query'](_0x2d9452)[_0x1ee6c0('0xb')](function(){const _0x3b2c8d=_0x1ee6c0;logger['info'](_0x3b2c8d('0x14'),_0x2d9452);})['catch'](function(_0x1f0f12){logger['info'](JSON['stringify'](_0x1f0f12));});});},Migration['prototype']['removeColumn']=function(_0x30ecc5,_0x1aa107){const _0x1da80e=_0xc7c56,_0x42f82e=this;this[_0x1da80e('0x1a')]['enqueue'](function(){const _0x118933=_0x1da80e;return _0x42f82e[_0x118933('0x13')][_0x118933('0x12')](_0x30ecc5,_0x1aa107)[_0x118933('0xb')](function(){const _0x16ff68=_0x118933;logger[_0x16ff68('0x3')](_0x16ff68('0x8'),_0x1aa107,_0x30ecc5);})[_0x118933('0x19')](function(_0x1d0683){const _0x546e1f=_0x118933;logger[_0x546e1f('0x3')](util[_0x546e1f('0x4')](_0x1d0683,{'showHidden':![],'depth':null}));});});},Migration[_0xc7c56('0x11')][_0xc7c56('0x5')]=function(_0x444720,_0x5b4661,_0x531b2f){const _0xf8852a=_0xc7c56,_0x3bef0d=this;this['sequence'][_0xf8852a('0xf')](function(){const _0x3defce=_0xf8852a;return _0x3bef0d['queryInterface'][_0x3defce('0x5')](_0x444720,_0x5b4661,_0x531b2f)[_0x3defce('0xb')](function(){const _0x1fa488=_0x3defce;logger[_0x1fa488('0x3')](_0x1fa488('0x17'),_0x5b4661,_0x531b2f,_0x444720);})[_0x3defce('0x19')](function(_0x1313a4){const _0x5f0fad=_0x3defce;logger[_0x5f0fad('0x3')](util[_0x5f0fad('0x4')](_0x1313a4,{'showHidden':![],'depth':null}));});});},Migration[_0xc7c56('0x11')][_0xc7c56('0xc')]=function(_0x56e6e8){const _0x563984=_0xc7c56;this[_0x563984('0x1a')][_0x563984('0xf')](function(){return _0x56e6e8();});},module[_0xc7c56('0xa')]={'up':function(_0x5a9b73){return new Promise(function(_0x90674a){const _0x49bde3=a940_0x9f1e,_0x4a6aa8=new Migration(_0x5a9b73);_0x4a6aa8[_0x49bde3('0xc')](_0x90674a);});},'down':function(){}};
\ No newline at end of file