eschutho commented on a change in pull request #11207:
URL: 
https://github.com/apache/incubator-superset/pull/11207#discussion_r508896487



##########
File path: superset/cli.py
##########
@@ -628,3 +628,18 @@ def alert() -> None:
             resolution=6000,
             session=session,
         )
+
+
[email protected]()
+@with_appcontext
+def create_db() -> None:
+    """Resets database"""
+    db.create_all()
+
+
[email protected]()
+@with_appcontext
[email protected]_option(prompt="Are you sure you want to drop the db?")

Review comment:
       one other suggestion here. I think it could be helpful to confirm the 
name of the database that we are dropping since it's only the config that 
switches this from dev to test db. 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to