Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.77.js
index 4468d0b..8b86592 100644 (file)
@@ -1 +1 @@
-const a956_0x26b2=['sequence','../config/logger','then','addColumn','changeColumn','bot','removeIndex','Added\x20column\x20%s\x20to\x20%s','exports','removeIndex\x20%s\x20%s','enqueue','info','STRING','BOOLEAN','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','users','prototype','interface','query','inspect','addIndex','privacyEnabled','removeColumn','queryInterface','dropTable','stringify','migration','join','catch','util','final','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s'];(function(_0xd9b3e,_0x26b2b5){const _0x203447=function(_0x9ae6ac){while(--_0x9ae6ac){_0xd9b3e['push'](_0xd9b3e['shift']());}};_0x203447(++_0x26b2b5);}(a956_0x26b2,0x1a2));const a956_0x2034=function(_0xd9b3e,_0x26b2b5){_0xd9b3e=_0xd9b3e-0x0;let _0x203447=a956_0x26b2[_0xd9b3e];return _0x203447;};const _0x13d5f3=a956_0x2034;'use strict';const util=require(_0x13d5f3('0x14')),logger=require(_0x13d5f3('0x19'))(_0x13d5f3('0x11')),Sequence=function(){};Sequence[_0x13d5f3('0x7')]['enqueue']=function(_0x9ae6ac){const _0x14da85=_0x13d5f3;this[_0x14da85('0x5')]=this[_0x14da85('0x5')]?this[_0x14da85('0x5')]['finally'](_0x9ae6ac):_0x9ae6ac();};const Migration=function(_0x4ace8d){const _0x493441=_0x13d5f3;this[_0x493441('0xe')]=_0x4ace8d,this[_0x493441('0x18')]=new Sequence();};Migration[_0x13d5f3('0x7')]['changeColumn']=function(_0xc6ffb5,_0x3bab7c,_0x348bf5){const _0x215ac7=_0x13d5f3,_0x3fee1a=this;this[_0x215ac7('0x18')]['enqueue'](function(){const _0x4a04a1=_0x215ac7;return _0x3fee1a[_0x4a04a1('0xe')][_0x4a04a1('0x1c')](_0xc6ffb5,_0x3bab7c,_0x348bf5)['then'](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3bab7c,_0xc6ffb5);})[_0x4a04a1('0x13')](function(_0x1f0893){const _0x101736=_0x4a04a1;logger[_0x101736('0x1')](JSON[_0x101736('0x10')](_0x1f0893));});});},Migration[_0x13d5f3('0x7')]['addColumn']=function(_0x4f6020,_0x5f3822,_0x37aa9b){const _0xad31b5=_0x13d5f3,_0x568360=this;this[_0xad31b5('0x18')]['enqueue'](function(){const _0x2dd908=_0xad31b5;return _0x568360[_0x2dd908('0xe')]['addColumn'](_0x4f6020,_0x5f3822,_0x37aa9b)[_0x2dd908('0x1a')](function(){const _0x50926a=_0x2dd908;logger['info'](_0x50926a('0x1f'),_0x5f3822,_0x4f6020);})['catch'](function(_0x19f5c1){const _0x147f87=_0x2dd908;logger[_0x147f87('0x1')](JSON[_0x147f87('0x10')](_0x19f5c1));});});},Migration[_0x13d5f3('0x7')][_0x13d5f3('0xf')]=function(_0x370bd5){const _0x12ccfd=_0x13d5f3,_0x1e4ac9=this;this[_0x12ccfd('0x18')][_0x12ccfd('0x0')](function(){const _0x5156af=_0x12ccfd;return _0x1e4ac9[_0x5156af('0xe')]['dropTable'](_0x370bd5,{'force':!![]})[_0x5156af('0x1a')](function(){const _0x15e173=_0x5156af;logger[_0x15e173('0x1')](_0x15e173('0x17'),_0x370bd5);})[_0x5156af('0x13')](function(_0x22e765){const _0x1e7187=_0x5156af;logger[_0x1e7187('0x1')](JSON[_0x1e7187('0x10')](_0x22e765));});});},Migration[_0x13d5f3('0x7')]['addIndex']=function(_0x286946,_0x29c17d,_0x1ce05f){const _0x123ebb=this;this['sequence']['enqueue'](function(){const _0x4c857f=a956_0x2034;return _0x123ebb[_0x4c857f('0xe')][_0x4c857f('0xb')](_0x286946,_0x29c17d,{'indexName':_0x1ce05f})['then'](function(){const _0x45ac60=_0x4c857f;logger[_0x45ac60('0x1')]('addIndex\x20%s\x20%s\x20%s',_0x286946,_0x29c17d[_0x45ac60('0x12')](','),_0x1ce05f);})[_0x4c857f('0x13')](function(_0x61ad9){const _0x5ae1b6=_0x4c857f;logger[_0x5ae1b6('0x1')](JSON[_0x5ae1b6('0x10')](_0x61ad9));});});},Migration[_0x13d5f3('0x7')][_0x13d5f3('0x1e')]=function(_0x216a2b,_0x17810a){const _0x4cd96c=_0x13d5f3,_0x1a6b26=this;this[_0x4cd96c('0x18')]['enqueue'](function(){const _0x205846=_0x4cd96c;return _0x1a6b26[_0x205846('0xe')][_0x205846('0x1e')](_0x216a2b,_0x17810a)['then'](function(){const _0x2cb082=_0x205846;logger[_0x2cb082('0x1')](_0x2cb082('0x21'),_0x216a2b,_0x17810a);})[_0x205846('0x13')](function(_0x451309){const _0x4c735d=_0x205846;logger[_0x4c735d('0x1')](JSON[_0x4c735d('0x10')](_0x451309));});});},Migration[_0x13d5f3('0x7')][_0x13d5f3('0x9')]=function(_0x524c0d){const _0x56ede0=_0x13d5f3,_0x416831=this;this[_0x56ede0('0x18')]['enqueue'](function(){const _0x3cf1c4=_0x56ede0;return _0x416831[_0x3cf1c4('0xe')]['sequelize'][_0x3cf1c4('0x9')](_0x524c0d)[_0x3cf1c4('0x1a')](function(){const _0x1f79e5=_0x3cf1c4;logger[_0x1f79e5('0x1')]('query\x20%s',_0x524c0d);})[_0x3cf1c4('0x13')](function(_0x37b7c9){const _0x3b31c9=_0x3cf1c4;logger[_0x3b31c9('0x1')](JSON[_0x3b31c9('0x10')](_0x37b7c9));});});},Migration[_0x13d5f3('0x7')][_0x13d5f3('0xd')]=function(_0x5e3149,_0xff9f8a){const _0xd28463=_0x13d5f3,_0x7fe0fb=this;this['sequence'][_0xd28463('0x0')](function(){const _0x52320c=_0xd28463;return _0x7fe0fb[_0x52320c('0xe')][_0x52320c('0xd')](_0x5e3149,_0xff9f8a)['then'](function(){const _0x3ed363=_0x52320c;logger[_0x3ed363('0x1')](_0x3ed363('0x16'),_0xff9f8a,_0x5e3149);})[_0x52320c('0x13')](function(_0x463e5d){const _0x328d62=_0x52320c;logger[_0x328d62('0x1')](util['inspect'](_0x463e5d,{'showHidden':![],'depth':null}));});});},Migration[_0x13d5f3('0x7')]['renameColumn']=function(_0x2bd450,_0x371a6e,_0x107cd9){const _0x41857e=_0x13d5f3,_0x4bcfdb=this;this['sequence'][_0x41857e('0x0')](function(){const _0xe0110a=_0x41857e;return _0x4bcfdb[_0xe0110a('0xe')]['renameColumn'](_0x2bd450,_0x371a6e,_0x107cd9)['then'](function(){const _0x5a1b0b=_0xe0110a;logger['info'](_0x5a1b0b('0x4'),_0x371a6e,_0x107cd9,_0x2bd450);})['catch'](function(_0x1425f3){const _0x1ccd04=_0xe0110a;logger['info'](util[_0x1ccd04('0xa')](_0x1425f3,{'showHidden':![],'depth':null}));});});},Migration[_0x13d5f3('0x7')][_0x13d5f3('0x15')]=function(_0x5419a4){const _0x1622f3=_0x13d5f3;this[_0x1622f3('0x18')][_0x1622f3('0x0')](function(){return _0x5419a4();});},module[_0x13d5f3('0x20')]={'up':function(_0x31f5fa,_0x1edefa){return new Promise(function(_0x14a66f){const _0x41a11b=a956_0x2034,_0x52cde1=new Migration(_0x31f5fa);_0x52cde1[_0x41a11b('0x1b')]('report_square',_0x41a11b('0x1d'),{'type':_0x1edefa[_0x41a11b('0x3')],'defaultValue':![]}),_0x52cde1['addColumn'](_0x41a11b('0x6'),_0x41a11b('0x8'),{'type':_0x1edefa[_0x41a11b('0x2')],'defaultValue':null}),_0x52cde1['addColumn'](_0x41a11b('0x6'),_0x41a11b('0xc'),{'type':_0x1edefa[_0x41a11b('0x3')],'defaultValue':![]}),_0x52cde1[_0x41a11b('0x15')](_0x14a66f);});},'down':function(){}};
\ No newline at end of file
+const a956_0x3c6e=['renameColumn','then','sequence','query\x20%s','addColumn','removeIndex','migration','removeIndex\x20%s\x20%s','users','removeColumn','addIndex','STRING','finally','prototype','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','queryInterface','join','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','enqueue','bot','stringify','catch','interface','util','query','../config/logger','sequelize','Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s','dropTable','BOOLEAN','info','inspect','report_square','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x2df395,_0x3c6e42){const _0x324b72=function(_0x2eefcb){while(--_0x2eefcb){_0x2df395['push'](_0x2df395['shift']());}};_0x324b72(++_0x3c6e42);}(a956_0x3c6e,0x133));const a956_0x324b=function(_0x2df395,_0x3c6e42){_0x2df395=_0x2df395-0x0;let _0x324b72=a956_0x3c6e[_0x2df395];return _0x324b72;};const _0x36b854=a956_0x324b;'use strict';const util=require(_0x36b854('0x17')),logger=require(_0x36b854('0x19'))(_0x36b854('0x3')),Sequence=function(){};Sequence[_0x36b854('0xa')][_0x36b854('0x12')]=function(_0x2eefcb){const _0x5a8c7b=_0x36b854;this[_0x5a8c7b('0xd')]=this[_0x5a8c7b('0xd')]?this[_0x5a8c7b('0xd')][_0x5a8c7b('0x9')](_0x2eefcb):_0x2eefcb();};const Migration=function(_0x3a2544){const _0x5c76c8=_0x36b854;this[_0x5c76c8('0xe')]=_0x3a2544,this[_0x5c76c8('0x25')]=new Sequence();};Migration[_0x36b854('0xa')]['changeColumn']=function(_0x385406,_0x7fdf98,_0x3ed3e7){const _0x42ab7f=_0x36b854,_0x19d57d=this;this[_0x42ab7f('0x25')][_0x42ab7f('0x12')](function(){const _0x25a9b5=_0x42ab7f;return _0x19d57d[_0x25a9b5('0xe')]['changeColumn'](_0x385406,_0x7fdf98,_0x3ed3e7)['then'](function(){const _0x7aa010=_0x25a9b5;logger[_0x7aa010('0x1f')](_0x7aa010('0x10'),_0x7fdf98,_0x385406);})[_0x25a9b5('0x15')](function(_0x11e790){const _0x3b0068=_0x25a9b5;logger[_0x3b0068('0x1f')](JSON[_0x3b0068('0x14')](_0x11e790));});});},Migration[_0x36b854('0xa')][_0x36b854('0x1')]=function(_0x4a1a20,_0x384024,_0x18d6b4){const _0x114617=_0x36b854,_0x311af0=this;this[_0x114617('0x25')][_0x114617('0x12')](function(){const _0x12dcb0=_0x114617;return _0x311af0[_0x12dcb0('0xe')]['addColumn'](_0x4a1a20,_0x384024,_0x18d6b4)[_0x12dcb0('0x24')](function(){const _0x2bc5af=_0x12dcb0;logger['info'](_0x2bc5af('0x1b'),_0x384024,_0x4a1a20);})[_0x12dcb0('0x15')](function(_0x38dca7){logger['info'](JSON['stringify'](_0x38dca7));});});},Migration[_0x36b854('0xa')][_0x36b854('0x1d')]=function(_0x3e5c5c){const _0x3de619=_0x36b854,_0x12af7f=this;this[_0x3de619('0x25')][_0x3de619('0x12')](function(){const _0x1a0903=_0x3de619;return _0x12af7f[_0x1a0903('0xe')]['dropTable'](_0x3e5c5c,{'force':!![]})[_0x1a0903('0x24')](function(){const _0xf38d6f=_0x1a0903;logger[_0xf38d6f('0x1f')](_0xf38d6f('0x1c'),_0x3e5c5c);})[_0x1a0903('0x15')](function(_0x148d22){const _0x269220=_0x1a0903;logger[_0x269220('0x1f')](JSON[_0x269220('0x14')](_0x148d22));});});},Migration[_0x36b854('0xa')][_0x36b854('0x7')]=function(_0x10942a,_0x35888e,_0x380742){const _0x59c2e2=_0x36b854,_0x36d557=this;this[_0x59c2e2('0x25')][_0x59c2e2('0x12')](function(){const _0x37c446=_0x59c2e2;return _0x36d557[_0x37c446('0xe')]['addIndex'](_0x10942a,_0x35888e,{'indexName':_0x380742})[_0x37c446('0x24')](function(){const _0x55337f=_0x37c446;logger[_0x55337f('0x1f')]('addIndex\x20%s\x20%s\x20%s',_0x10942a,_0x35888e[_0x55337f('0xf')](','),_0x380742);})[_0x37c446('0x15')](function(_0x105556){const _0x1196d4=_0x37c446;logger[_0x1196d4('0x1f')](JSON['stringify'](_0x105556));});});},Migration[_0x36b854('0xa')][_0x36b854('0x2')]=function(_0xddc196,_0x172179){const _0x186a92=_0x36b854,_0x3f4f10=this;this[_0x186a92('0x25')][_0x186a92('0x12')](function(){const _0x45ed28=_0x186a92;return _0x3f4f10[_0x45ed28('0xe')][_0x45ed28('0x2')](_0xddc196,_0x172179)[_0x45ed28('0x24')](function(){const _0x4f5bf7=_0x45ed28;logger[_0x4f5bf7('0x1f')](_0x4f5bf7('0x4'),_0xddc196,_0x172179);})[_0x45ed28('0x15')](function(_0x1f541f){const _0x3cccc0=_0x45ed28;logger[_0x3cccc0('0x1f')](JSON[_0x3cccc0('0x14')](_0x1f541f));});});},Migration[_0x36b854('0xa')][_0x36b854('0x18')]=function(_0xc4cca3){const _0x302a01=_0x36b854,_0x2bfc14=this;this['sequence'][_0x302a01('0x12')](function(){const _0x455932=_0x302a01;return _0x2bfc14[_0x455932('0xe')][_0x455932('0x1a')]['query'](_0xc4cca3)[_0x455932('0x24')](function(){const _0x426f11=_0x455932;logger[_0x426f11('0x1f')](_0x426f11('0x0'),_0xc4cca3);})['catch'](function(_0x160eb0){const _0x3339=_0x455932;logger[_0x3339('0x1f')](JSON['stringify'](_0x160eb0));});});},Migration['prototype'][_0x36b854('0x6')]=function(_0x130706,_0x415e02){const _0x473ab8=_0x36b854,_0x34cff9=this;this[_0x473ab8('0x25')][_0x473ab8('0x12')](function(){const _0x3011cc=_0x473ab8;return _0x34cff9[_0x3011cc('0xe')][_0x3011cc('0x6')](_0x130706,_0x415e02)[_0x3011cc('0x24')](function(){const _0x10e402=_0x3011cc;logger['info'](_0x10e402('0x22'),_0x415e02,_0x130706);})[_0x3011cc('0x15')](function(_0x344501){const _0x1771b7=_0x3011cc;logger[_0x1771b7('0x1f')](util['inspect'](_0x344501,{'showHidden':![],'depth':null}));});});},Migration[_0x36b854('0xa')][_0x36b854('0x23')]=function(_0x30d9e4,_0x4d29c3,_0x4e9c42){const _0x4c3708=_0x36b854,_0x580a0e=this;this[_0x4c3708('0x25')]['enqueue'](function(){const _0x44549e=_0x4c3708;return _0x580a0e[_0x44549e('0xe')]['renameColumn'](_0x30d9e4,_0x4d29c3,_0x4e9c42)['then'](function(){const _0x14a0a9=_0x44549e;logger[_0x14a0a9('0x1f')](_0x14a0a9('0xc'),_0x4d29c3,_0x4e9c42,_0x30d9e4);})[_0x44549e('0x15')](function(_0x1136ed){const _0xa8d988=_0x44549e;logger[_0xa8d988('0x1f')](util[_0xa8d988('0x20')](_0x1136ed,{'showHidden':![],'depth':null}));});});},Migration[_0x36b854('0xa')][_0x36b854('0xb')]=function(_0x3d0f1d){const _0x1fdaa1=_0x36b854;this[_0x1fdaa1('0x25')]['enqueue'](function(){return _0x3d0f1d();});},module[_0x36b854('0x11')]={'up':function(_0x249c13,_0x558017){return new Promise(function(_0x6bafdf){const _0x253b87=a956_0x324b,_0x1d8500=new Migration(_0x249c13);_0x1d8500['addColumn'](_0x253b87('0x21'),_0x253b87('0x13'),{'type':_0x558017[_0x253b87('0x1e')],'defaultValue':![]}),_0x1d8500[_0x253b87('0x1')]('users',_0x253b87('0x16'),{'type':_0x558017[_0x253b87('0x8')],'defaultValue':null}),_0x1d8500[_0x253b87('0x1')](_0x253b87('0x5'),'privacyEnabled',{'type':_0x558017[_0x253b87('0x1e')],'defaultValue':![]}),_0x1d8500[_0x253b87('0xb')](_0x6bafdf);});},'down':function(){}};
\ No newline at end of file