cobbr / cobbr/Covenant

[Feature Request] Database Migrations

Open
#312 5 comments 0 reactions 1 assignee Claimed by @cobbr View on GitHub
enhancement low-priority
Dominant language
C#
Stars
4.7k
Forks
822
PR merge metrics
No merged PRs in 30d

Description

**Feature Request**
Feature Request

**Describe the feature request or bug**
After an update from version 0.5 to version 0.6, when we start covenant, it fails with an sqlite error.

If I understand correctly, you do not update the database. We need to remove the covenant.db to "fix" this.

**To Reproduce**
1. Install version 0.5 (by installing dotnet core)
2. Run covenant at least once to create the database
3. Update covenant to version 0.6
4. Run covenant
5. `An exception occurred while iterating over the results of a query for context type 'Covenant.Models.CovenantContext'.
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'no such table: Themes'.`

**Expected behavior**
There should be no need to delete the database. I think you should handle the db upgrade.

**Target Information (System that implant is running on):**
- OS: kali

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.