File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,12 @@ exports.handler = async function (args) {
53
53
const query = getCreateDatabaseQuery ( sequelize , config , options ) ;
54
54
55
55
switch ( command ) {
56
+ case 'db:info' :
57
+ if ( config . password !== null ) {
58
+ config . password = '***' ;
59
+ }
60
+ helpers . view . log ( 'Config' , config ) ;
61
+ break ;
56
62
case 'db:create' :
57
63
await sequelize
58
64
. query ( query , {
Original file line number Diff line number Diff line change 35
35
. command ( 'db:seed:undo' , 'Deletes data from the database' , seedOne )
36
36
. command ( 'db:seed:all' , 'Run every seeder' , seed )
37
37
. command ( 'db:seed:undo:all' , 'Deletes data from the database' , seed )
38
+ . command ( 'db:info' , 'Return database configuration info' , database )
38
39
. command ( 'db:create' , 'Create database specified by configuration' , database )
39
40
. command ( 'db:drop' , 'Drop database specified by configuration' , database )
40
41
. command ( 'init' , 'Initializes project' , init )
You can’t perform that action at this time.
0 commit comments