Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / migrations / 2.2.2.js
index de52c54..8f841d6 100644 (file)
@@ -1 +1 @@
-const a967_0x1dbc=['removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','query','removeIndex\x20%s\x20%s','enqueue','info','util','changeColumn','sequelize','removeIndex','migration','inspect','prototype','join','renameColumn','sequence','addIndex\x20%s\x20%s\x20%s','queryInterface','then','table\x20dropped\x20%s','addIndex','finally','Removed\x20column\x20%s\x20from\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','exports','stringify','catch','addColumn','tail','query\x20%s'];(function(_0x394e74,_0x1dbc68){const _0x2f4125=function(_0x1f8157){while(--_0x1f8157){_0x394e74['push'](_0x394e74['shift']());}};_0x2f4125(++_0x1dbc68);}(a967_0x1dbc,0x1d2));const a967_0x2f41=function(_0x394e74,_0x1dbc68){_0x394e74=_0x394e74-0x0;let _0x2f4125=a967_0x1dbc[_0x394e74];return _0x2f4125;};const _0x2ca7c4=a967_0x2f41;'use strict';const util=require(_0x2ca7c4('0x14')),logger=require('../config/logger')(_0x2ca7c4('0x18')),Sequence=function(){};Sequence[_0x2ca7c4('0x1a')][_0x2ca7c4('0x12')]=function(_0x1f8157){const _0x2fa829=_0x2ca7c4;this['tail']=this[_0x2fa829('0xc')]?this[_0x2fa829('0xc')][_0x2fa829('0x5')](_0x1f8157):_0x1f8157();};const Migration=function(_0x9687b5){const _0x2d8a66=_0x2ca7c4;this[_0x2d8a66('0x1')]=_0x9687b5,this[_0x2d8a66('0x1d')]=new Sequence();};Migration['prototype'][_0x2ca7c4('0x15')]=function(_0x35dfb6,_0x24272f,_0x355753){const _0x23380c=_0x2ca7c4,_0x30377f=this;this[_0x23380c('0x1d')]['enqueue'](function(){const _0x56e2d3=_0x23380c;return _0x30377f[_0x56e2d3('0x1')]['changeColumn'](_0x35dfb6,_0x24272f,_0x355753)[_0x56e2d3('0x2')](function(){const _0x5c75b5=_0x56e2d3;logger[_0x5c75b5('0x13')](_0x5c75b5('0xf'),_0x24272f,_0x35dfb6);})[_0x56e2d3('0xa')](function(_0x42816a){const _0x17f82b=_0x56e2d3;logger[_0x17f82b('0x13')](JSON[_0x17f82b('0x9')](_0x42816a));});});},Migration['prototype'][_0x2ca7c4('0xb')]=function(_0x1b1bc2,_0x5845b5,_0x2a2f5f){const _0x112094=_0x2ca7c4,_0x250d76=this;this[_0x112094('0x1d')][_0x112094('0x12')](function(){const _0x3e177a=_0x112094;return _0x250d76['queryInterface'][_0x3e177a('0xb')](_0x1b1bc2,_0x5845b5,_0x2a2f5f)[_0x3e177a('0x2')](function(){const _0x2284fd=_0x3e177a;logger[_0x2284fd('0x13')]('Added\x20column\x20%s\x20to\x20%s',_0x5845b5,_0x1b1bc2);})[_0x3e177a('0xa')](function(_0x10d463){const _0x5511b6=_0x3e177a;logger[_0x5511b6('0x13')](JSON[_0x5511b6('0x9')](_0x10d463));});});},Migration[_0x2ca7c4('0x1a')]['dropTable']=function(_0x57af64){const _0x580651=_0x2ca7c4,_0x576744=this;this[_0x580651('0x1d')][_0x580651('0x12')](function(){const _0x44ee43=_0x580651;return _0x576744[_0x44ee43('0x1')]['dropTable'](_0x57af64,{'force':!![]})[_0x44ee43('0x2')](function(){const _0x1d348a=_0x44ee43;logger['info'](_0x1d348a('0x3'),_0x57af64);})[_0x44ee43('0xa')](function(_0x2a39fe){const _0x4fa16f=_0x44ee43;logger[_0x4fa16f('0x13')](JSON[_0x4fa16f('0x9')](_0x2a39fe));});});},Migration['prototype'][_0x2ca7c4('0x4')]=function(_0x15f070,_0x283ed2,_0x3cd1c6){const _0x4c01e8=_0x2ca7c4,_0x5b3ba4=this;this['sequence'][_0x4c01e8('0x12')](function(){const _0x55af2d=_0x4c01e8;return _0x5b3ba4[_0x55af2d('0x1')][_0x55af2d('0x4')](_0x15f070,_0x283ed2,{'indexName':_0x3cd1c6})['then'](function(){const _0x15b415=_0x55af2d;logger[_0x15b415('0x13')](_0x15b415('0x0'),_0x15f070,_0x283ed2[_0x15b415('0x1b')](','),_0x3cd1c6);})[_0x55af2d('0xa')](function(_0x25f0c3){const _0x2289b8=_0x55af2d;logger[_0x2289b8('0x13')](JSON[_0x2289b8('0x9')](_0x25f0c3));});});},Migration['prototype'][_0x2ca7c4('0x17')]=function(_0x3d1930,_0x4e3a34){const _0x5a42c3=_0x2ca7c4,_0xe0951c=this;this[_0x5a42c3('0x1d')]['enqueue'](function(){const _0x231776=_0x5a42c3;return _0xe0951c[_0x231776('0x1')][_0x231776('0x17')](_0x3d1930,_0x4e3a34)[_0x231776('0x2')](function(){const _0x39ecdb=_0x231776;logger[_0x39ecdb('0x13')](_0x39ecdb('0x11'),_0x3d1930,_0x4e3a34);})['catch'](function(_0x132171){const _0x2e0e1e=_0x231776;logger[_0x2e0e1e('0x13')](JSON[_0x2e0e1e('0x9')](_0x132171));});});},Migration[_0x2ca7c4('0x1a')][_0x2ca7c4('0x10')]=function(_0x47216b){const _0xf8135d=_0x2ca7c4,_0x240d2d=this;this[_0xf8135d('0x1d')]['enqueue'](function(){const _0x1f9c5e=_0xf8135d;return _0x240d2d[_0x1f9c5e('0x1')][_0x1f9c5e('0x16')][_0x1f9c5e('0x10')](_0x47216b)[_0x1f9c5e('0x2')](function(){const _0x4c5086=_0x1f9c5e;logger[_0x4c5086('0x13')](_0x4c5086('0xd'),_0x47216b);})[_0x1f9c5e('0xa')](function(_0x3eab12){const _0x2b3ad8=_0x1f9c5e;logger[_0x2b3ad8('0x13')](JSON[_0x2b3ad8('0x9')](_0x3eab12));});});},Migration[_0x2ca7c4('0x1a')][_0x2ca7c4('0xe')]=function(_0x2f4771,_0x26021a){const _0x164ff0=_0x2ca7c4,_0x2b4ce0=this;this[_0x164ff0('0x1d')][_0x164ff0('0x12')](function(){const _0x241109=_0x164ff0;return _0x2b4ce0['queryInterface'][_0x241109('0xe')](_0x2f4771,_0x26021a)[_0x241109('0x2')](function(){const _0x83839=_0x241109;logger[_0x83839('0x13')](_0x83839('0x6'),_0x26021a,_0x2f4771);})['catch'](function(_0x3d23b8){const _0x2e024b=_0x241109;logger[_0x2e024b('0x13')](util[_0x2e024b('0x19')](_0x3d23b8,{'showHidden':![],'depth':null}));});});},Migration[_0x2ca7c4('0x1a')][_0x2ca7c4('0x1c')]=function(_0x3469ab,_0x3c1768,_0xc1072d){const _0x4e19ee=_0x2ca7c4,_0x4f105d=this;this[_0x4e19ee('0x1d')]['enqueue'](function(){const _0x28d451=_0x4e19ee;return _0x4f105d[_0x28d451('0x1')][_0x28d451('0x1c')](_0x3469ab,_0x3c1768,_0xc1072d)[_0x28d451('0x2')](function(){const _0x38c7e0=_0x28d451;logger[_0x38c7e0('0x13')](_0x38c7e0('0x7'),_0x3c1768,_0xc1072d,_0x3469ab);})[_0x28d451('0xa')](function(_0x303753){logger['info'](util['inspect'](_0x303753,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x50e87d){this['sequence']['enqueue'](function(){return _0x50e87d();});},module[_0x2ca7c4('0x8')]={'up':function(_0x5247f0){return new Promise(function(_0x369e57){const _0x562629=new Migration(_0x5247f0);_0x562629['final'](_0x369e57);});},'down':function(){}};
\ No newline at end of file
+const a967_0x3904=['query','queryInterface','inspect','prototype','stringify','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequelize','final','join','addColumn','then','table\x20dropped\x20%s','../config/logger','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','util','exports','info','sequence','addIndex','catch','dropTable','enqueue','Removed\x20column\x20%s\x20from\x20%s','renameColumn'];(function(_0x41b29d,_0x390462){const _0x533f90=function(_0x5d521e){while(--_0x5d521e){_0x41b29d['push'](_0x41b29d['shift']());}};_0x533f90(++_0x390462);}(a967_0x3904,0xa4));const a967_0x533f=function(_0x41b29d,_0x390462){_0x41b29d=_0x41b29d-0x0;let _0x533f90=a967_0x3904[_0x41b29d];return _0x533f90;};const _0x1c7599=a967_0x533f;'use strict';const util=require(_0x1c7599('0x8')),logger=require(_0x1c7599('0x5'))('migration'),Sequence=function(){};Sequence[_0x1c7599('0x15')]['enqueue']=function(_0x5d521e){const _0x298e19=_0x1c7599;this['tail']=this['tail']?this[_0x298e19('0x6')]['finally'](_0x5d521e):_0x5d521e();};const Migration=function(_0x3e0f87){const _0xb02556=_0x1c7599;this[_0xb02556('0x13')]=_0x3e0f87,this[_0xb02556('0xb')]=new Sequence();};Migration[_0x1c7599('0x15')]['changeColumn']=function(_0x314a39,_0x43b50d,_0x4fb976){const _0x535c5d=_0x1c7599,_0xaee79d=this;this[_0x535c5d('0xb')]['enqueue'](function(){const _0x30db04=_0x535c5d;return _0xaee79d[_0x30db04('0x13')][_0x30db04('0x17')](_0x314a39,_0x43b50d,_0x4fb976)[_0x30db04('0x3')](function(){const _0x1154c6=_0x30db04;logger[_0x1154c6('0xa')](_0x1154c6('0x7'),_0x43b50d,_0x314a39);})[_0x30db04('0xd')](function(_0x200520){const _0x36976f=_0x30db04;logger[_0x36976f('0xa')](JSON['stringify'](_0x200520));});});},Migration[_0x1c7599('0x15')][_0x1c7599('0x2')]=function(_0x7ea3c8,_0x281b2a,_0x157a46){const _0x37fdfb=_0x1c7599,_0x196eee=this;this[_0x37fdfb('0xb')][_0x37fdfb('0xf')](function(){const _0x205eef=_0x37fdfb;return _0x196eee['queryInterface'][_0x205eef('0x2')](_0x7ea3c8,_0x281b2a,_0x157a46)[_0x205eef('0x3')](function(){const _0x1d8135=_0x205eef;logger[_0x1d8135('0xa')]('Added\x20column\x20%s\x20to\x20%s',_0x281b2a,_0x7ea3c8);})[_0x205eef('0xd')](function(_0x38c07e){const _0x5ee692=_0x205eef;logger[_0x5ee692('0xa')](JSON[_0x5ee692('0x16')](_0x38c07e));});});},Migration[_0x1c7599('0x15')][_0x1c7599('0xe')]=function(_0x5e29df){const _0x192784=this;this['sequence']['enqueue'](function(){const _0xe8eac1=a967_0x533f;return _0x192784[_0xe8eac1('0x13')][_0xe8eac1('0xe')](_0x5e29df,{'force':!![]})['then'](function(){const _0x18e4ca=_0xe8eac1;logger['info'](_0x18e4ca('0x4'),_0x5e29df);})[_0xe8eac1('0xd')](function(_0xa16704){logger['info'](JSON['stringify'](_0xa16704));});});},Migration[_0x1c7599('0x15')][_0x1c7599('0xc')]=function(_0x13e593,_0x55d051,_0x27047a){const _0x5c8890=_0x1c7599,_0x15b5bd=this;this[_0x5c8890('0xb')][_0x5c8890('0xf')](function(){const _0x41c559=_0x5c8890;return _0x15b5bd[_0x41c559('0x13')]['addIndex'](_0x13e593,_0x55d051,{'indexName':_0x27047a})[_0x41c559('0x3')](function(){const _0x3fd6f1=_0x41c559;logger[_0x3fd6f1('0xa')]('addIndex\x20%s\x20%s\x20%s',_0x13e593,_0x55d051[_0x3fd6f1('0x1')](','),_0x27047a);})['catch'](function(_0x22777c){const _0x5663db=_0x41c559;logger[_0x5663db('0xa')](JSON['stringify'](_0x22777c));});});},Migration[_0x1c7599('0x15')]['removeIndex']=function(_0x422b71,_0x58d362){const _0x2c3e7a=_0x1c7599,_0x50ff5e=this;this['sequence'][_0x2c3e7a('0xf')](function(){const _0x9e05c2=_0x2c3e7a;return _0x50ff5e['queryInterface']['removeIndex'](_0x422b71,_0x58d362)[_0x9e05c2('0x3')](function(){const _0x299b30=_0x9e05c2;logger[_0x299b30('0xa')]('removeIndex\x20%s\x20%s',_0x422b71,_0x58d362);})[_0x9e05c2('0xd')](function(_0x1e210d){logger['info'](JSON['stringify'](_0x1e210d));});});},Migration[_0x1c7599('0x15')][_0x1c7599('0x12')]=function(_0x272952){const _0x2d0afa=_0x1c7599,_0xff509c=this;this['sequence'][_0x2d0afa('0xf')](function(){const _0x2b5418=_0x2d0afa;return _0xff509c['queryInterface'][_0x2b5418('0x19')]['query'](_0x272952)[_0x2b5418('0x3')](function(){const _0x2679ce=_0x2b5418;logger[_0x2679ce('0xa')]('query\x20%s',_0x272952);})[_0x2b5418('0xd')](function(_0x196218){const _0x1864d1=_0x2b5418;logger[_0x1864d1('0xa')](JSON[_0x1864d1('0x16')](_0x196218));});});},Migration['prototype']['removeColumn']=function(_0x2968b1,_0x14a0ba){const _0x46056e=_0x1c7599,_0x1ad600=this;this[_0x46056e('0xb')][_0x46056e('0xf')](function(){const _0x24ad4c=_0x46056e;return _0x1ad600[_0x24ad4c('0x13')]['removeColumn'](_0x2968b1,_0x14a0ba)[_0x24ad4c('0x3')](function(){const _0x2925a1=_0x24ad4c;logger['info'](_0x2925a1('0x10'),_0x14a0ba,_0x2968b1);})[_0x24ad4c('0xd')](function(_0x24bd1b){const _0x59b63e=_0x24ad4c;logger[_0x59b63e('0xa')](util[_0x59b63e('0x14')](_0x24bd1b,{'showHidden':![],'depth':null}));});});},Migration[_0x1c7599('0x15')][_0x1c7599('0x11')]=function(_0x23f552,_0x498ff4,_0x552646){const _0x3bcfbf=_0x1c7599,_0x26e68d=this;this[_0x3bcfbf('0xb')]['enqueue'](function(){const _0x39c4f1=_0x3bcfbf;return _0x26e68d[_0x39c4f1('0x13')][_0x39c4f1('0x11')](_0x23f552,_0x498ff4,_0x552646)['then'](function(){const _0x53fe8c=_0x39c4f1;logger[_0x53fe8c('0xa')](_0x53fe8c('0x18'),_0x498ff4,_0x552646,_0x23f552);})[_0x39c4f1('0xd')](function(_0x184767){const _0x6110ee=_0x39c4f1;logger[_0x6110ee('0xa')](util[_0x6110ee('0x14')](_0x184767,{'showHidden':![],'depth':null}));});});},Migration[_0x1c7599('0x15')]['final']=function(_0x1151a2){const _0x291ce7=_0x1c7599;this[_0x291ce7('0xb')][_0x291ce7('0xf')](function(){return _0x1151a2();});},module[_0x1c7599('0x9')]={'up':function(_0x1ac09f){return new Promise(function(_0x215288){const _0x52c83b=a967_0x533f,_0xce9bfc=new Migration(_0x1ac09f);_0xce9bfc[_0x52c83b('0x0')](_0x215288);});},'down':function(){}};
\ No newline at end of file