sqlite3 doesn't support adding a foreign key via gorm.DB#AddForeignKey this would mean, that we have some hacky solutions for having foreign keys for sqlite and the other databases. Therefore manually deleting the referencing models seems to be the best solution. We already have interfaces for database capsuling, so no api must be adjusted. |
||
|---|---|---|
| .. | ||
| application.go | ||
| application_test.go | ||
| client.go | ||
| client_test.go | ||
| database.go | ||
| database_test.go | ||
| message.go | ||
| message_test.go | ||
| user.go | ||
| user_test.go | ||