Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.92.js
1 const a1148_0x260c=['dropTable','queryInterface','table\x20dropped\x20%s','removeIndex','removeColumn','stringify','renameColumn','addIndex','sequence','finally','tail','addColumn','query','changeColumn','migration','../config/logger','enqueue','inspect','final','Removed\x20column\x20%s\x20from\x20%s','Added\x20column\x20%s\x20to\x20%s','removeIndex\x20%s\x20%s','catch','prototype','info','sequelize','then'];(function(_0x474ac6,_0x2c5ecd){const _0x260cf0=function(_0x4c30af){while(--_0x4c30af){_0x474ac6['push'](_0x474ac6['shift']());}};_0x260cf0(++_0x2c5ecd);}(a1148_0x260c,0x107));const a1148_0x4c30=function(_0x474ac6,_0x2c5ecd){_0x474ac6=_0x474ac6-0x188;let _0x260cf0=a1148_0x260c[_0x474ac6];return _0x260cf0;};const a1148_0x3bb1dd=a1148_0x4c30;'use strict';const util=require('util'),logger=require(a1148_0x3bb1dd(0x19e))(a1148_0x3bb1dd(0x19d)),Sequence=function(){};Sequence[a1148_0x3bb1dd(0x18b)]['enqueue']=function(_0x399726){const _0x46f59e=a1148_0x3bb1dd;this[_0x46f59e(0x199)]=this[_0x46f59e(0x199)]?this['tail'][_0x46f59e(0x198)](_0x399726):_0x399726();};const Migration=function(_0x382dfd){const _0x90f95f=a1148_0x3bb1dd;this[_0x90f95f(0x190)]=_0x382dfd,this[_0x90f95f(0x197)]=new Sequence();};Migration[a1148_0x3bb1dd(0x18b)][a1148_0x3bb1dd(0x19c)]=function(_0x531b85,_0x174771,_0x208e39){const _0xe2c540=a1148_0x3bb1dd,_0x520495=this;this[_0xe2c540(0x197)][_0xe2c540(0x19f)](function(){const _0x2e9cd1=_0xe2c540;return _0x520495[_0x2e9cd1(0x190)][_0x2e9cd1(0x19c)](_0x531b85,_0x174771,_0x208e39)[_0x2e9cd1(0x18e)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x174771,_0x531b85);})[_0x2e9cd1(0x18a)](function(_0x5bce61){const _0x191880=_0x2e9cd1;logger[_0x191880(0x18c)](JSON[_0x191880(0x194)](_0x5bce61));});});},Migration['prototype'][a1148_0x3bb1dd(0x19a)]=function(_0x310623,_0x4054f2,_0xd09fbb){const _0x4c8469=a1148_0x3bb1dd,_0x50a3ae=this;this[_0x4c8469(0x197)][_0x4c8469(0x19f)](function(){const _0x2a5f24=_0x4c8469;return _0x50a3ae[_0x2a5f24(0x190)][_0x2a5f24(0x19a)](_0x310623,_0x4054f2,_0xd09fbb)['then'](function(){const _0x4a8e3d=_0x2a5f24;logger[_0x4a8e3d(0x18c)](_0x4a8e3d(0x188),_0x4054f2,_0x310623);})['catch'](function(_0x46ea72){const _0x4c6a21=_0x2a5f24;logger['info'](JSON[_0x4c6a21(0x194)](_0x46ea72));});});},Migration['prototype']['dropTable']=function(_0x43bec3){const _0x4c3c89=a1148_0x3bb1dd,_0x202878=this;this[_0x4c3c89(0x197)][_0x4c3c89(0x19f)](function(){const _0x28d19c=_0x4c3c89;return _0x202878[_0x28d19c(0x190)][_0x28d19c(0x18f)](_0x43bec3,{'force':!![]})[_0x28d19c(0x18e)](function(){const _0x4aaece=_0x28d19c;logger['info'](_0x4aaece(0x191),_0x43bec3);})['catch'](function(_0x5c1024){logger['info'](JSON['stringify'](_0x5c1024));});});},Migration['prototype'][a1148_0x3bb1dd(0x196)]=function(_0x42a66f,_0x33022c,_0x31449c){const _0x8a36b3=a1148_0x3bb1dd,_0x28a187=this;this[_0x8a36b3(0x197)]['enqueue'](function(){const _0x5c2653=_0x8a36b3;return _0x28a187[_0x5c2653(0x190)][_0x5c2653(0x196)](_0x42a66f,_0x33022c,{'indexName':_0x31449c})[_0x5c2653(0x18e)](function(){logger['info']('addIndex\x20%s\x20%s\x20%s',_0x42a66f,_0x33022c['join'](','),_0x31449c);})[_0x5c2653(0x18a)](function(_0x20753b){const _0x9f2ab7=_0x5c2653;logger[_0x9f2ab7(0x18c)](JSON[_0x9f2ab7(0x194)](_0x20753b));});});},Migration[a1148_0x3bb1dd(0x18b)][a1148_0x3bb1dd(0x192)]=function(_0x5a3822,_0x298103){const _0x1d45e3=a1148_0x3bb1dd,_0x3a872b=this;this[_0x1d45e3(0x197)][_0x1d45e3(0x19f)](function(){const _0x231957=_0x1d45e3;return _0x3a872b[_0x231957(0x190)][_0x231957(0x192)](_0x5a3822,_0x298103)[_0x231957(0x18e)](function(){const _0x37c66e=_0x231957;logger[_0x37c66e(0x18c)](_0x37c66e(0x189),_0x5a3822,_0x298103);})[_0x231957(0x18a)](function(_0x33f228){const _0x5c16f0=_0x231957;logger[_0x5c16f0(0x18c)](JSON[_0x5c16f0(0x194)](_0x33f228));});});},Migration['prototype'][a1148_0x3bb1dd(0x19b)]=function(_0x541deb){const _0x545bea=a1148_0x3bb1dd,_0xfacd7d=this;this[_0x545bea(0x197)][_0x545bea(0x19f)](function(){const _0x346b7=_0x545bea;return _0xfacd7d[_0x346b7(0x190)][_0x346b7(0x18d)]['query'](_0x541deb)['then'](function(){const _0x512889=_0x346b7;logger[_0x512889(0x18c)]('query\x20%s',_0x541deb);})[_0x346b7(0x18a)](function(_0x5ba08f){const _0x10e248=_0x346b7;logger[_0x10e248(0x18c)](JSON[_0x10e248(0x194)](_0x5ba08f));});});},Migration[a1148_0x3bb1dd(0x18b)][a1148_0x3bb1dd(0x193)]=function(_0x482b9d,_0x4d75ae){const _0x55ac6a=a1148_0x3bb1dd,_0x1590e7=this;this[_0x55ac6a(0x197)][_0x55ac6a(0x19f)](function(){const _0x3528aa=_0x55ac6a;return _0x1590e7['queryInterface'][_0x3528aa(0x193)](_0x482b9d,_0x4d75ae)[_0x3528aa(0x18e)](function(){const _0x546ff1=_0x3528aa;logger['info'](_0x546ff1(0x1a2),_0x4d75ae,_0x482b9d);})[_0x3528aa(0x18a)](function(_0x24bf81){const _0x5e40a0=_0x3528aa;logger[_0x5e40a0(0x18c)](util[_0x5e40a0(0x1a0)](_0x24bf81,{'showHidden':![],'depth':null}));});});},Migration[a1148_0x3bb1dd(0x18b)][a1148_0x3bb1dd(0x195)]=function(_0x59fce7,_0x4e5ce0,_0x2b131f){const _0x4ad41a=a1148_0x3bb1dd,_0x4abe04=this;this['sequence'][_0x4ad41a(0x19f)](function(){const _0x43087c=_0x4ad41a;return _0x4abe04['queryInterface']['renameColumn'](_0x59fce7,_0x4e5ce0,_0x2b131f)[_0x43087c(0x18e)](function(){const _0x28829c=_0x43087c;logger[_0x28829c(0x18c)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4e5ce0,_0x2b131f,_0x59fce7);})[_0x43087c(0x18a)](function(_0x4976cb){const _0x3b11ef=_0x43087c;logger[_0x3b11ef(0x18c)](util[_0x3b11ef(0x1a0)](_0x4976cb,{'showHidden':![],'depth':null}));});});},Migration[a1148_0x3bb1dd(0x18b)][a1148_0x3bb1dd(0x1a1)]=function(_0x44b15b){const _0x2b2cac=a1148_0x3bb1dd;this[_0x2b2cac(0x197)][_0x2b2cac(0x19f)](function(){return _0x44b15b();});},module['exports']={'up':function(_0x45d324){return new Promise(function(_0x4de8c1){const _0xbee8bd=a1148_0x4c30,_0x31b78a=new Migration(_0x45d324);_0x31b78a[_0xbee8bd(0x1a1)](_0x4de8c1);});},'down':function(){}};