Built motion from commit b517aaa2a6638133380e4d135c64a80893061362. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.80.js
index 0392d68..6df5715 100644 (file)
@@ -1 +1 @@
-const a959_0x2d22=['renameColumn','sequelize','query\x20%s','addColumn','BOOLEAN','removeIndex','changeColumn','dropTable','defaultPreferred','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','util','catch','finally','tail','queryInterface','prototype','sequence','Removed\x20column\x20%s\x20from\x20%s','Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s','STRING','then','join','settings','stringify','addIndex','removeIndex\x20%s\x20%s','query','info','removeColumn','enqueue'];(function(_0x49cc20,_0x2d2253){const _0x35dfa9=function(_0x59284a){while(--_0x59284a){_0x49cc20['push'](_0x49cc20['shift']());}};_0x35dfa9(++_0x2d2253);}(a959_0x2d22,0xc6));const a959_0x35df=function(_0x49cc20,_0x2d2253){_0x49cc20=_0x49cc20-0x0;let _0x35dfa9=a959_0x2d22[_0x49cc20];return _0x35dfa9;};const _0x3a77b4=a959_0x35df;'use strict';const util=require(_0x3a77b4('0x5')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x3a77b4('0xa')][_0x3a77b4('0x19')]=function(_0x59284a){const _0x20090e=_0x3a77b4;this[_0x20090e('0x8')]=this[_0x20090e('0x8')]?this['tail'][_0x20090e('0x7')](_0x59284a):_0x59284a();};const Migration=function(_0x273364){const _0xd23103=_0x3a77b4;this[_0xd23103('0x9')]=_0x273364,this[_0xd23103('0xb')]=new Sequence();};Migration[_0x3a77b4('0xa')]['changeColumn']=function(_0x29e54c,_0xdcdea1,_0x1a4eaf){const _0xd51b26=_0x3a77b4,_0x2bb665=this;this[_0xd51b26('0xb')][_0xd51b26('0x19')](function(){const _0x4b19da=_0xd51b26;return _0x2bb665[_0x4b19da('0x9')][_0x4b19da('0x0')](_0x29e54c,_0xdcdea1,_0x1a4eaf)[_0x4b19da('0x10')](function(){const _0x25c2df=_0x4b19da;logger[_0x25c2df('0x17')](_0x25c2df('0x3'),_0xdcdea1,_0x29e54c);})[_0x4b19da('0x6')](function(_0x4fe48a){const _0x3bbb83=_0x4b19da;logger['info'](JSON[_0x3bbb83('0x13')](_0x4fe48a));});});},Migration[_0x3a77b4('0xa')][_0x3a77b4('0x1d')]=function(_0x2954c4,_0x3114d7,_0x1a4036){const _0x21cefe=_0x3a77b4,_0x1c283d=this;this['sequence'][_0x21cefe('0x19')](function(){const _0xdf9c28=_0x21cefe;return _0x1c283d[_0xdf9c28('0x9')][_0xdf9c28('0x1d')](_0x2954c4,_0x3114d7,_0x1a4036)[_0xdf9c28('0x10')](function(){const _0x212276=_0xdf9c28;logger[_0x212276('0x17')](_0x212276('0xd'),_0x3114d7,_0x2954c4);})[_0xdf9c28('0x6')](function(_0x4461a1){const _0x5c2ca8=_0xdf9c28;logger['info'](JSON[_0x5c2ca8('0x13')](_0x4461a1));});});},Migration[_0x3a77b4('0xa')][_0x3a77b4('0x1')]=function(_0x202203){const _0x4e7adb=_0x3a77b4,_0x475ac5=this;this[_0x4e7adb('0xb')][_0x4e7adb('0x19')](function(){const _0x51924a=_0x4e7adb;return _0x475ac5['queryInterface'][_0x51924a('0x1')](_0x202203,{'force':!![]})['then'](function(){const _0x1437ed=_0x51924a;logger[_0x1437ed('0x17')](_0x1437ed('0xe'),_0x202203);})[_0x51924a('0x6')](function(_0x255205){const _0x845e14=_0x51924a;logger[_0x845e14('0x17')](JSON[_0x845e14('0x13')](_0x255205));});});},Migration[_0x3a77b4('0xa')][_0x3a77b4('0x14')]=function(_0x1c7734,_0x1b0589,_0x48b288){const _0x58f526=_0x3a77b4,_0x3e05f5=this;this[_0x58f526('0xb')]['enqueue'](function(){const _0x1a07b1=_0x58f526;return _0x3e05f5[_0x1a07b1('0x9')][_0x1a07b1('0x14')](_0x1c7734,_0x1b0589,{'indexName':_0x48b288})[_0x1a07b1('0x10')](function(){const _0x45cb72=_0x1a07b1;logger[_0x45cb72('0x17')]('addIndex\x20%s\x20%s\x20%s',_0x1c7734,_0x1b0589[_0x45cb72('0x11')](','),_0x48b288);})['catch'](function(_0xda6115){const _0x16ac6d=_0x1a07b1;logger[_0x16ac6d('0x17')](JSON[_0x16ac6d('0x13')](_0xda6115));});});},Migration['prototype'][_0x3a77b4('0x1f')]=function(_0x24ba10,_0x5623ce){const _0x3bb392=_0x3a77b4,_0xf0e687=this;this[_0x3bb392('0xb')][_0x3bb392('0x19')](function(){const _0x196282=_0x3bb392;return _0xf0e687[_0x196282('0x9')][_0x196282('0x1f')](_0x24ba10,_0x5623ce)[_0x196282('0x10')](function(){const _0x5c004d=_0x196282;logger['info'](_0x5c004d('0x15'),_0x24ba10,_0x5623ce);})[_0x196282('0x6')](function(_0x1348ca){const _0x446a63=_0x196282;logger[_0x446a63('0x17')](JSON['stringify'](_0x1348ca));});});},Migration['prototype'][_0x3a77b4('0x16')]=function(_0x383f7f){const _0x4d7556=_0x3a77b4,_0x50e329=this;this[_0x4d7556('0xb')][_0x4d7556('0x19')](function(){const _0x346c1d=_0x4d7556;return _0x50e329[_0x346c1d('0x9')][_0x346c1d('0x1b')]['query'](_0x383f7f)[_0x346c1d('0x10')](function(){const _0x2c36ac=_0x346c1d;logger[_0x2c36ac('0x17')](_0x2c36ac('0x1c'),_0x383f7f);})[_0x346c1d('0x6')](function(_0x1a8a3a){const _0x31458d=_0x346c1d;logger[_0x31458d('0x17')](JSON[_0x31458d('0x13')](_0x1a8a3a));});});},Migration[_0x3a77b4('0xa')][_0x3a77b4('0x18')]=function(_0xcddb04,_0x1f8a3d){const _0x257a15=_0x3a77b4,_0x146a1e=this;this[_0x257a15('0xb')][_0x257a15('0x19')](function(){const _0x1437e8=_0x257a15;return _0x146a1e['queryInterface']['removeColumn'](_0xcddb04,_0x1f8a3d)[_0x1437e8('0x10')](function(){const _0xfaaa44=_0x1437e8;logger[_0xfaaa44('0x17')](_0xfaaa44('0xc'),_0x1f8a3d,_0xcddb04);})['catch'](function(_0x418369){const _0x1792b5=_0x1437e8;logger[_0x1792b5('0x17')](util[_0x1792b5('0x4')](_0x418369,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x3793fb,_0xf5bbd9,_0xef3619){const _0x22b988=_0x3a77b4,_0x3f086e=this;this[_0x22b988('0xb')]['enqueue'](function(){const _0x5efebc=_0x22b988;return _0x3f086e[_0x5efebc('0x9')][_0x5efebc('0x1a')](_0x3793fb,_0xf5bbd9,_0xef3619)[_0x5efebc('0x10')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0xf5bbd9,_0xef3619,_0x3793fb);})[_0x5efebc('0x6')](function(_0xa0f3b4){const _0x3497e5=_0x5efebc;logger['info'](util[_0x3497e5('0x4')](_0xa0f3b4,{'showHidden':![],'depth':null}));});});},Migration[_0x3a77b4('0xa')]['final']=function(_0x4f4a76){const _0x2f34d7=_0x3a77b4;this['sequence'][_0x2f34d7('0x19')](function(){return _0x4f4a76();});},module['exports']={'up':function(_0x2555c3,_0x21f8cd){return new Promise(function(_0x272b54){const _0x171cad=a959_0x35df,_0x5c856d=new Migration(_0x2555c3);_0x5c856d[_0x171cad('0x1d')](_0x171cad('0x12'),'preferred',{'type':_0x21f8cd[_0x171cad('0xf')]}),_0x5c856d[_0x171cad('0x1d')](_0x171cad('0x12'),_0x171cad('0x2'),{'type':_0x21f8cd[_0x171cad('0x1e')],'defaultValue':!![]}),_0x5c856d['final'](_0x272b54);});},'down':function(){}};
\ No newline at end of file
+const a959_0x4267=['stringify','changeColumn','sequence','queryInterface','preferred','query','query\x20%s','info','sequelize','removeIndex','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','Removed\x20column\x20%s\x20from\x20%s','addIndex','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','Added\x20column\x20%s\x20to\x20%s','renameColumn','inspect','enqueue','catch','BOOLEAN','addColumn','removeIndex\x20%s\x20%s','settings','migration','util','STRING','../config/logger','final','exports','addIndex\x20%s\x20%s\x20%s','table\x20dropped\x20%s','join','prototype'];(function(_0x7b9548,_0x4267c7){const _0x4d50b7=function(_0x47e65b){while(--_0x47e65b){_0x7b9548['push'](_0x7b9548['shift']());}};_0x4d50b7(++_0x4267c7);}(a959_0x4267,0x17a));const a959_0x4d50=function(_0x7b9548,_0x4267c7){_0x7b9548=_0x7b9548-0x0;let _0x4d50b7=a959_0x4267[_0x7b9548];return _0x4d50b7;};const _0x53cda2=a959_0x4d50;'use strict';const util=require(_0x53cda2('0x9')),logger=require(_0x53cda2('0xb'))(_0x53cda2('0x8')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x47e65b){const _0x1a048b=_0x53cda2;this['tail']=this[_0x1a048b('0x21')]?this['tail']['finally'](_0x47e65b):_0x47e65b();};const Migration=function(_0x110c6a){const _0x39b6ac=_0x53cda2;this[_0x39b6ac('0x15')]=_0x110c6a,this[_0x39b6ac('0x14')]=new Sequence();};Migration[_0x53cda2('0x11')][_0x53cda2('0x13')]=function(_0x58e7ce,_0xb7c695,_0x5bfa17){const _0x521c0c=_0x53cda2,_0x5d3a17=this;this[_0x521c0c('0x14')][_0x521c0c('0x2')](function(){const _0x569f09=_0x521c0c;return _0x5d3a17[_0x569f09('0x15')]['changeColumn'](_0x58e7ce,_0xb7c695,_0x5bfa17)[_0x569f09('0x1e')](function(){const _0x565fe0=_0x569f09;logger[_0x565fe0('0x19')](_0x565fe0('0x22'),_0xb7c695,_0x58e7ce);})[_0x569f09('0x3')](function(_0x3873d0){const _0x2658ac=_0x569f09;logger[_0x2658ac('0x19')](JSON[_0x2658ac('0x12')](_0x3873d0));});});},Migration[_0x53cda2('0x11')][_0x53cda2('0x5')]=function(_0x4f8313,_0x58650c,_0x2c8c54){const _0x5b2165=_0x53cda2,_0xdaf29f=this;this[_0x5b2165('0x14')][_0x5b2165('0x2')](function(){const _0x47b048=_0x5b2165;return _0xdaf29f[_0x47b048('0x15')][_0x47b048('0x5')](_0x4f8313,_0x58650c,_0x2c8c54)['then'](function(){const _0x7ac86e=_0x47b048;logger[_0x7ac86e('0x19')](_0x7ac86e('0x23'),_0x58650c,_0x4f8313);})[_0x47b048('0x3')](function(_0x48c391){const _0x526c17=_0x47b048;logger[_0x526c17('0x19')](JSON['stringify'](_0x48c391));});});},Migration[_0x53cda2('0x11')]['dropTable']=function(_0x1273e2){const _0x7a95b0=_0x53cda2,_0x212c5e=this;this[_0x7a95b0('0x14')][_0x7a95b0('0x2')](function(){const _0x2b7780=_0x7a95b0;return _0x212c5e[_0x2b7780('0x15')]['dropTable'](_0x1273e2,{'force':!![]})[_0x2b7780('0x1e')](function(){const _0x141c6c=_0x2b7780;logger[_0x141c6c('0x19')](_0x141c6c('0xf'),_0x1273e2);})[_0x2b7780('0x3')](function(_0x470a01){const _0x4df456=_0x2b7780;logger[_0x4df456('0x19')](JSON[_0x4df456('0x12')](_0x470a01));});});},Migration[_0x53cda2('0x11')][_0x53cda2('0x20')]=function(_0xe5fd1d,_0x33b593,_0x33817c){const _0x59b903=_0x53cda2,_0x3e9f11=this;this[_0x59b903('0x14')][_0x59b903('0x2')](function(){const _0x5203c9=_0x59b903;return _0x3e9f11[_0x5203c9('0x15')][_0x5203c9('0x20')](_0xe5fd1d,_0x33b593,{'indexName':_0x33817c})[_0x5203c9('0x1e')](function(){const _0x830395=_0x5203c9;logger[_0x830395('0x19')](_0x830395('0xe'),_0xe5fd1d,_0x33b593[_0x830395('0x10')](','),_0x33817c);})[_0x5203c9('0x3')](function(_0x15fa1c){const _0x39476f=_0x5203c9;logger[_0x39476f('0x19')](JSON['stringify'](_0x15fa1c));});});},Migration[_0x53cda2('0x11')][_0x53cda2('0x1b')]=function(_0x553109,_0x55e2ac){const _0x1125c9=_0x53cda2,_0x245e5f=this;this[_0x1125c9('0x14')][_0x1125c9('0x2')](function(){const _0x3978ee=_0x1125c9;return _0x245e5f[_0x3978ee('0x15')][_0x3978ee('0x1b')](_0x553109,_0x55e2ac)['then'](function(){const _0x1b3ff5=_0x3978ee;logger[_0x1b3ff5('0x19')](_0x1b3ff5('0x6'),_0x553109,_0x55e2ac);})[_0x3978ee('0x3')](function(_0x16a1be){const _0x401a8c=_0x3978ee;logger[_0x401a8c('0x19')](JSON[_0x401a8c('0x12')](_0x16a1be));});});},Migration[_0x53cda2('0x11')][_0x53cda2('0x17')]=function(_0x526a90){const _0x1adc8d=_0x53cda2,_0x160a30=this;this[_0x1adc8d('0x14')][_0x1adc8d('0x2')](function(){const _0x8c222=_0x1adc8d;return _0x160a30[_0x8c222('0x15')][_0x8c222('0x1a')][_0x8c222('0x17')](_0x526a90)[_0x8c222('0x1e')](function(){const _0x288a0c=_0x8c222;logger['info'](_0x288a0c('0x18'),_0x526a90);})[_0x8c222('0x3')](function(_0x1858f5){const _0x4cd322=_0x8c222;logger[_0x4cd322('0x19')](JSON[_0x4cd322('0x12')](_0x1858f5));});});},Migration[_0x53cda2('0x11')][_0x53cda2('0x1c')]=function(_0x335b1c,_0x4a3d4b){const _0x2031e0=_0x53cda2,_0xfc49c2=this;this[_0x2031e0('0x14')][_0x2031e0('0x2')](function(){const _0x34dc4c=_0x2031e0;return _0xfc49c2['queryInterface'][_0x34dc4c('0x1c')](_0x335b1c,_0x4a3d4b)[_0x34dc4c('0x1e')](function(){const _0x3a9cbf=_0x34dc4c;logger[_0x3a9cbf('0x19')](_0x3a9cbf('0x1f'),_0x4a3d4b,_0x335b1c);})[_0x34dc4c('0x3')](function(_0x1182f0){const _0x5a8cbd=_0x34dc4c;logger['info'](util[_0x5a8cbd('0x1')](_0x1182f0,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x53cda2('0x0')]=function(_0x1ee25c,_0x7ddd93,_0x5a31e7){const _0x52b6c7=this;this['sequence']['enqueue'](function(){const _0x5c66fc=a959_0x4d50;return _0x52b6c7[_0x5c66fc('0x15')][_0x5c66fc('0x0')](_0x1ee25c,_0x7ddd93,_0x5a31e7)[_0x5c66fc('0x1e')](function(){const _0x49a524=_0x5c66fc;logger[_0x49a524('0x19')](_0x49a524('0x1d'),_0x7ddd93,_0x5a31e7,_0x1ee25c);})[_0x5c66fc('0x3')](function(_0x52340e){const _0x29fdec=_0x5c66fc;logger[_0x29fdec('0x19')](util[_0x29fdec('0x1')](_0x52340e,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x53cda2('0xc')]=function(_0x12aab3){this['sequence']['enqueue'](function(){return _0x12aab3();});},module[_0x53cda2('0xd')]={'up':function(_0x4354f9,_0x140931){return new Promise(function(_0x41949a){const _0xd0d219=a959_0x4d50,_0x9fe3c4=new Migration(_0x4354f9);_0x9fe3c4[_0xd0d219('0x5')](_0xd0d219('0x7'),_0xd0d219('0x16'),{'type':_0x140931[_0xd0d219('0xa')]}),_0x9fe3c4[_0xd0d219('0x5')](_0xd0d219('0x7'),'defaultPreferred',{'type':_0x140931[_0xd0d219('0x4')],'defaultValue':!![]}),_0x9fe3c4[_0xd0d219('0xc')](_0x41949a);});},'down':function(){}};
\ No newline at end of file