Built motion from commit b51cdcb3f2cb46634587ce1d55ea1b8f32dacea6. Version 3.0.0...
[motion-next.git] / server / migrations / 2.5.3.js
index 96d6eeb..54265c1 100644 (file)
@@ -1 +1 @@
-const a1016_0x2794=['removeIndex','finally','#011F6A','addColumn','chat_websites','color_button','../config/logger','info','renameColumn','removeColumn','Removed\x20column\x20%s\x20from\x20%s','indexName','STRING','queryInterface','tail','addIndex','removeIndex\x20%s\x20%s','indicesType','table\x20dropped\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','then','sequelize','stringify','color','changeColumn','enqueue','catch','addIndex\x20%s\x20%s\x20%s\x20[%s]','inspect','prototype','Added\x20column\x20%s\x20to\x20%s','util','query','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','sequence','query\x20%s'];(function(_0x434f0d,_0x27940c){const _0x35bc93=function(_0x417773){while(--_0x417773){_0x434f0d['push'](_0x434f0d['shift']());}};_0x35bc93(++_0x27940c);}(a1016_0x2794,0x113));const a1016_0x35bc=function(_0x434f0d,_0x27940c){_0x434f0d=_0x434f0d-0x0;let _0x35bc93=a1016_0x2794[_0x434f0d];return _0x35bc93;};const _0x40bebb=a1016_0x35bc;'use strict';const util=require(_0x40bebb('0x16')),logger=require(_0x40bebb('0x23'))('migration'),Sequence=function(){};Sequence[_0x40bebb('0x14')][_0x40bebb('0x10')]=function(_0x417773){const _0x13a3c9=_0x40bebb;this[_0x13a3c9('0x5')]=this['tail']?this[_0x13a3c9('0x5')][_0x13a3c9('0x1e')](_0x417773):_0x417773();};const Migration=function(_0x50c8a8){const _0x324064=_0x40bebb;this[_0x324064('0x4')]=_0x50c8a8,this['sequence']=new Sequence();};Migration[_0x40bebb('0x14')][_0x40bebb('0xf')]=function(_0x67ddc6,_0x34552e,_0x4d5c89){const _0x3872c8=_0x40bebb,_0x4d23e4=this;this[_0x3872c8('0x1b')][_0x3872c8('0x10')](function(){const _0x17a09e=_0x3872c8;return _0x4d23e4['queryInterface'][_0x17a09e('0xf')](_0x67ddc6,_0x34552e,_0x4d5c89)['then'](function(){const _0xcbc798=_0x17a09e;logger[_0xcbc798('0x24')](_0xcbc798('0xa'),_0x34552e,_0x67ddc6);})[_0x17a09e('0x11')](function(_0x3a6c9f){const _0xd40ba2=_0x17a09e;logger[_0xd40ba2('0x24')](JSON[_0xd40ba2('0xd')](_0x3a6c9f));});});},Migration[_0x40bebb('0x14')][_0x40bebb('0x20')]=function(_0x1ee374,_0x2e49bd,_0x5b19b7){const _0x480aa7=_0x40bebb,_0x4b790b=this;this[_0x480aa7('0x1b')][_0x480aa7('0x10')](function(){const _0xea1ac7=_0x480aa7;return _0x4b790b[_0xea1ac7('0x4')]['addColumn'](_0x1ee374,_0x2e49bd,_0x5b19b7)[_0xea1ac7('0xb')](function(){const _0x315477=_0xea1ac7;logger[_0x315477('0x24')](_0x315477('0x15'),_0x2e49bd,_0x1ee374);})[_0xea1ac7('0x11')](function(_0x260c0b){const _0x3eb962=_0xea1ac7;logger[_0x3eb962('0x24')](JSON[_0x3eb962('0xd')](_0x260c0b));});});},Migration[_0x40bebb('0x14')]['dropTable']=function(_0x19a2c6){const _0x28d2ab=_0x40bebb,_0x5ab786=this;this[_0x28d2ab('0x1b')]['enqueue'](function(){const _0x4e273a=_0x28d2ab;return _0x5ab786['queryInterface'][_0x4e273a('0x1a')](_0x19a2c6,{'force':!![]})[_0x4e273a('0xb')](function(){const _0x45552a=_0x4e273a;logger[_0x45552a('0x24')](_0x45552a('0x9'),_0x19a2c6);})[_0x4e273a('0x11')](function(_0x30c280){const _0x2db4ab=_0x4e273a;logger[_0x2db4ab('0x24')](JSON[_0x2db4ab('0xd')](_0x30c280));});});},Migration[_0x40bebb('0x14')][_0x40bebb('0x6')]=function(_0x381ea7,_0x3bc5ea,_0x4cfc18){const _0xfb59d8=_0x40bebb,_0x2b3523=this;this[_0xfb59d8('0x1b')][_0xfb59d8('0x10')](function(){const _0xed57fe=_0xfb59d8;return _0x2b3523['queryInterface'][_0xed57fe('0x6')](_0x381ea7,_0x3bc5ea,{'indexName':_0x4cfc18[_0xed57fe('0x2')],'indicesType':_0x4cfc18['indicesType']})[_0xed57fe('0xb')](function(){const _0x214264=_0xed57fe;logger[_0x214264('0x24')](_0x214264('0x12'),_0x381ea7,_0x3bc5ea['join'](','),_0x4cfc18['indexName'],_0x4cfc18[_0x214264('0x8')]);})[_0xed57fe('0x11')](function(_0x49769c){const _0x2d8106=_0xed57fe;logger[_0x2d8106('0x24')](JSON[_0x2d8106('0xd')](_0x49769c));});});},Migration[_0x40bebb('0x14')]['removeIndex']=function(_0x119651,_0x323f18){const _0x58acad=_0x40bebb,_0x4a3b52=this;this[_0x58acad('0x1b')][_0x58acad('0x10')](function(){const _0x5c7f=_0x58acad;return _0x4a3b52['queryInterface'][_0x5c7f('0x1d')](_0x119651,_0x323f18)[_0x5c7f('0xb')](function(){const _0x15e5d8=_0x5c7f;logger[_0x15e5d8('0x24')](_0x15e5d8('0x7'),_0x119651,_0x323f18);})[_0x5c7f('0x11')](function(_0xeedb77){const _0x2fa4f1=_0x5c7f;logger[_0x2fa4f1('0x24')](JSON['stringify'](_0xeedb77));});});},Migration[_0x40bebb('0x14')]['query']=function(_0x38e608){const _0x126bab=_0x40bebb,_0x483d0a=this;this['sequence'][_0x126bab('0x10')](function(){const _0x528638=_0x126bab;return _0x483d0a[_0x528638('0x4')][_0x528638('0xc')][_0x528638('0x17')](_0x38e608)['then'](function(){const _0x50b242=_0x528638;logger['info'](_0x50b242('0x1c'),_0x38e608);})[_0x528638('0x11')](function(_0x54d607){const _0x45ebaf=_0x528638;logger[_0x45ebaf('0x24')](JSON[_0x45ebaf('0xd')](_0x54d607));});});},Migration[_0x40bebb('0x14')][_0x40bebb('0x0')]=function(_0x36b6da,_0x49af95){const _0x5df12b=_0x40bebb,_0x453079=this;this[_0x5df12b('0x1b')][_0x5df12b('0x10')](function(){const _0x1d9836=_0x5df12b;return _0x453079[_0x1d9836('0x4')][_0x1d9836('0x0')](_0x36b6da,_0x49af95)[_0x1d9836('0xb')](function(){const _0x32664b=_0x1d9836;logger[_0x32664b('0x24')](_0x32664b('0x1'),_0x49af95,_0x36b6da);})[_0x1d9836('0x11')](function(_0x24f849){const _0x32a3c1=_0x1d9836;logger[_0x32a3c1('0x24')](util['inspect'](_0x24f849,{'showHidden':![],'depth':null}));});});},Migration[_0x40bebb('0x14')][_0x40bebb('0x25')]=function(_0x1064dc,_0x375b66,_0x4dc042){const _0x2e0fb8=_0x40bebb,_0x118b28=this;this[_0x2e0fb8('0x1b')]['enqueue'](function(){const _0x180d90=_0x2e0fb8;return _0x118b28[_0x180d90('0x4')][_0x180d90('0x25')](_0x1064dc,_0x375b66,_0x4dc042)[_0x180d90('0xb')](function(){const _0x2ee582=_0x180d90;logger[_0x2ee582('0x24')](_0x2ee582('0x19'),_0x375b66,_0x4dc042,_0x1064dc);})[_0x180d90('0x11')](function(_0x5c4a28){const _0x11cc7f=_0x180d90;logger[_0x11cc7f('0x24')](util[_0x11cc7f('0x13')](_0x5c4a28,{'showHidden':![],'depth':null}));});});},Migration[_0x40bebb('0x14')][_0x40bebb('0x18')]=function(_0x101e45){const _0x17efda=_0x40bebb;this[_0x17efda('0x1b')][_0x17efda('0x10')](function(){return _0x101e45();});},module['exports']={'up':function(_0x5b3d0e,_0xd13347){return new Promise(function(_0x59db97){const _0x532dbf=a1016_0x35bc,_0x55f6bd=new Migration(_0x5b3d0e);_0x55f6bd['changeColumn'](_0x532dbf('0x21'),_0x532dbf('0xe'),{'type':_0xd13347[_0x532dbf('0x3')],'allowNull':![],'defaultValue':_0x532dbf('0x1f'),'validate':{'notEmpty':!![]}}),_0x55f6bd[_0x532dbf('0xf')]('chat_websites',_0x532dbf('0x22'),{'type':_0xd13347[_0x532dbf('0x3')],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}}),_0x55f6bd[_0x532dbf('0x18')](_0x59db97);});},'down':function(){}};
\ No newline at end of file
+const a1016_0x4e01=['addIndex','removeColumn','catch','tail','query','query\x20%s','exports','removeIndex','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','renameColumn','addColumn','queryInterface','STRING','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Removed\x20column\x20%s\x20from\x20%s','then','util','addIndex\x20%s\x20%s\x20%s\x20[%s]','changeColumn','indicesType','chat_websites','sequelize','color_button','stringify','indexName','dropTable','migration','Added\x20column\x20%s\x20to\x20%s','color','finally','enqueue','inspect','sequence','removeIndex\x20%s\x20%s','#011F6A','info'];(function(_0x41093f,_0x4e01ee){const _0x5a2a9e=function(_0x518265){while(--_0x518265){_0x41093f['push'](_0x41093f['shift']());}};_0x5a2a9e(++_0x4e01ee);}(a1016_0x4e01,0x155));const a1016_0x5a2a=function(_0x41093f,_0x4e01ee){_0x41093f=_0x41093f-0x0;let _0x5a2a9e=a1016_0x4e01[_0x41093f];return _0x5a2a9e;};const _0x541e26=a1016_0x5a2a;'use strict';const util=require(_0x541e26('0x13')),logger=require(_0x541e26('0xb'))(_0x541e26('0x1d')),Sequence=function(){};Sequence[_0x541e26('0x9')][_0x541e26('0x21')]=function(_0x518265){const _0x11b0ec=_0x541e26;this[_0x11b0ec('0x4')]=this[_0x11b0ec('0x4')]?this[_0x11b0ec('0x4')][_0x11b0ec('0x20')](_0x518265):_0x518265();};const Migration=function(_0xd14bcd){this['queryInterface']=_0xd14bcd,this['sequence']=new Sequence();};Migration[_0x541e26('0x9')][_0x541e26('0x15')]=function(_0x581dc4,_0x270741,_0x3d95ec){const _0x4f60a9=_0x541e26,_0x59783a=this;this['sequence'][_0x4f60a9('0x21')](function(){const _0x37fe89=_0x4f60a9;return _0x59783a[_0x37fe89('0xe')][_0x37fe89('0x15')](_0x581dc4,_0x270741,_0x3d95ec)['then'](function(){const _0x44c45d=_0x37fe89;logger[_0x44c45d('0x0')](_0x44c45d('0xa'),_0x270741,_0x581dc4);})['catch'](function(_0x3162b5){const _0x509f78=_0x37fe89;logger[_0x509f78('0x0')](JSON[_0x509f78('0x1a')](_0x3162b5));});});},Migration[_0x541e26('0x9')][_0x541e26('0xd')]=function(_0x1b459d,_0x47fd73,_0xd02fab){const _0x1028e1=_0x541e26,_0x1e85c9=this;this[_0x1028e1('0x23')][_0x1028e1('0x21')](function(){const _0x3f2c02=_0x1028e1;return _0x1e85c9[_0x3f2c02('0xe')]['addColumn'](_0x1b459d,_0x47fd73,_0xd02fab)[_0x3f2c02('0x12')](function(){const _0x305c61=_0x3f2c02;logger['info'](_0x305c61('0x1e'),_0x47fd73,_0x1b459d);})[_0x3f2c02('0x3')](function(_0x5113d2){const _0x2029e0=_0x3f2c02;logger[_0x2029e0('0x0')](JSON[_0x2029e0('0x1a')](_0x5113d2));});});},Migration[_0x541e26('0x9')][_0x541e26('0x1c')]=function(_0x26e79){const _0x5c49e1=_0x541e26,_0x181d66=this;this[_0x5c49e1('0x23')][_0x5c49e1('0x21')](function(){const _0x136d49=_0x5c49e1;return _0x181d66[_0x136d49('0xe')][_0x136d49('0x1c')](_0x26e79,{'force':!![]})[_0x136d49('0x12')](function(){const _0x4d994f=_0x136d49;logger[_0x4d994f('0x0')]('table\x20dropped\x20%s',_0x26e79);})['catch'](function(_0x1e91ce){const _0x593aa5=_0x136d49;logger[_0x593aa5('0x0')](JSON[_0x593aa5('0x1a')](_0x1e91ce));});});},Migration['prototype'][_0x541e26('0x1')]=function(_0x2f87d0,_0x5d5156,_0x5db68c){const _0x317b97=_0x541e26,_0xc43078=this;this['sequence'][_0x317b97('0x21')](function(){const _0x5db12b=_0x317b97;return _0xc43078[_0x5db12b('0xe')]['addIndex'](_0x2f87d0,_0x5d5156,{'indexName':_0x5db68c[_0x5db12b('0x1b')],'indicesType':_0x5db68c['indicesType']})[_0x5db12b('0x12')](function(){const _0x52fc4c=_0x5db12b;logger[_0x52fc4c('0x0')](_0x52fc4c('0x14'),_0x2f87d0,_0x5d5156['join'](','),_0x5db68c[_0x52fc4c('0x1b')],_0x5db68c[_0x52fc4c('0x16')]);})['catch'](function(_0x3869ef){const _0x5454c2=_0x5db12b;logger['info'](JSON[_0x5454c2('0x1a')](_0x3869ef));});});},Migration[_0x541e26('0x9')][_0x541e26('0x8')]=function(_0x43a0ef,_0x22d0ab){const _0x1df126=_0x541e26,_0x53b823=this;this[_0x1df126('0x23')][_0x1df126('0x21')](function(){const _0x5060f2=_0x1df126;return _0x53b823['queryInterface'][_0x5060f2('0x8')](_0x43a0ef,_0x22d0ab)['then'](function(){const _0x4d76ec=_0x5060f2;logger[_0x4d76ec('0x0')](_0x4d76ec('0x24'),_0x43a0ef,_0x22d0ab);})[_0x5060f2('0x3')](function(_0x56d467){const _0x583290=_0x5060f2;logger[_0x583290('0x0')](JSON[_0x583290('0x1a')](_0x56d467));});});},Migration[_0x541e26('0x9')][_0x541e26('0x5')]=function(_0x1a49ed){const _0x13ccb2=_0x541e26,_0x17d618=this;this[_0x13ccb2('0x23')][_0x13ccb2('0x21')](function(){const _0x5b02e3=_0x13ccb2;return _0x17d618[_0x5b02e3('0xe')][_0x5b02e3('0x18')][_0x5b02e3('0x5')](_0x1a49ed)[_0x5b02e3('0x12')](function(){const _0xcc9af9=_0x5b02e3;logger[_0xcc9af9('0x0')](_0xcc9af9('0x6'),_0x1a49ed);})[_0x5b02e3('0x3')](function(_0x5851c1){const _0x2af624=_0x5b02e3;logger[_0x2af624('0x0')](JSON[_0x2af624('0x1a')](_0x5851c1));});});},Migration[_0x541e26('0x9')][_0x541e26('0x2')]=function(_0x56e3e6,_0xd98306){const _0x35677c=_0x541e26,_0xd6953d=this;this['sequence'][_0x35677c('0x21')](function(){const _0x1465c7=_0x35677c;return _0xd6953d[_0x1465c7('0xe')][_0x1465c7('0x2')](_0x56e3e6,_0xd98306)[_0x1465c7('0x12')](function(){const _0x8ed1a5=_0x1465c7;logger[_0x8ed1a5('0x0')](_0x8ed1a5('0x11'),_0xd98306,_0x56e3e6);})[_0x1465c7('0x3')](function(_0x16c901){const _0x16e35e=_0x1465c7;logger[_0x16e35e('0x0')](util[_0x16e35e('0x22')](_0x16c901,{'showHidden':![],'depth':null}));});});},Migration[_0x541e26('0x9')]['renameColumn']=function(_0x86f5a5,_0x310618,_0x10351c){const _0x3e2137=_0x541e26,_0x271d72=this;this['sequence'][_0x3e2137('0x21')](function(){const _0x243849=_0x3e2137;return _0x271d72[_0x243849('0xe')][_0x243849('0xc')](_0x86f5a5,_0x310618,_0x10351c)['then'](function(){const _0x2130ce=_0x243849;logger['info'](_0x2130ce('0x10'),_0x310618,_0x10351c,_0x86f5a5);})[_0x243849('0x3')](function(_0x46c17c){const _0x3edcc0=_0x243849;logger[_0x3edcc0('0x0')](util['inspect'](_0x46c17c,{'showHidden':![],'depth':null}));});});},Migration[_0x541e26('0x9')]['final']=function(_0x56dec0){const _0x1ffba0=_0x541e26;this[_0x1ffba0('0x23')][_0x1ffba0('0x21')](function(){return _0x56dec0();});},module[_0x541e26('0x7')]={'up':function(_0x545f89,_0x2e10e2){return new Promise(function(_0x224773){const _0x4d6c2e=a1016_0x5a2a,_0x1c40d0=new Migration(_0x545f89);_0x1c40d0[_0x4d6c2e('0x15')](_0x4d6c2e('0x17'),_0x4d6c2e('0x1f'),{'type':_0x2e10e2[_0x4d6c2e('0xf')],'allowNull':![],'defaultValue':_0x4d6c2e('0x25'),'validate':{'notEmpty':!![]}}),_0x1c40d0[_0x4d6c2e('0x15')](_0x4d6c2e('0x17'),_0x4d6c2e('0x19'),{'type':_0x2e10e2[_0x4d6c2e('0xf')],'allowNull':![],'defaultValue':_0x4d6c2e('0x25'),'validate':{'notEmpty':!![]}}),_0x1c40d0['final'](_0x224773);});},'down':function(){}};
\ No newline at end of file