Built motion from commit ded33658aad58fc8de845a8299a9db59a88cc353. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.94.js
index 87941ba..448586b 100644 (file)
@@ -1 +1 @@
-const a986_0x3e59=['Added\x20column\x20%s\x20to\x20%s','query\x20%s','tail','exports','removeIndex','sequence','addColumn','join','dropTable','util','changeColumn','query','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s','addIndex\x20%s\x20%s\x20%s','inspect','catch','addIndex','prototype','then','../config/logger','info','queryInterface','stringify','renameColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue'];(function(_0x202e23,_0x3e598f){const _0x144063=function(_0x324da7){while(--_0x324da7){_0x202e23['push'](_0x202e23['shift']());}};_0x144063(++_0x3e598f);}(a986_0x3e59,0x65));const a986_0x1440=function(_0x202e23,_0x3e598f){_0x202e23=_0x202e23-0x0;let _0x144063=a986_0x3e59[_0x202e23];return _0x144063;};const _0x380c37=a986_0x1440;'use strict';const util=require(_0x380c37('0x10')),logger=require(_0x380c37('0x0'))('migration'),Sequence=function(){};Sequence[_0x380c37('0x19')][_0x380c37('0x6')]=function(_0x324da7){const _0x1bb83a=_0x380c37;this['tail']=this[_0x1bb83a('0x9')]?this[_0x1bb83a('0x9')]['finally'](_0x324da7):_0x324da7();};const Migration=function(_0x411d5e){const _0x34c480=_0x380c37;this[_0x34c480('0x2')]=_0x411d5e,this[_0x34c480('0xc')]=new Sequence();};Migration[_0x380c37('0x19')][_0x380c37('0x11')]=function(_0x1195c6,_0x9be95c,_0x444eb8){const _0x771dfe=_0x380c37,_0x461c41=this;this[_0x771dfe('0xc')][_0x771dfe('0x6')](function(){const _0x4896c3=_0x771dfe;return _0x461c41[_0x4896c3('0x2')][_0x4896c3('0x11')](_0x1195c6,_0x9be95c,_0x444eb8)['then'](function(){const _0x503f95=_0x4896c3;logger[_0x503f95('0x1')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x9be95c,_0x1195c6);})[_0x4896c3('0x17')](function(_0x3813d9){const _0x4e3b43=_0x4896c3;logger[_0x4e3b43('0x1')](JSON['stringify'](_0x3813d9));});});},Migration[_0x380c37('0x19')][_0x380c37('0xd')]=function(_0x317c7d,_0x262a36,_0x1c9bf2){const _0x3747ca=_0x380c37,_0x1e89c1=this;this[_0x3747ca('0xc')]['enqueue'](function(){const _0x2eda39=_0x3747ca;return _0x1e89c1['queryInterface']['addColumn'](_0x317c7d,_0x262a36,_0x1c9bf2)[_0x2eda39('0x1a')](function(){const _0x299dd8=_0x2eda39;logger[_0x299dd8('0x1')](_0x299dd8('0x7'),_0x262a36,_0x317c7d);})[_0x2eda39('0x17')](function(_0x337ed2){const _0x277b19=_0x2eda39;logger[_0x277b19('0x1')](JSON[_0x277b19('0x3')](_0x337ed2));});});},Migration[_0x380c37('0x19')][_0x380c37('0xf')]=function(_0x531cef){const _0x20eb69=_0x380c37,_0x1976b2=this;this[_0x20eb69('0xc')][_0x20eb69('0x6')](function(){const _0xed8a43=_0x20eb69;return _0x1976b2[_0xed8a43('0x2')][_0xed8a43('0xf')](_0x531cef,{'force':!![]})[_0xed8a43('0x1a')](function(){const _0x5b8004=_0xed8a43;logger[_0x5b8004('0x1')]('table\x20dropped\x20%s',_0x531cef);})[_0xed8a43('0x17')](function(_0x4479fe){const _0x5c0beb=_0xed8a43;logger['info'](JSON[_0x5c0beb('0x3')](_0x4479fe));});});},Migration[_0x380c37('0x19')][_0x380c37('0x18')]=function(_0x570cb7,_0x699a20,_0x52dd94){const _0x26d57d=_0x380c37,_0x24807b=this;this[_0x26d57d('0xc')]['enqueue'](function(){const _0x47edfe=_0x26d57d;return _0x24807b[_0x47edfe('0x2')][_0x47edfe('0x18')](_0x570cb7,_0x699a20,{'indexName':_0x52dd94})[_0x47edfe('0x1a')](function(){const _0x4b83dc=_0x47edfe;logger[_0x4b83dc('0x1')](_0x4b83dc('0x15'),_0x570cb7,_0x699a20[_0x4b83dc('0xe')](','),_0x52dd94);})[_0x47edfe('0x17')](function(_0x20380f){const _0x57c4f1=_0x47edfe;logger[_0x57c4f1('0x1')](JSON[_0x57c4f1('0x3')](_0x20380f));});});},Migration[_0x380c37('0x19')][_0x380c37('0xb')]=function(_0x4ab6e3,_0x2f8a90){const _0x55df90=_0x380c37,_0x5236a9=this;this[_0x55df90('0xc')][_0x55df90('0x6')](function(){const _0x3fd0a7=_0x55df90;return _0x5236a9[_0x3fd0a7('0x2')][_0x3fd0a7('0xb')](_0x4ab6e3,_0x2f8a90)['then'](function(){const _0x50c1a9=_0x3fd0a7;logger[_0x50c1a9('0x1')](_0x50c1a9('0x14'),_0x4ab6e3,_0x2f8a90);})[_0x3fd0a7('0x17')](function(_0x146adb){const _0x3dcdcd=_0x3fd0a7;logger[_0x3dcdcd('0x1')](JSON[_0x3dcdcd('0x3')](_0x146adb));});});},Migration['prototype'][_0x380c37('0x12')]=function(_0x596400){const _0x5edfbf=_0x380c37,_0x5da29e=this;this[_0x5edfbf('0xc')][_0x5edfbf('0x6')](function(){const _0x4cb864=_0x5edfbf;return _0x5da29e['queryInterface']['sequelize'][_0x4cb864('0x12')](_0x596400)['then'](function(){const _0x167ea1=_0x4cb864;logger[_0x167ea1('0x1')](_0x167ea1('0x8'),_0x596400);})[_0x4cb864('0x17')](function(_0x48f387){const _0x21a1dc=_0x4cb864;logger[_0x21a1dc('0x1')](JSON[_0x21a1dc('0x3')](_0x48f387));});});},Migration[_0x380c37('0x19')]['removeColumn']=function(_0x52e942,_0x3c1bf7){const _0xfa3eeb=_0x380c37,_0x39d642=this;this[_0xfa3eeb('0xc')][_0xfa3eeb('0x6')](function(){const _0x3f142f=_0xfa3eeb;return _0x39d642['queryInterface']['removeColumn'](_0x52e942,_0x3c1bf7)[_0x3f142f('0x1a')](function(){const _0x6489de=_0x3f142f;logger[_0x6489de('0x1')](_0x6489de('0x13'),_0x3c1bf7,_0x52e942);})[_0x3f142f('0x17')](function(_0x4993af){const _0x56562d=_0x3f142f;logger[_0x56562d('0x1')](util[_0x56562d('0x16')](_0x4993af,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x380c37('0x4')]=function(_0x1df829,_0x109309,_0x10be61){const _0x37a457=_0x380c37,_0x56bd23=this;this[_0x37a457('0xc')][_0x37a457('0x6')](function(){const _0x22b280=_0x37a457;return _0x56bd23[_0x22b280('0x2')][_0x22b280('0x4')](_0x1df829,_0x109309,_0x10be61)[_0x22b280('0x1a')](function(){const _0x43fc39=_0x22b280;logger[_0x43fc39('0x1')](_0x43fc39('0x5'),_0x109309,_0x10be61,_0x1df829);})['catch'](function(_0x4f5bed){const _0x45465a=_0x22b280;logger['info'](util[_0x45465a('0x16')](_0x4f5bed,{'showHidden':![],'depth':null}));});});},Migration[_0x380c37('0x19')]['final']=function(_0x5cf0f4){const _0x308ea0=_0x380c37;this[_0x308ea0('0xc')][_0x308ea0('0x6')](function(){return _0x5cf0f4();});},module[_0x380c37('0xa')]={'up':function(_0x3ccd4f){return new Promise(function(_0x44c48e){const _0x2e53fe=new Migration(_0x3ccd4f);_0x2e53fe['final'](_0x44c48e);});},'down':function(){}};
\ No newline at end of file
+const a986_0x635a=['tail','queryInterface','catch','query\x20%s','Added\x20column\x20%s\x20to\x20%s','then','enqueue','finally','../config/logger','stringify','info','dropTable','prototype','migration','removeColumn','inspect','addColumn','sequence','addIndex\x20%s\x20%s\x20%s','changeColumn','query','final','sequelize','util','removeIndex\x20%s\x20%s','addIndex','renameColumn','exports','removeIndex'];(function(_0x20577f,_0x635aa9){const _0x4e5984=function(_0x3c6f53){while(--_0x3c6f53){_0x20577f['push'](_0x20577f['shift']());}};_0x4e5984(++_0x635aa9);}(a986_0x635a,0xaf));const a986_0x4e59=function(_0x20577f,_0x635aa9){_0x20577f=_0x20577f-0x0;let _0x4e5984=a986_0x635a[_0x20577f];return _0x4e5984;};const _0x184416=a986_0x4e59;'use strict';const util=require(_0x184416('0x16')),logger=require(_0x184416('0x7'))(_0x184416('0xc')),Sequence=function(){};Sequence['prototype'][_0x184416('0x5')]=function(_0x3c6f53){const _0x33c969=_0x184416;this['tail']=this['tail']?this[_0x33c969('0x1c')][_0x33c969('0x6')](_0x3c6f53):_0x3c6f53();};const Migration=function(_0x3a2fd9){const _0x363cad=_0x184416;this[_0x363cad('0x0')]=_0x3a2fd9,this[_0x363cad('0x10')]=new Sequence();};Migration[_0x184416('0xb')][_0x184416('0x12')]=function(_0x5f05c8,_0x296d99,_0x5bc002){const _0x498ee2=_0x184416,_0x7a8eb5=this;this[_0x498ee2('0x10')][_0x498ee2('0x5')](function(){const _0xe22793=_0x498ee2;return _0x7a8eb5[_0xe22793('0x0')][_0xe22793('0x12')](_0x5f05c8,_0x296d99,_0x5bc002)[_0xe22793('0x4')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x296d99,_0x5f05c8);})['catch'](function(_0x27cb55){logger['info'](JSON['stringify'](_0x27cb55));});});},Migration[_0x184416('0xb')][_0x184416('0xf')]=function(_0x3009a2,_0x37a857,_0x33d375){const _0x5710bd=_0x184416,_0x453acc=this;this[_0x5710bd('0x10')][_0x5710bd('0x5')](function(){const _0x5136b7=_0x5710bd;return _0x453acc[_0x5136b7('0x0')]['addColumn'](_0x3009a2,_0x37a857,_0x33d375)[_0x5136b7('0x4')](function(){const _0x1a2340=_0x5136b7;logger[_0x1a2340('0x9')](_0x1a2340('0x3'),_0x37a857,_0x3009a2);})[_0x5136b7('0x1')](function(_0x33bd7a){const _0x17483d=_0x5136b7;logger[_0x17483d('0x9')](JSON[_0x17483d('0x8')](_0x33bd7a));});});},Migration[_0x184416('0xb')][_0x184416('0xa')]=function(_0x31a628){const _0x3e131e=_0x184416,_0x5cbe9d=this;this[_0x3e131e('0x10')][_0x3e131e('0x5')](function(){const _0x464455=_0x3e131e;return _0x5cbe9d[_0x464455('0x0')][_0x464455('0xa')](_0x31a628,{'force':!![]})[_0x464455('0x4')](function(){const _0x3dd795=_0x464455;logger[_0x3dd795('0x9')]('table\x20dropped\x20%s',_0x31a628);})[_0x464455('0x1')](function(_0xfcbe29){const _0x558cbc=_0x464455;logger[_0x558cbc('0x9')](JSON['stringify'](_0xfcbe29));});});},Migration['prototype'][_0x184416('0x18')]=function(_0x416df6,_0x511d25,_0x5218b7){const _0x149e7f=_0x184416,_0x456fc4=this;this[_0x149e7f('0x10')]['enqueue'](function(){const _0x57202e=_0x149e7f;return _0x456fc4[_0x57202e('0x0')]['addIndex'](_0x416df6,_0x511d25,{'indexName':_0x5218b7})[_0x57202e('0x4')](function(){const _0x56c4f0=_0x57202e;logger[_0x56c4f0('0x9')](_0x56c4f0('0x11'),_0x416df6,_0x511d25['join'](','),_0x5218b7);})[_0x57202e('0x1')](function(_0x226645){const _0x8fffc1=_0x57202e;logger[_0x8fffc1('0x9')](JSON[_0x8fffc1('0x8')](_0x226645));});});},Migration['prototype'][_0x184416('0x1b')]=function(_0xb41e07,_0x206b82){const _0x513265=_0x184416,_0x547bdd=this;this[_0x513265('0x10')][_0x513265('0x5')](function(){const _0x53f641=_0x513265;return _0x547bdd['queryInterface'][_0x53f641('0x1b')](_0xb41e07,_0x206b82)['then'](function(){const _0x5b2d7c=_0x53f641;logger[_0x5b2d7c('0x9')](_0x5b2d7c('0x17'),_0xb41e07,_0x206b82);})['catch'](function(_0x2a2dce){const _0x4a0ef0=_0x53f641;logger[_0x4a0ef0('0x9')](JSON[_0x4a0ef0('0x8')](_0x2a2dce));});});},Migration[_0x184416('0xb')][_0x184416('0x13')]=function(_0x163197){const _0x822465=_0x184416,_0x2d0a7a=this;this['sequence'][_0x822465('0x5')](function(){const _0x2ace0a=_0x822465;return _0x2d0a7a[_0x2ace0a('0x0')][_0x2ace0a('0x15')]['query'](_0x163197)['then'](function(){const _0x30f2e9=_0x2ace0a;logger[_0x30f2e9('0x9')](_0x30f2e9('0x2'),_0x163197);})[_0x2ace0a('0x1')](function(_0xb95e0d){const _0x500014=_0x2ace0a;logger[_0x500014('0x9')](JSON[_0x500014('0x8')](_0xb95e0d));});});},Migration['prototype'][_0x184416('0xd')]=function(_0x5430d0,_0x2e7450){const _0x28e553=_0x184416,_0x323987=this;this['sequence'][_0x28e553('0x5')](function(){const _0xd9d20a=_0x28e553;return _0x323987[_0xd9d20a('0x0')][_0xd9d20a('0xd')](_0x5430d0,_0x2e7450)['then'](function(){const _0x290991=_0xd9d20a;logger[_0x290991('0x9')]('Removed\x20column\x20%s\x20from\x20%s',_0x2e7450,_0x5430d0);})[_0xd9d20a('0x1')](function(_0x309494){const _0x4e6011=_0xd9d20a;logger['info'](util[_0x4e6011('0xe')](_0x309494,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x184416('0x19')]=function(_0xc04a2e,_0x50cf90,_0x14a52b){const _0x10d851=_0x184416,_0x51d6f2=this;this[_0x10d851('0x10')][_0x10d851('0x5')](function(){const _0x3c2518=_0x10d851;return _0x51d6f2[_0x3c2518('0x0')]['renameColumn'](_0xc04a2e,_0x50cf90,_0x14a52b)[_0x3c2518('0x4')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x50cf90,_0x14a52b,_0xc04a2e);})[_0x3c2518('0x1')](function(_0x24aaa6){const _0x151227=_0x3c2518;logger[_0x151227('0x9')](util['inspect'](_0x24aaa6,{'showHidden':![],'depth':null}));});});},Migration[_0x184416('0xb')][_0x184416('0x14')]=function(_0x1273fe){const _0x2be197=_0x184416;this[_0x2be197('0x10')][_0x2be197('0x5')](function(){return _0x1273fe();});},module[_0x184416('0x1a')]={'up':function(_0x36d6df){return new Promise(function(_0x469ff0){const _0x9f3782=a986_0x4e59,_0x5af1ab=new Migration(_0x36d6df);_0x5af1ab[_0x9f3782('0x14')](_0x469ff0);});},'down':function(){}};
\ No newline at end of file