chairemobilite / transition

Transition is a modern new approach to transit planning. It's a web application to model, simulate and plan public transit and alternative transportation.
http://transition.city
MIT License
20 stars 13 forks source link

db: Consider removing the `truncate` and `destroy` database functions #938

Open tahini opened 1 month ago

tahini commented 1 month ago

They are likely very dangerous to accidentally call on a production server.

destroy is dubious, not sure what it does. But truncate is very useful for sequential tests. It should be made available for them I think.

greenscientist commented 1 month ago

Where are they present?

tahini commented 1 month ago

In default.db.queries.ts

greenscientist commented 1 month ago

Ok, yeah, agreed, we don't really need those function as generics. If we ever need to do those operations, we could reimplement them with adequate protection around them.