Built motion from commit bfc7a72f7045b27461c9a5d1f71c1a658cfd0b8b. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.11.js
index 7f11996..75ca6e2 100644 (file)
@@ -1 +1 @@
-const a994_0x47fa=['migration','tail','changeColumn','stringify','query\x20%s','enqueue','indicesType','prototype','catch','info','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Removed\x20column\x20%s\x20from\x20%s','renameColumn','sequelize','Added\x20column\x20%s\x20to\x20%s','../config/logger','query','sequence','then','indexName','removeColumn','final','inspect','addColumn','finally','util','exports','queryInterface','dropTable'];(function(_0x5a676e,_0x47faad){const _0x252176=function(_0x3b675b){while(--_0x3b675b){_0x5a676e['push'](_0x5a676e['shift']());}};_0x252176(++_0x47faad);}(a994_0x47fa,0x1aa));const a994_0x2521=function(_0x5a676e,_0x47faad){_0x5a676e=_0x5a676e-0x0;let _0x252176=a994_0x47fa[_0x5a676e];return _0x252176;};const _0x46b3bc=a994_0x2521;'use strict';const util=require(_0x46b3bc('0x14')),logger=require(_0x46b3bc('0xa'))(_0x46b3bc('0x18')),Sequence=function(){};Sequence['prototype'][_0x46b3bc('0x1d')]=function(_0x3b675b){const _0x49b904=_0x46b3bc;this['tail']=this[_0x49b904('0x19')]?this[_0x49b904('0x19')][_0x49b904('0x13')](_0x3b675b):_0x3b675b();};const Migration=function(_0x67646f){const _0x513a31=_0x46b3bc;this[_0x513a31('0x16')]=_0x67646f,this['sequence']=new Sequence();};Migration[_0x46b3bc('0x1')][_0x46b3bc('0x1a')]=function(_0x1438d8,_0x2b7718,_0x3d08c7){const _0x4539e8=_0x46b3bc,_0x43145d=this;this['sequence'][_0x4539e8('0x1d')](function(){const _0x3e2584=_0x4539e8;return _0x43145d['queryInterface'][_0x3e2584('0x1a')](_0x1438d8,_0x2b7718,_0x3d08c7)[_0x3e2584('0xd')](function(){const _0x5d7e2d=_0x3e2584;logger[_0x5d7e2d('0x3')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x2b7718,_0x1438d8);})['catch'](function(_0x233936){const _0x583a1f=_0x3e2584;logger[_0x583a1f('0x3')](JSON[_0x583a1f('0x1b')](_0x233936));});});},Migration[_0x46b3bc('0x1')][_0x46b3bc('0x12')]=function(_0x26ec4a,_0x3b4fa7,_0x9f8f56){const _0x2ec045=_0x46b3bc,_0x44a984=this;this[_0x2ec045('0xc')]['enqueue'](function(){const _0x3287bd=_0x2ec045;return _0x44a984[_0x3287bd('0x16')]['addColumn'](_0x26ec4a,_0x3b4fa7,_0x9f8f56)[_0x3287bd('0xd')](function(){const _0x4e27fa=_0x3287bd;logger['info'](_0x4e27fa('0x9'),_0x3b4fa7,_0x26ec4a);})[_0x3287bd('0x2')](function(_0x2ae11a){const _0xcfb403=_0x3287bd;logger[_0xcfb403('0x3')](JSON[_0xcfb403('0x1b')](_0x2ae11a));});});},Migration[_0x46b3bc('0x1')]['dropTable']=function(_0x4fb874){const _0x8832db=_0x46b3bc,_0x4c6d33=this;this['sequence'][_0x8832db('0x1d')](function(){const _0x4ed5a8=_0x8832db;return _0x4c6d33[_0x4ed5a8('0x16')][_0x4ed5a8('0x17')](_0x4fb874,{'force':!![]})[_0x4ed5a8('0xd')](function(){logger['info']('table\x20dropped\x20%s',_0x4fb874);})[_0x4ed5a8('0x2')](function(_0x474de9){const _0x5b2a52=_0x4ed5a8;logger['info'](JSON[_0x5b2a52('0x1b')](_0x474de9));});});},Migration[_0x46b3bc('0x1')][_0x46b3bc('0x4')]=function(_0x3d1d93,_0x147b01,_0x15d895){const _0x360cec=_0x46b3bc,_0x35e628=this;this[_0x360cec('0xc')]['enqueue'](function(){const _0x6136a8=_0x360cec;return _0x35e628['queryInterface'][_0x6136a8('0x4')](_0x3d1d93,_0x147b01,{'indexName':_0x15d895[_0x6136a8('0xe')],'indicesType':_0x15d895[_0x6136a8('0x0')]})[_0x6136a8('0xd')](function(){const _0x765250=_0x6136a8;logger[_0x765250('0x3')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x3d1d93,_0x147b01['join'](','),_0x15d895[_0x765250('0xe')],_0x15d895[_0x765250('0x0')]);})[_0x6136a8('0x2')](function(_0x57580e){const _0x4a3fb0=_0x6136a8;logger[_0x4a3fb0('0x3')](JSON['stringify'](_0x57580e));});});},Migration[_0x46b3bc('0x1')]['removeIndex']=function(_0x39e62f,_0x3989f3){const _0x445019=_0x46b3bc,_0xe6747f=this;this[_0x445019('0xc')][_0x445019('0x1d')](function(){const _0x5b24c8=_0x445019;return _0xe6747f[_0x5b24c8('0x16')]['removeIndex'](_0x39e62f,_0x3989f3)[_0x5b24c8('0xd')](function(){const _0x2d8869=_0x5b24c8;logger[_0x2d8869('0x3')]('removeIndex\x20%s\x20%s',_0x39e62f,_0x3989f3);})[_0x5b24c8('0x2')](function(_0x32711c){logger['info'](JSON['stringify'](_0x32711c));});});},Migration[_0x46b3bc('0x1')]['query']=function(_0x55fbd9){const _0x233d4a=_0x46b3bc,_0x53ec29=this;this[_0x233d4a('0xc')][_0x233d4a('0x1d')](function(){const _0x3f6b2b=_0x233d4a;return _0x53ec29[_0x3f6b2b('0x16')][_0x3f6b2b('0x8')][_0x3f6b2b('0xb')](_0x55fbd9)[_0x3f6b2b('0xd')](function(){const _0x3668f8=_0x3f6b2b;logger[_0x3668f8('0x3')](_0x3668f8('0x1c'),_0x55fbd9);})[_0x3f6b2b('0x2')](function(_0x352deb){const _0x258836=_0x3f6b2b;logger[_0x258836('0x3')](JSON[_0x258836('0x1b')](_0x352deb));});});},Migration[_0x46b3bc('0x1')][_0x46b3bc('0xf')]=function(_0xfe4948,_0xbe70f0){const _0xbf83dd=_0x46b3bc,_0x47dd8a=this;this[_0xbf83dd('0xc')][_0xbf83dd('0x1d')](function(){const _0x319345=_0xbf83dd;return _0x47dd8a['queryInterface'][_0x319345('0xf')](_0xfe4948,_0xbe70f0)['then'](function(){const _0x55b13b=_0x319345;logger[_0x55b13b('0x3')](_0x55b13b('0x6'),_0xbe70f0,_0xfe4948);})['catch'](function(_0x537d1a){const _0x4f045b=_0x319345;logger[_0x4f045b('0x3')](util[_0x4f045b('0x11')](_0x537d1a,{'showHidden':![],'depth':null}));});});},Migration[_0x46b3bc('0x1')]['renameColumn']=function(_0x2bf81e,_0x4c6e41,_0x45e60b){const _0x775d4=_0x46b3bc,_0x3d0e9d=this;this[_0x775d4('0xc')][_0x775d4('0x1d')](function(){const _0x4c3683=_0x775d4;return _0x3d0e9d[_0x4c3683('0x16')][_0x4c3683('0x7')](_0x2bf81e,_0x4c6e41,_0x45e60b)['then'](function(){const _0x375ada=_0x4c3683;logger[_0x375ada('0x3')](_0x375ada('0x5'),_0x4c6e41,_0x45e60b,_0x2bf81e);})[_0x4c3683('0x2')](function(_0x622ac1){const _0x45bba1=_0x4c3683;logger[_0x45bba1('0x3')](util[_0x45bba1('0x11')](_0x622ac1,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x46b3bc('0x10')]=function(_0x2cec00){const _0x47f1f8=_0x46b3bc;this[_0x47f1f8('0xc')][_0x47f1f8('0x1d')](function(){return _0x2cec00();});},module[_0x46b3bc('0x15')]={'up':function(_0x2d9ea6){return new Promise(function(_0x51dbbe){const _0x43f3ca=a994_0x2521,_0x286dc8=new Migration(_0x2d9ea6);_0x286dc8[_0x43f3ca('0x10')](_0x51dbbe);});},'down':function(){}};
\ No newline at end of file
+const a994_0x4dd2=['addIndex','final','catch','enqueue','tail','stringify','Added\x20column\x20%s\x20to\x20%s','queryInterface','info','prototype','indexName','renameColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','sequence','removeIndex','changeColumn','table\x20dropped\x20%s','migration','dropTable','then','sequelize','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','exports','query','Removed\x20column\x20%s\x20from\x20%s','addColumn','../config/logger'];(function(_0x18c41e,_0x4dd2a5){const _0x37d042=function(_0x15ea29){while(--_0x15ea29){_0x18c41e['push'](_0x18c41e['shift']());}};_0x37d042(++_0x4dd2a5);}(a994_0x4dd2,0x7f));const a994_0x37d0=function(_0x18c41e,_0x4dd2a5){_0x18c41e=_0x18c41e-0x0;let _0x37d042=a994_0x4dd2[_0x18c41e];return _0x37d042;};const _0x36003a=a994_0x37d0;'use strict';const util=require('util'),logger=require(_0x36003a('0x16'))(_0x36003a('0xc')),Sequence=function(){};Sequence[_0x36003a('0x2')][_0x36003a('0x1a')]=function(_0x15ea29){const _0x2cb94e=_0x36003a;this[_0x2cb94e('0x1b')]=this[_0x2cb94e('0x1b')]?this['tail']['finally'](_0x15ea29):_0x15ea29();};const Migration=function(_0x264557){const _0x3bdf17=_0x36003a;this[_0x3bdf17('0x0')]=_0x264557,this[_0x3bdf17('0x8')]=new Sequence();};Migration['prototype'][_0x36003a('0xa')]=function(_0x33173b,_0x405bdc,_0x57aa82){const _0xcc658a=_0x36003a,_0x7c7e86=this;this[_0xcc658a('0x8')]['enqueue'](function(){const _0x160387=_0xcc658a;return _0x7c7e86[_0x160387('0x0')][_0x160387('0xa')](_0x33173b,_0x405bdc,_0x57aa82)[_0x160387('0xe')](function(){const _0x27a28b=_0x160387;logger[_0x27a28b('0x1')](_0x27a28b('0x6'),_0x405bdc,_0x33173b);})[_0x160387('0x19')](function(_0x2a62e5){const _0x37b08e=_0x160387;logger[_0x37b08e('0x1')](JSON[_0x37b08e('0x1c')](_0x2a62e5));});});},Migration[_0x36003a('0x2')]['addColumn']=function(_0x1ff62a,_0x48480a,_0x212ea9){const _0x275352=_0x36003a,_0x18cafb=this;this[_0x275352('0x8')][_0x275352('0x1a')](function(){const _0x34ebe8=_0x275352;return _0x18cafb[_0x34ebe8('0x0')][_0x34ebe8('0x15')](_0x1ff62a,_0x48480a,_0x212ea9)[_0x34ebe8('0xe')](function(){const _0x22c69e=_0x34ebe8;logger[_0x22c69e('0x1')](_0x22c69e('0x1d'),_0x48480a,_0x1ff62a);})[_0x34ebe8('0x19')](function(_0x10f5a9){logger['info'](JSON['stringify'](_0x10f5a9));});});},Migration['prototype'][_0x36003a('0xd')]=function(_0x858607){const _0x3dfbbe=_0x36003a,_0x17a6da=this;this['sequence'][_0x3dfbbe('0x1a')](function(){const _0x140cb7=_0x3dfbbe;return _0x17a6da[_0x140cb7('0x0')][_0x140cb7('0xd')](_0x858607,{'force':!![]})[_0x140cb7('0xe')](function(){const _0x340769=_0x140cb7;logger['info'](_0x340769('0xb'),_0x858607);})[_0x140cb7('0x19')](function(_0x6431f){const _0x15b7bf=_0x140cb7;logger[_0x15b7bf('0x1')](JSON[_0x15b7bf('0x1c')](_0x6431f));});});},Migration['prototype'][_0x36003a('0x17')]=function(_0x50f278,_0x13473e,_0x4ccbf8){const _0x15f322=_0x36003a,_0x31719e=this;this[_0x15f322('0x8')][_0x15f322('0x1a')](function(){const _0x419b9f=_0x15f322;return _0x31719e[_0x419b9f('0x0')][_0x419b9f('0x17')](_0x50f278,_0x13473e,{'indexName':_0x4ccbf8[_0x419b9f('0x3')],'indicesType':_0x4ccbf8['indicesType']})[_0x419b9f('0xe')](function(){const _0x3f8803=_0x419b9f;logger['info'](_0x3f8803('0x5'),_0x50f278,_0x13473e['join'](','),_0x4ccbf8['indexName'],_0x4ccbf8['indicesType']);})[_0x419b9f('0x19')](function(_0x24fa59){const _0x11b6b6=_0x419b9f;logger[_0x11b6b6('0x1')](JSON['stringify'](_0x24fa59));});});},Migration['prototype'][_0x36003a('0x9')]=function(_0x332bf6,_0x49e448){const _0xe03750=_0x36003a,_0x23d12a=this;this['sequence'][_0xe03750('0x1a')](function(){const _0x2b0c11=_0xe03750;return _0x23d12a[_0x2b0c11('0x0')]['removeIndex'](_0x332bf6,_0x49e448)[_0x2b0c11('0xe')](function(){const _0x23d669=_0x2b0c11;logger[_0x23d669('0x1')]('removeIndex\x20%s\x20%s',_0x332bf6,_0x49e448);})[_0x2b0c11('0x19')](function(_0x3d2ce4){const _0x3cfe31=_0x2b0c11;logger[_0x3cfe31('0x1')](JSON[_0x3cfe31('0x1c')](_0x3d2ce4));});});},Migration['prototype'][_0x36003a('0x13')]=function(_0x52f706){const _0x427dbc=this;this['sequence']['enqueue'](function(){const _0x39aaf8=a994_0x37d0;return _0x427dbc[_0x39aaf8('0x0')][_0x39aaf8('0xf')][_0x39aaf8('0x13')](_0x52f706)[_0x39aaf8('0xe')](function(){logger['info']('query\x20%s',_0x52f706);})[_0x39aaf8('0x19')](function(_0x3879d7){const _0xbb7c5f=_0x39aaf8;logger[_0xbb7c5f('0x1')](JSON[_0xbb7c5f('0x1c')](_0x3879d7));});});},Migration[_0x36003a('0x2')][_0x36003a('0x10')]=function(_0x3dc70b,_0xd7cd51){const _0x402cd7=_0x36003a,_0x5d5626=this;this['sequence'][_0x402cd7('0x1a')](function(){const _0x6779a2=_0x402cd7;return _0x5d5626[_0x6779a2('0x0')][_0x6779a2('0x10')](_0x3dc70b,_0xd7cd51)[_0x6779a2('0xe')](function(){const _0x523c25=_0x6779a2;logger['info'](_0x523c25('0x14'),_0xd7cd51,_0x3dc70b);})[_0x6779a2('0x19')](function(_0x1444d5){const _0x3ac025=_0x6779a2;logger[_0x3ac025('0x1')](util[_0x3ac025('0x7')](_0x1444d5,{'showHidden':![],'depth':null}));});});},Migration[_0x36003a('0x2')][_0x36003a('0x4')]=function(_0x15951f,_0x242005,_0x489f67){const _0x3e5218=_0x36003a,_0xec0a20=this;this[_0x3e5218('0x8')][_0x3e5218('0x1a')](function(){const _0x42ce87=_0x3e5218;return _0xec0a20[_0x42ce87('0x0')][_0x42ce87('0x4')](_0x15951f,_0x242005,_0x489f67)[_0x42ce87('0xe')](function(){const _0x3b52a9=_0x42ce87;logger['info'](_0x3b52a9('0x11'),_0x242005,_0x489f67,_0x15951f);})[_0x42ce87('0x19')](function(_0x47d8e4){const _0x319e48=_0x42ce87;logger[_0x319e48('0x1')](util[_0x319e48('0x7')](_0x47d8e4,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x14accc){const _0xc05961=_0x36003a;this[_0xc05961('0x8')][_0xc05961('0x1a')](function(){return _0x14accc();});},module[_0x36003a('0x12')]={'up':function(_0x2b0fc7){return new Promise(function(_0x16bbcb){const _0x528ec1=a994_0x37d0,_0xed9eaa=new Migration(_0x2b0fc7);_0xed9eaa[_0x528ec1('0x18')](_0x16bbcb);});},'down':function(){}};
\ No newline at end of file