Built motion from commit e493b9a4954b50a8ee6d0034ba3601cd210d989d. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.1.js
index c5666ac..300b67a 100644 (file)
@@ -1 +1 @@
-const a1156_0x28f6=['removeColumn','changeColumn','stringify','info','removeIndex\x20%s\x20%s','addIndex','finally','prototype','addColumn','query','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','then','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequence','indicesType','exports','query\x20%s','../config/logger','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','join','dropTable','tail','queryInterface','removeIndex','indexName','catch','enqueue'];(function(_0x53eb05,_0x18df8f){const _0x28f61b=function(_0x45292c){while(--_0x45292c){_0x53eb05['push'](_0x53eb05['shift']());}};_0x28f61b(++_0x18df8f);}(a1156_0x28f6,0x66));const a1156_0x4529=function(_0x53eb05,_0x18df8f){_0x53eb05=_0x53eb05-0x143;let _0x28f61b=a1156_0x28f6[_0x53eb05];return _0x28f61b;};const a1156_0xc05755=a1156_0x4529;'use strict';const util=require('util'),logger=require(a1156_0xc05755(0x149))('migration'),Sequence=function(){};Sequence['prototype'][a1156_0xc05755(0x154)]=function(_0x300744){const _0x478baf=a1156_0xc05755;this[_0x478baf(0x14f)]=this['tail']?this[_0x478baf(0x14f)][_0x478baf(0x15b)](_0x300744):_0x300744();};const Migration=function(_0x32e12d){const _0x459cb5=a1156_0xc05755;this[_0x459cb5(0x150)]=_0x32e12d,this[_0x459cb5(0x145)]=new Sequence();};Migration['prototype'][a1156_0xc05755(0x156)]=function(_0x43241d,_0x13edab,_0x4ec87b){const _0x23ca3d=a1156_0xc05755,_0x4537e4=this;this[_0x23ca3d(0x145)][_0x23ca3d(0x154)](function(){const _0x3b12aa=_0x23ca3d;return _0x4537e4['queryInterface']['changeColumn'](_0x43241d,_0x13edab,_0x4ec87b)[_0x3b12aa(0x143)](function(){const _0x2f67af=_0x3b12aa;logger['info'](_0x2f67af(0x14b),_0x13edab,_0x43241d);})[_0x3b12aa(0x153)](function(_0x53e67b){const _0x4eba03=_0x3b12aa;logger[_0x4eba03(0x158)](JSON[_0x4eba03(0x157)](_0x53e67b));});});},Migration['prototype'][a1156_0xc05755(0x15d)]=function(_0x52687a,_0x16d172,_0xf9f0e6){const _0x1aef79=a1156_0xc05755,_0x40ab52=this;this[_0x1aef79(0x145)][_0x1aef79(0x154)](function(){const _0x2de886=_0x1aef79;return _0x40ab52[_0x2de886(0x150)][_0x2de886(0x15d)](_0x52687a,_0x16d172,_0xf9f0e6)[_0x2de886(0x143)](function(){const _0x3f89e7=_0x2de886;logger['info'](_0x3f89e7(0x15f),_0x16d172,_0x52687a);})[_0x2de886(0x153)](function(_0x33b363){const _0xb895=_0x2de886;logger[_0xb895(0x158)](JSON[_0xb895(0x157)](_0x33b363));});});},Migration[a1156_0xc05755(0x15c)][a1156_0xc05755(0x14e)]=function(_0x7dbb0d){const _0x2db107=a1156_0xc05755,_0x36e341=this;this[_0x2db107(0x145)][_0x2db107(0x154)](function(){const _0x16352d=_0x2db107;return _0x36e341[_0x16352d(0x150)][_0x16352d(0x14e)](_0x7dbb0d,{'force':!![]})[_0x16352d(0x143)](function(){const _0x51c29b=_0x16352d;logger[_0x51c29b(0x158)]('table\x20dropped\x20%s',_0x7dbb0d);})[_0x16352d(0x153)](function(_0x3fd453){const _0x1d4e65=_0x16352d;logger[_0x1d4e65(0x158)](JSON[_0x1d4e65(0x157)](_0x3fd453));});});},Migration['prototype'][a1156_0xc05755(0x15a)]=function(_0x1f521f,_0x2a64ef,_0x3c60e9){const _0x22cffa=a1156_0xc05755,_0x3081c0=this;this[_0x22cffa(0x145)]['enqueue'](function(){const _0x44ec4d=_0x22cffa;return _0x3081c0[_0x44ec4d(0x150)][_0x44ec4d(0x15a)](_0x1f521f,_0x2a64ef,{'indexName':_0x3c60e9[_0x44ec4d(0x152)],'indicesType':_0x3c60e9['indicesType']})[_0x44ec4d(0x143)](function(){const _0x3cb751=_0x44ec4d;logger[_0x3cb751(0x158)](_0x3cb751(0x144),_0x1f521f,_0x2a64ef[_0x3cb751(0x14d)](','),_0x3c60e9['indexName'],_0x3c60e9[_0x3cb751(0x146)]);})[_0x44ec4d(0x153)](function(_0x2985a0){const _0x5c50a8=_0x44ec4d;logger[_0x5c50a8(0x158)](JSON[_0x5c50a8(0x157)](_0x2985a0));});});},Migration['prototype'][a1156_0xc05755(0x151)]=function(_0x126ea6,_0x45cb4f){const _0x2ac3bf=a1156_0xc05755,_0x5c4685=this;this[_0x2ac3bf(0x145)][_0x2ac3bf(0x154)](function(){const _0x2176c7=_0x2ac3bf;return _0x5c4685['queryInterface'][_0x2176c7(0x151)](_0x126ea6,_0x45cb4f)['then'](function(){const _0xad6c3e=_0x2176c7;logger['info'](_0xad6c3e(0x159),_0x126ea6,_0x45cb4f);})['catch'](function(_0x1fbe8e){const _0x2aab1c=_0x2176c7;logger[_0x2aab1c(0x158)](JSON['stringify'](_0x1fbe8e));});});},Migration[a1156_0xc05755(0x15c)][a1156_0xc05755(0x15e)]=function(_0x4bc344){const _0x53ddc5=a1156_0xc05755,_0x28b126=this;this[_0x53ddc5(0x145)]['enqueue'](function(){const _0x18f4f2=_0x53ddc5;return _0x28b126[_0x18f4f2(0x150)]['sequelize'][_0x18f4f2(0x15e)](_0x4bc344)[_0x18f4f2(0x143)](function(){const _0x290bb3=_0x18f4f2;logger[_0x290bb3(0x158)](_0x290bb3(0x148),_0x4bc344);})['catch'](function(_0x2f5346){const _0x934a0b=_0x18f4f2;logger[_0x934a0b(0x158)](JSON[_0x934a0b(0x157)](_0x2f5346));});});},Migration[a1156_0xc05755(0x15c)][a1156_0xc05755(0x155)]=function(_0xf2723c,_0x4d76f7){const _0x2bbf81=a1156_0xc05755,_0x11583c=this;this[_0x2bbf81(0x145)][_0x2bbf81(0x154)](function(){const _0x52b8ca=_0x2bbf81;return _0x11583c[_0x52b8ca(0x150)][_0x52b8ca(0x155)](_0xf2723c,_0x4d76f7)['then'](function(){const _0x159efa=_0x52b8ca;logger[_0x159efa(0x158)](_0x159efa(0x160),_0x4d76f7,_0xf2723c);})[_0x52b8ca(0x153)](function(_0x1058d5){const _0x2e8312=_0x52b8ca;logger['info'](util[_0x2e8312(0x14a)](_0x1058d5,{'showHidden':![],'depth':null}));});});},Migration[a1156_0xc05755(0x15c)][a1156_0xc05755(0x14c)]=function(_0x15e727,_0x5c7e86,_0x3a8f8a){const _0xa2e6de=this;this['sequence']['enqueue'](function(){const _0x9984e7=a1156_0x4529;return _0xa2e6de[_0x9984e7(0x150)][_0x9984e7(0x14c)](_0x15e727,_0x5c7e86,_0x3a8f8a)[_0x9984e7(0x143)](function(){const _0x1e2458=_0x9984e7;logger[_0x1e2458(0x158)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5c7e86,_0x3a8f8a,_0x15e727);})['catch'](function(_0x504de0){const _0xf16ff3=_0x9984e7;logger['info'](util[_0xf16ff3(0x14a)](_0x504de0,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x8ecd01){const _0x2a87cf=a1156_0xc05755;this[_0x2a87cf(0x145)][_0x2a87cf(0x154)](function(){return _0x8ecd01();});},module[a1156_0xc05755(0x147)]={'up':function(_0xc82785){return new Promise(function(_0x9b68e4){const _0x275d87=new Migration(_0xc82785);_0x275d87['final'](_0x9b68e4);});},'down':function(){}};
\ No newline at end of file
+'use strict';const a1161_0x29ac=['migration','addColumn','699055RMCnoe','57YGxxlk','query\x20%s','indicesType','9403ckTjhX','join','catch','prototype','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequelize','stringify','79jKtQsl','queryInterface','677603RhTRXI','dropTable','947571oNCbfY','1nKyrJG','removeIndex','8705bOmMOx','then','477226sLloPI','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','tail','@config/logger','util','exports','enqueue','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex','indexName','inspect','query','1737325hGojpl','resolve','renameColumn','info','Added\x20column\x20%s\x20to\x20%s'];const a1161_0x2b07=function(_0x855663,_0x40d131){_0x855663=_0x855663-0x6c;let _0x29acc0=a1161_0x29ac[_0x855663];return _0x29acc0;};const a1161_0x49d84a=a1161_0x2b07;(function(_0x243fd7,_0x4672f7){const _0x23dd1d=a1161_0x2b07;while(!![]){try{const _0x360733=-parseInt(_0x23dd1d(0x8a))*parseInt(_0x23dd1d(0x79))+-parseInt(_0x23dd1d(0x8c))+-parseInt(_0x23dd1d(0x78))+-parseInt(_0x23dd1d(0x83))*-parseInt(_0x23dd1d(0x7c))+-parseInt(_0x23dd1d(0x87))*parseInt(_0x23dd1d(0x88))+parseInt(_0x23dd1d(0x85))+parseInt(_0x23dd1d(0x71));if(_0x360733===_0x4672f7)break;else _0x243fd7['push'](_0x243fd7['shift']());}catch(_0x266370){_0x243fd7['push'](_0x243fd7['shift']());}}}(a1161_0x29ac,0x83480));const util=require(a1161_0x49d84a(0x92)),logger=require(a1161_0x49d84a(0x91))(a1161_0x49d84a(0x76)),Sequence=function(){};Sequence[a1161_0x49d84a(0x7f)][a1161_0x49d84a(0x94)]=function(_0x8b9aa8){const _0x3e285c=a1161_0x49d84a;this[_0x3e285c(0x90)]=this[_0x3e285c(0x90)]?this[_0x3e285c(0x90)]['finally'](_0x8b9aa8):_0x8b9aa8();};const Migration=function(_0x2f3935){const _0x4fb4c1=a1161_0x49d84a;this['queryInterface']=_0x2f3935,this[_0x4fb4c1(0x8d)]=new Sequence();};Migration[a1161_0x49d84a(0x7f)]['changeColumn']=function(_0x19d71c,_0x22222f,_0xe3d282){const _0x57e6ef=a1161_0x49d84a,_0x5540a0=this;this[_0x57e6ef(0x8d)]['enqueue'](function(){const _0x4175ad=_0x57e6ef;return _0x5540a0['queryInterface']['changeColumn'](_0x19d71c,_0x22222f,_0xe3d282)[_0x4175ad(0x8b)](function(){const _0x181ff1=_0x4175ad;logger['info'](_0x181ff1(0x8e),_0x22222f,_0x19d71c);})[_0x4175ad(0x7e)](function(_0x1ea5a4){logger['info'](JSON['stringify'](_0x1ea5a4));});});},Migration['prototype'][a1161_0x49d84a(0x77)]=function(_0x5c667a,_0x597c5b,_0x3d9411){const _0x543133=a1161_0x49d84a,_0x37ebb1=this;this[_0x543133(0x8d)][_0x543133(0x94)](function(){const _0x267874=_0x543133;return _0x37ebb1[_0x267874(0x84)][_0x267874(0x77)](_0x5c667a,_0x597c5b,_0x3d9411)[_0x267874(0x8b)](function(){const _0x536da0=_0x267874;logger[_0x536da0(0x74)](_0x536da0(0x75),_0x597c5b,_0x5c667a);})[_0x267874(0x7e)](function(_0x5372e5){const _0x8c37e4=_0x267874;logger[_0x8c37e4(0x74)](JSON['stringify'](_0x5372e5));});});},Migration['prototype'][a1161_0x49d84a(0x86)]=function(_0x239e98){const _0x4a5f71=a1161_0x49d84a,_0x30982d=this;this[_0x4a5f71(0x8d)][_0x4a5f71(0x94)](function(){const _0x2e3ff2=_0x4a5f71;return _0x30982d[_0x2e3ff2(0x84)][_0x2e3ff2(0x86)](_0x239e98,{'force':!![]})[_0x2e3ff2(0x8b)](function(){const _0x4d33fa=_0x2e3ff2;logger[_0x4d33fa(0x74)](_0x4d33fa(0x96),_0x239e98);})['catch'](function(_0x1b1049){const _0x215359=_0x2e3ff2;logger['info'](JSON[_0x215359(0x82)](_0x1b1049));});});},Migration[a1161_0x49d84a(0x7f)][a1161_0x49d84a(0x6d)]=function(_0x165e6e,_0x49ce19,_0x3980a9){const _0x544850=a1161_0x49d84a,_0x2136db=this;this[_0x544850(0x8d)]['enqueue'](function(){const _0x419898=_0x544850;return _0x2136db[_0x419898(0x84)][_0x419898(0x6d)](_0x165e6e,_0x49ce19,{'indexName':_0x3980a9['indexName'],'indicesType':_0x3980a9[_0x419898(0x7b)]})['then'](function(){const _0x3b2198=_0x419898;logger[_0x3b2198(0x74)](_0x3b2198(0x80),_0x165e6e,_0x49ce19[_0x3b2198(0x7d)](','),_0x3980a9[_0x3b2198(0x6e)],_0x3980a9[_0x3b2198(0x7b)]);})[_0x419898(0x7e)](function(_0x122d55){const _0x4cb859=_0x419898;logger[_0x4cb859(0x74)](JSON[_0x4cb859(0x82)](_0x122d55));});});},Migration[a1161_0x49d84a(0x7f)][a1161_0x49d84a(0x89)]=function(_0x3397c2,_0x8ec3cc){const _0x1d7fd7=this;this['sequence']['enqueue'](function(){const _0x294978=a1161_0x2b07;return _0x1d7fd7[_0x294978(0x84)][_0x294978(0x89)](_0x3397c2,_0x8ec3cc)[_0x294978(0x8b)](function(){const _0x9749a7=_0x294978;logger[_0x9749a7(0x74)]('removeIndex\x20%s\x20%s',_0x3397c2,_0x8ec3cc);})['catch'](function(_0x2ee05e){const _0x39520d=_0x294978;logger[_0x39520d(0x74)](JSON['stringify'](_0x2ee05e));});});},Migration[a1161_0x49d84a(0x7f)][a1161_0x49d84a(0x70)]=function(_0x32d793){const _0x36d978=a1161_0x49d84a,_0x78f8b4=this;this['sequence'][_0x36d978(0x94)](function(){const _0x493b2e=_0x36d978;return _0x78f8b4[_0x493b2e(0x84)][_0x493b2e(0x81)][_0x493b2e(0x70)](_0x32d793)[_0x493b2e(0x8b)](function(){const _0x1f3262=_0x493b2e;logger[_0x1f3262(0x74)](_0x1f3262(0x7a),_0x32d793);})['catch'](function(_0x371ab8){const _0x18049c=_0x493b2e;logger[_0x18049c(0x74)](JSON['stringify'](_0x371ab8));});});},Migration[a1161_0x49d84a(0x7f)][a1161_0x49d84a(0x8f)]=function(_0x1253bd,_0x8e4e3b){const _0x2dade0=a1161_0x49d84a,_0x4b691a=this;this[_0x2dade0(0x8d)][_0x2dade0(0x94)](function(){const _0xe81bba=_0x2dade0;return _0x4b691a[_0xe81bba(0x84)][_0xe81bba(0x8f)](_0x1253bd,_0x8e4e3b)[_0xe81bba(0x8b)](function(){const _0x243642=_0xe81bba;logger[_0x243642(0x74)](_0x243642(0x95),_0x8e4e3b,_0x1253bd);})[_0xe81bba(0x7e)](function(_0x181018){const _0x1f9f30=_0xe81bba;logger[_0x1f9f30(0x74)](util['inspect'](_0x181018,{'showHidden':![],'depth':null}));});});},Migration[a1161_0x49d84a(0x7f)][a1161_0x49d84a(0x73)]=function(_0x321fc4,_0x52821c,_0x8c17a1){const _0x214a95=a1161_0x49d84a,_0x4e9c2b=this;this['sequence'][_0x214a95(0x94)](function(){const _0xe33db5=_0x214a95;return _0x4e9c2b[_0xe33db5(0x84)][_0xe33db5(0x73)](_0x321fc4,_0x52821c,_0x8c17a1)[_0xe33db5(0x8b)](function(){const _0x5cd72c=_0xe33db5;logger['info'](_0x5cd72c(0x6c),_0x52821c,_0x8c17a1,_0x321fc4);})[_0xe33db5(0x7e)](function(_0x58e6d5){const _0x4a8e7f=_0xe33db5;logger[_0x4a8e7f(0x74)](util[_0x4a8e7f(0x6f)](_0x58e6d5,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x98f7f5){const _0x8bf4ed=a1161_0x49d84a;this[_0x8bf4ed(0x8d)]['enqueue'](function(){return _0x98f7f5();});},module[a1161_0x49d84a(0x93)]={'up':function(_0x3ee6bb){return new Promise(function(_0x39af26){const _0x37f8f9=new Migration(_0x3ee6bb);_0x37f8f9['final'](_0x39af26);});},'down':function(){const _0x566565=a1161_0x49d84a;return Promise[_0x566565(0x72)]();}};
\ No newline at end of file