Built motion from commit 129fb4d95212661e48f0db455e75d668addbaddf. Version 3.0.0...
[motion-next.git] / server / migrations / 2.5.3.js
index 4e9d8ea..a8689f2 100644 (file)
@@ -1 +1 @@
-const a1015_0x3e4a=['prototype','dropTable','#011F6A','catch','chat_websites','then','addIndex\x20%s\x20%s\x20%s\x20[%s]','renameColumn','queryInterface','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','enqueue','sequence','stringify','../config/logger','exports','query\x20%s','STRING','removeIndex\x20%s\x20%s','indexName','join','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequelize','changeColumn','color_button','removeIndex','Removed\x20column\x20%s\x20from\x20%s','query','migration','Added\x20column\x20%s\x20to\x20%s','removeColumn','info','addColumn','indicesType','final'];(function(_0x4a7e50,_0x3e4adb){const _0x3acbf6=function(_0x16edf3){while(--_0x16edf3){_0x4a7e50['push'](_0x4a7e50['shift']());}};_0x3acbf6(++_0x3e4adb);}(a1015_0x3e4a,0x1ca));const a1015_0x3acb=function(_0x4a7e50,_0x3e4adb){_0x4a7e50=_0x4a7e50-0x0;let _0x3acbf6=a1015_0x3e4a[_0x4a7e50];return _0x3acbf6;};const _0x3650cb=a1015_0x3acb;'use strict';const util=require('util'),logger=require(_0x3650cb('0x19'))(_0x3650cb('0x3')),Sequence=function(){};Sequence['prototype'][_0x3650cb('0x16')]=function(_0x16edf3){const _0x26805a=_0x3650cb;this[_0x26805a('0x13')]=this[_0x26805a('0x13')]?this[_0x26805a('0x13')]['finally'](_0x16edf3):_0x16edf3();};const Migration=function(_0xab038f){const _0x598d1f=_0x3650cb;this[_0x598d1f('0x12')]=_0xab038f,this[_0x598d1f('0x17')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x2c9439,_0x562c77,_0x329cfc){const _0xc8cfff=this;this['sequence']['enqueue'](function(){const _0xa649b4=a1015_0x3acb;return _0xc8cfff[_0xa649b4('0x12')][_0xa649b4('0x22')](_0x2c9439,_0x562c77,_0x329cfc)[_0xa649b4('0xf')](function(){const _0x279c16=_0xa649b4;logger[_0x279c16('0x6')](_0x279c16('0x14'),_0x562c77,_0x2c9439);})[_0xa649b4('0xd')](function(_0x5e2395){const _0x3278b1=_0xa649b4;logger[_0x3278b1('0x6')](JSON[_0x3278b1('0x18')](_0x5e2395));});});},Migration[_0x3650cb('0xa')]['addColumn']=function(_0x512d3a,_0x359ae6,_0x49b2d3){const _0x433798=_0x3650cb,_0x180087=this;this[_0x433798('0x17')][_0x433798('0x16')](function(){const _0x371517=_0x433798;return _0x180087['queryInterface'][_0x371517('0x7')](_0x512d3a,_0x359ae6,_0x49b2d3)[_0x371517('0xf')](function(){const _0x4ff010=_0x371517;logger['info'](_0x4ff010('0x4'),_0x359ae6,_0x512d3a);})[_0x371517('0xd')](function(_0x6b612e){const _0x5c40d7=_0x371517;logger[_0x5c40d7('0x6')](JSON['stringify'](_0x6b612e));});});},Migration[_0x3650cb('0xa')][_0x3650cb('0xb')]=function(_0x5af8b0){const _0x3cd54b=_0x3650cb,_0x369de5=this;this[_0x3cd54b('0x17')]['enqueue'](function(){const _0x46da8c=_0x3cd54b;return _0x369de5[_0x46da8c('0x12')]['dropTable'](_0x5af8b0,{'force':!![]})[_0x46da8c('0xf')](function(){const _0x3aa20a=_0x46da8c;logger[_0x3aa20a('0x6')]('table\x20dropped\x20%s',_0x5af8b0);})[_0x46da8c('0xd')](function(_0x52c953){const _0x3dca87=_0x46da8c;logger[_0x3dca87('0x6')](JSON[_0x3dca87('0x18')](_0x52c953));});});},Migration[_0x3650cb('0xa')]['addIndex']=function(_0x3db572,_0x142ed1,_0x4187e5){const _0xae0da5=_0x3650cb,_0xc68bb8=this;this['sequence'][_0xae0da5('0x16')](function(){const _0x4ed905=_0xae0da5;return _0xc68bb8[_0x4ed905('0x12')]['addIndex'](_0x3db572,_0x142ed1,{'indexName':_0x4187e5['indexName'],'indicesType':_0x4187e5[_0x4ed905('0x8')]})['then'](function(){const _0x14b848=_0x4ed905;logger[_0x14b848('0x6')](_0x14b848('0x10'),_0x3db572,_0x142ed1[_0x14b848('0x1f')](','),_0x4187e5[_0x14b848('0x1e')],_0x4187e5['indicesType']);})['catch'](function(_0x4fb4e5){const _0x4eea2a=_0x4ed905;logger[_0x4eea2a('0x6')](JSON[_0x4eea2a('0x18')](_0x4fb4e5));});});},Migration[_0x3650cb('0xa')][_0x3650cb('0x0')]=function(_0x21e534,_0x398c6c){const _0x4da5a0=_0x3650cb,_0xb2aae9=this;this[_0x4da5a0('0x17')][_0x4da5a0('0x16')](function(){const _0x277a2b=_0x4da5a0;return _0xb2aae9[_0x277a2b('0x12')][_0x277a2b('0x0')](_0x21e534,_0x398c6c)['then'](function(){const _0x59899c=_0x277a2b;logger['info'](_0x59899c('0x1d'),_0x21e534,_0x398c6c);})['catch'](function(_0x200d3b){const _0x482ade=_0x277a2b;logger[_0x482ade('0x6')](JSON['stringify'](_0x200d3b));});});},Migration['prototype'][_0x3650cb('0x2')]=function(_0x31ee3a){const _0x5112fd=_0x3650cb,_0x110124=this;this[_0x5112fd('0x17')][_0x5112fd('0x16')](function(){const _0xab9762=_0x5112fd;return _0x110124['queryInterface'][_0xab9762('0x21')][_0xab9762('0x2')](_0x31ee3a)[_0xab9762('0xf')](function(){const _0x4cd527=_0xab9762;logger['info'](_0x4cd527('0x1b'),_0x31ee3a);})[_0xab9762('0xd')](function(_0x4f9930){const _0x409454=_0xab9762;logger['info'](JSON[_0x409454('0x18')](_0x4f9930));});});},Migration['prototype'][_0x3650cb('0x5')]=function(_0x2b77de,_0x217957){const _0x1fc483=_0x3650cb,_0x5c5aee=this;this[_0x1fc483('0x17')][_0x1fc483('0x16')](function(){const _0x26af3e=_0x1fc483;return _0x5c5aee['queryInterface']['removeColumn'](_0x2b77de,_0x217957)['then'](function(){const _0x17923d=a1015_0x3acb;logger[_0x17923d('0x6')](_0x17923d('0x1'),_0x217957,_0x2b77de);})[_0x26af3e('0xd')](function(_0x335979){const _0x384a3c=_0x26af3e;logger[_0x384a3c('0x6')](util[_0x384a3c('0x15')](_0x335979,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x5caa9f,_0x411844,_0x24c115){const _0x112bf0=_0x3650cb,_0x5bc726=this;this[_0x112bf0('0x17')][_0x112bf0('0x16')](function(){const _0x21d50a=_0x112bf0;return _0x5bc726[_0x21d50a('0x12')][_0x21d50a('0x11')](_0x5caa9f,_0x411844,_0x24c115)[_0x21d50a('0xf')](function(){const _0x505db8=_0x21d50a;logger[_0x505db8('0x6')](_0x505db8('0x20'),_0x411844,_0x24c115,_0x5caa9f);})[_0x21d50a('0xd')](function(_0x4ca63c){const _0x2ffdbe=_0x21d50a;logger['info'](util[_0x2ffdbe('0x15')](_0x4ca63c,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3650cb('0x9')]=function(_0x293776){const _0x4dc3f7=_0x3650cb;this[_0x4dc3f7('0x17')][_0x4dc3f7('0x16')](function(){return _0x293776();});},module[_0x3650cb('0x1a')]={'up':function(_0x293c5e,_0x57a342){return new Promise(function(_0x114ce3){const _0x845069=a1015_0x3acb,_0x267e23=new Migration(_0x293c5e);_0x267e23[_0x845069('0x22')](_0x845069('0xe'),'color',{'type':_0x57a342[_0x845069('0x1c')],'allowNull':![],'defaultValue':_0x845069('0xc'),'validate':{'notEmpty':!![]}}),_0x267e23[_0x845069('0x22')](_0x845069('0xe'),_0x845069('0x23'),{'type':_0x57a342['STRING'],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}}),_0x267e23[_0x845069('0x9')](_0x114ce3);});},'down':function(){}};
\ No newline at end of file
+const a1177_0x5d69=['indicesType','color','final','info','removeIndex','Added\x20column\x20%s\x20to\x20%s','removeColumn','chat_websites','then','prototype','inspect','color_button','query','changeColumn','finally','../config/logger','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex','removeIndex\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s','sequelize','STRING','join','enqueue','renameColumn','catch','util','sequence','#011F6A','addColumn','tail','stringify','queryInterface'];(function(_0x2d4da1,_0x4bc37f){const _0x5d6933=function(_0x539d94){while(--_0x539d94){_0x2d4da1['push'](_0x2d4da1['shift']());}};_0x5d6933(++_0x4bc37f);}(a1177_0x5d69,0x82));const a1177_0x539d=function(_0x2d4da1,_0x4bc37f){_0x2d4da1=_0x2d4da1-0x1a8;let _0x5d6933=a1177_0x5d69[_0x2d4da1];return _0x5d6933;};const a1177_0x4a2e98=a1177_0x539d;'use strict';const util=require(a1177_0x4a2e98(0x1ab)),logger=require(a1177_0x4a2e98(0x1c1))('migration'),Sequence=function(){};Sequence[a1177_0x4a2e98(0x1bb)][a1177_0x4a2e98(0x1a8)]=function(_0x21da23){const _0x27a490=a1177_0x4a2e98;this['tail']=this['tail']?this[_0x27a490(0x1af)][_0x27a490(0x1c0)](_0x21da23):_0x21da23();};const Migration=function(_0x1e5586){const _0x46393c=a1177_0x4a2e98;this['queryInterface']=_0x1e5586,this[_0x46393c(0x1ac)]=new Sequence();};Migration[a1177_0x4a2e98(0x1bb)][a1177_0x4a2e98(0x1bf)]=function(_0x565889,_0x38bf58,_0x2fbe25){const _0x6dc30d=this;this['sequence']['enqueue'](function(){const _0x3423ac=a1177_0x539d;return _0x6dc30d[_0x3423ac(0x1b1)][_0x3423ac(0x1bf)](_0x565889,_0x38bf58,_0x2fbe25)['then'](function(){const _0x287969=_0x3423ac;logger[_0x287969(0x1b5)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x38bf58,_0x565889);})[_0x3423ac(0x1aa)](function(_0x324542){const _0x1d427c=_0x3423ac;logger['info'](JSON[_0x1d427c(0x1b0)](_0x324542));});});},Migration[a1177_0x4a2e98(0x1bb)]['addColumn']=function(_0x2e529c,_0x4aef12,_0x4e3015){const _0x4745ed=a1177_0x4a2e98,_0x15aa5a=this;this[_0x4745ed(0x1ac)]['enqueue'](function(){const _0xaf78d0=_0x4745ed;return _0x15aa5a[_0xaf78d0(0x1b1)][_0xaf78d0(0x1ae)](_0x2e529c,_0x4aef12,_0x4e3015)[_0xaf78d0(0x1ba)](function(){const _0x5d1174=_0xaf78d0;logger['info'](_0x5d1174(0x1b7),_0x4aef12,_0x2e529c);})['catch'](function(_0x1b60b6){const _0x4a7f7a=_0xaf78d0;logger[_0x4a7f7a(0x1b5)](JSON[_0x4a7f7a(0x1b0)](_0x1b60b6));});});},Migration['prototype'][a1177_0x4a2e98(0x1c2)]=function(_0x291744){const _0x4621be=a1177_0x4a2e98,_0x3de277=this;this['sequence'][_0x4621be(0x1a8)](function(){const _0x5f00df=_0x4621be;return _0x3de277[_0x5f00df(0x1b1)][_0x5f00df(0x1c2)](_0x291744,{'force':!![]})[_0x5f00df(0x1ba)](function(){const _0xa9486d=_0x5f00df;logger[_0xa9486d(0x1b5)](_0xa9486d(0x1c7),_0x291744);})['catch'](function(_0x3ddceb){const _0x3b4b5f=_0x5f00df;logger[_0x3b4b5f(0x1b5)](JSON[_0x3b4b5f(0x1b0)](_0x3ddceb));});});},Migration[a1177_0x4a2e98(0x1bb)][a1177_0x4a2e98(0x1c4)]=function(_0x5b494b,_0x2754fb,_0x59b494){const _0x3a0a81=a1177_0x4a2e98,_0x5da8aa=this;this[_0x3a0a81(0x1ac)][_0x3a0a81(0x1a8)](function(){const _0x59f4f6=_0x3a0a81;return _0x5da8aa[_0x59f4f6(0x1b1)][_0x59f4f6(0x1c4)](_0x5b494b,_0x2754fb,{'indexName':_0x59b494['indexName'],'indicesType':_0x59b494[_0x59f4f6(0x1b2)]})[_0x59f4f6(0x1ba)](function(){const _0x30a751=_0x59f4f6;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x5b494b,_0x2754fb[_0x30a751(0x1ca)](','),_0x59b494['indexName'],_0x59b494['indicesType']);})['catch'](function(_0x59e7ec){logger['info'](JSON['stringify'](_0x59e7ec));});});},Migration[a1177_0x4a2e98(0x1bb)][a1177_0x4a2e98(0x1b6)]=function(_0x368157,_0x4667ea){const _0x5c0632=a1177_0x4a2e98,_0xa065d=this;this['sequence'][_0x5c0632(0x1a8)](function(){const _0x5c3613=_0x5c0632;return _0xa065d[_0x5c3613(0x1b1)][_0x5c3613(0x1b6)](_0x368157,_0x4667ea)['then'](function(){const _0x1315a9=_0x5c3613;logger['info'](_0x1315a9(0x1c5),_0x368157,_0x4667ea);})[_0x5c3613(0x1aa)](function(_0x3a83b2){const _0x4b5ddd=_0x5c3613;logger[_0x4b5ddd(0x1b5)](JSON[_0x4b5ddd(0x1b0)](_0x3a83b2));});});},Migration[a1177_0x4a2e98(0x1bb)]['query']=function(_0x379dbd){const _0x400124=a1177_0x4a2e98,_0x57661e=this;this[_0x400124(0x1ac)][_0x400124(0x1a8)](function(){const _0x1187ed=_0x400124;return _0x57661e['queryInterface'][_0x1187ed(0x1c8)][_0x1187ed(0x1be)](_0x379dbd)[_0x1187ed(0x1ba)](function(){const _0x51f261=_0x1187ed;logger[_0x51f261(0x1b5)]('query\x20%s',_0x379dbd);})[_0x1187ed(0x1aa)](function(_0xdd1294){const _0x33e75f=_0x1187ed;logger[_0x33e75f(0x1b5)](JSON['stringify'](_0xdd1294));});});},Migration[a1177_0x4a2e98(0x1bb)][a1177_0x4a2e98(0x1b8)]=function(_0x4d9c1b,_0x5b97bb){const _0x403dde=a1177_0x4a2e98,_0x46d558=this;this[_0x403dde(0x1ac)]['enqueue'](function(){const _0x1f5049=_0x403dde;return _0x46d558[_0x1f5049(0x1b1)]['removeColumn'](_0x4d9c1b,_0x5b97bb)[_0x1f5049(0x1ba)](function(){const _0x55bd11=_0x1f5049;logger[_0x55bd11(0x1b5)](_0x55bd11(0x1c6),_0x5b97bb,_0x4d9c1b);})[_0x1f5049(0x1aa)](function(_0x3fc84d){const _0x5dbf7c=_0x1f5049;logger[_0x5dbf7c(0x1b5)](util[_0x5dbf7c(0x1bc)](_0x3fc84d,{'showHidden':![],'depth':null}));});});},Migration[a1177_0x4a2e98(0x1bb)][a1177_0x4a2e98(0x1a9)]=function(_0x3c8b14,_0x1596a4,_0x22c267){const _0x31d820=a1177_0x4a2e98,_0x4ee799=this;this['sequence'][_0x31d820(0x1a8)](function(){const _0x5b3126=_0x31d820;return _0x4ee799[_0x5b3126(0x1b1)][_0x5b3126(0x1a9)](_0x3c8b14,_0x1596a4,_0x22c267)['then'](function(){const _0x8c02df=_0x5b3126;logger['info'](_0x8c02df(0x1c3),_0x1596a4,_0x22c267,_0x3c8b14);})[_0x5b3126(0x1aa)](function(_0x2f65f3){const _0x4484e6=_0x5b3126;logger[_0x4484e6(0x1b5)](util[_0x4484e6(0x1bc)](_0x2f65f3,{'showHidden':![],'depth':null}));});});},Migration[a1177_0x4a2e98(0x1bb)][a1177_0x4a2e98(0x1b4)]=function(_0x3ed3e4){const _0x38eb08=a1177_0x4a2e98;this[_0x38eb08(0x1ac)]['enqueue'](function(){return _0x3ed3e4();});},module['exports']={'up':function(_0x371ae3,_0x566404){return new Promise(function(_0x2a8f8d){const _0xa0d22b=a1177_0x539d,_0x371294=new Migration(_0x371ae3);_0x371294[_0xa0d22b(0x1bf)]('chat_websites',_0xa0d22b(0x1b3),{'type':_0x566404[_0xa0d22b(0x1c9)],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}}),_0x371294[_0xa0d22b(0x1bf)](_0xa0d22b(0x1b9),_0xa0d22b(0x1bd),{'type':_0x566404[_0xa0d22b(0x1c9)],'allowNull':![],'defaultValue':_0xa0d22b(0x1ad),'validate':{'notEmpty':!![]}}),_0x371294[_0xa0d22b(0x1b4)](_0x2a8f8d);});},'down':function(){}};
\ No newline at end of file