Skip to content

Commit

Permalink
db: Make 'text' field in 'comments' table NOT NULL and handling data …
Browse files Browse the repository at this point in the history
…migration

This update introduces a schema migration to version 4 for the database, focusing on enhancing the 'comments' table. This ensures that the 'text' field in the 'comments' table will always have a value, which improves data consistency and integrity.

See:
- #979
- #994
  • Loading branch information
pkvach committed May 4, 2024
1 parent ec4b8ca commit 2160abf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isso/tests/test_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def test_comment_text_not_null_migration_with_rollback_after_error(self):
})

try:
db = SQLite3(self.path, conf)
SQLite3(self.path, conf)
except RuntimeError as e:
self.assertEqual(str(e), "Migrating DB version 4 to 5 failed: no such column: notification")

Expand Down

0 comments on commit 2160abf

Please sign in to comment.