dboehmer / coocook

👨‍🍳🦉 Web application for collecting recipes and making food plans
https://coocook.org/
Other
11 stars 2 forks source link

Change names of FK columns from 'foo' to 'foo_id' #119

Closed dboehmer closed 4 years ago

dboehmer commented 4 years ago

Long time ago I preferred simple column names like project for foreign key columns. When you use the SQL console of the DBMS it’s obvious that these are FKs and easy to understand. This is how our SQL schema looks now. Unfortunately it proved to be not that good for coding:

We should rename all FK columns in a special Git commit and DB migration from foo to foo_id.