moj-analytical-services / etl_manager

A python package to create a database on the platform using our moj data warehousing framework
21 stars 8 forks source link

Add option to warn if database name exists #58

Closed karolagraupner closed 5 years ago

isichei commented 5 years ago

Users can currently delete an existing database schema without being prompted that they have done so: https://github.com/moj-analytical-services/etl_manager/blob/master/etl_manager/meta.py#L462

We probably shouldn't do this as that's pretty dumb. Thinking that etl_manager should just throw an error if database already exists and prompts user to delete the database before declaring it or give the database a new name