Built motion from commit 129fb4d95212661e48f0db455e75d668addbaddf. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.61.js
1 const a1101_0x3126=['renameColumn','table\x20dropped\x20%s','sequelize','util','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','queryInterface','dropTable','../config/logger','query\x20%s','sequence','inspect','enqueue','final','catch','migration','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','stringify','tail','removeColumn','addIndex','then','Added\x20column\x20%s\x20to\x20%s','query','addColumn'];(function(_0x379139,_0x1afb2e){const _0x31268e=function(_0x4ba26f){while(--_0x4ba26f){_0x379139['push'](_0x379139['shift']());}};_0x31268e(++_0x1afb2e);}(a1101_0x3126,0x123));const a1101_0x4ba2=function(_0x379139,_0x1afb2e){_0x379139=_0x379139-0x1bd;let _0x31268e=a1101_0x3126[_0x379139];return _0x31268e;};const a1101_0x2af11c=a1101_0x4ba2;'use strict';const util=require(a1101_0x2af11c(0x1d5)),logger=require(a1101_0x2af11c(0x1c0))(a1101_0x2af11c(0x1c7)),Sequence=function(){};Sequence[a1101_0x2af11c(0x1bd)][a1101_0x2af11c(0x1c4)]=function(_0x43477f){const _0x3a935c=a1101_0x2af11c;this[_0x3a935c(0x1cb)]=this[_0x3a935c(0x1cb)]?this[_0x3a935c(0x1cb)]['finally'](_0x43477f):_0x43477f();};const Migration=function(_0x1a5bb3){const _0x54350b=a1101_0x2af11c;this['queryInterface']=_0x1a5bb3,this[_0x54350b(0x1c2)]=new Sequence();};Migration[a1101_0x2af11c(0x1bd)]['changeColumn']=function(_0x189852,_0x58934f,_0x21d5fa){const _0x1960f0=a1101_0x2af11c,_0x5b46b0=this;this[_0x1960f0(0x1c2)][_0x1960f0(0x1c4)](function(){const _0x4cdda2=_0x1960f0;return _0x5b46b0[_0x4cdda2(0x1be)]['changeColumn'](_0x189852,_0x58934f,_0x21d5fa)[_0x4cdda2(0x1ce)](function(){const _0xbc6e36=_0x4cdda2;logger[_0xbc6e36(0x1c9)](_0xbc6e36(0x1d6),_0x58934f,_0x189852);})['catch'](function(_0x4feceb){const _0x2d1090=_0x4cdda2;logger[_0x2d1090(0x1c9)](JSON[_0x2d1090(0x1ca)](_0x4feceb));});});},Migration[a1101_0x2af11c(0x1bd)][a1101_0x2af11c(0x1d1)]=function(_0x4375e2,_0x5652e9,_0xcdf59a){const _0x3c970a=a1101_0x2af11c,_0x92bb72=this;this[_0x3c970a(0x1c2)][_0x3c970a(0x1c4)](function(){const _0x27e715=_0x3c970a;return _0x92bb72[_0x27e715(0x1be)]['addColumn'](_0x4375e2,_0x5652e9,_0xcdf59a)[_0x27e715(0x1ce)](function(){const _0x2a0f12=_0x27e715;logger[_0x2a0f12(0x1c9)](_0x2a0f12(0x1cf),_0x5652e9,_0x4375e2);})[_0x27e715(0x1c6)](function(_0x39b2e){const _0x1e806b=_0x27e715;logger['info'](JSON[_0x1e806b(0x1ca)](_0x39b2e));});});},Migration[a1101_0x2af11c(0x1bd)][a1101_0x2af11c(0x1bf)]=function(_0x4f8a90){const _0x15c0b1=a1101_0x2af11c,_0x57ff41=this;this[_0x15c0b1(0x1c2)]['enqueue'](function(){const _0x5ec62b=_0x15c0b1;return _0x57ff41['queryInterface'][_0x5ec62b(0x1bf)](_0x4f8a90,{'force':!![]})[_0x5ec62b(0x1ce)](function(){const _0x1f5978=_0x5ec62b;logger[_0x1f5978(0x1c9)](_0x1f5978(0x1d3),_0x4f8a90);})[_0x5ec62b(0x1c6)](function(_0x3b51f2){const _0x594611=_0x5ec62b;logger[_0x594611(0x1c9)](JSON[_0x594611(0x1ca)](_0x3b51f2));});});},Migration[a1101_0x2af11c(0x1bd)]['addIndex']=function(_0x5ea80a,_0x5bc254,_0x3cb990){const _0x4d87bf=a1101_0x2af11c,_0x2c44e2=this;this[_0x4d87bf(0x1c2)][_0x4d87bf(0x1c4)](function(){const _0x5a3d7c=_0x4d87bf;return _0x2c44e2['queryInterface'][_0x5a3d7c(0x1cd)](_0x5ea80a,_0x5bc254,{'indexName':_0x3cb990})[_0x5a3d7c(0x1ce)](function(){const _0x246e42=_0x5a3d7c;logger[_0x246e42(0x1c9)]('addIndex\x20%s\x20%s\x20%s',_0x5ea80a,_0x5bc254['join'](','),_0x3cb990);})['catch'](function(_0x5039e7){const _0x55951f=_0x5a3d7c;logger[_0x55951f(0x1c9)](JSON[_0x55951f(0x1ca)](_0x5039e7));});});},Migration[a1101_0x2af11c(0x1bd)][a1101_0x2af11c(0x1d0)]=function(_0x414048){const _0xe54958=this;this['sequence']['enqueue'](function(){const _0x20ccfd=a1101_0x4ba2;return _0xe54958[_0x20ccfd(0x1be)][_0x20ccfd(0x1d4)][_0x20ccfd(0x1d0)](_0x414048)[_0x20ccfd(0x1ce)](function(){const _0x231204=_0x20ccfd;logger[_0x231204(0x1c9)](_0x231204(0x1c1),_0x414048);})[_0x20ccfd(0x1c6)](function(_0x135d35){const _0x13e16c=_0x20ccfd;logger[_0x13e16c(0x1c9)](JSON['stringify'](_0x135d35));});});},Migration[a1101_0x2af11c(0x1bd)][a1101_0x2af11c(0x1cc)]=function(_0x3e3188,_0x4ded70){const _0x53b515=a1101_0x2af11c,_0x407df3=this;this[_0x53b515(0x1c2)][_0x53b515(0x1c4)](function(){const _0x58eb57=_0x53b515;return _0x407df3['queryInterface'][_0x58eb57(0x1cc)](_0x3e3188,_0x4ded70)[_0x58eb57(0x1ce)](function(){const _0x36b282=_0x58eb57;logger[_0x36b282(0x1c9)]('Removed\x20column\x20%s\x20from\x20%s',_0x4ded70,_0x3e3188);})[_0x58eb57(0x1c6)](function(_0x23aeb9){const _0x2d4ae6=_0x58eb57;logger[_0x2d4ae6(0x1c9)](util[_0x2d4ae6(0x1c3)](_0x23aeb9,{'showHidden':![],'depth':null}));});});},Migration[a1101_0x2af11c(0x1bd)][a1101_0x2af11c(0x1d2)]=function(_0x1def00,_0x4edfdd,_0xfefd05){const _0x5ec52c=a1101_0x2af11c,_0x48ed6d=this;this[_0x5ec52c(0x1c2)]['enqueue'](function(){const _0x46d2c0=_0x5ec52c;return _0x48ed6d[_0x46d2c0(0x1be)][_0x46d2c0(0x1d2)](_0x1def00,_0x4edfdd,_0xfefd05)[_0x46d2c0(0x1ce)](function(){const _0x562a6c=_0x46d2c0;logger[_0x562a6c(0x1c9)](_0x562a6c(0x1c8),_0x4edfdd,_0xfefd05,_0x1def00);})[_0x46d2c0(0x1c6)](function(_0x4a4c14){const _0x52c982=_0x46d2c0;logger[_0x52c982(0x1c9)](util['inspect'](_0x4a4c14,{'showHidden':![],'depth':null}));});});},Migration[a1101_0x2af11c(0x1bd)]['final']=function(_0x83844e){this['sequence']['enqueue'](function(){return _0x83844e();});},module['exports']={'up':function(_0x45ba46){return new Promise(function(_0x169b1d){const _0x4be21e=a1101_0x4ba2,_0x549eed=new Migration(_0x45ba46);_0x549eed[_0x4be21e(0x1c5)](_0x169b1d);});},'down':function(){}};