Change testcase.name to text
ClosedPublic

Authored by jskladan on Feb 19 2016, 10:18 AM.

Details

Summary

First step to testcase namespacing - changing name from varchar(255) to text.
The alembic migration has one slight problem - sqlite does not support ALTER COLUMN, and so the upgrade fails with SQLite. Works with postgres though (tested).
Are we OK with it failing on SQLITE (maybe with documentation saying "if you are on sqlite, please remove the database and initialize it again", or should I try to add some workaround?
I do not think it's worth it (the time spent on working around sqlite), but I'm open to ideas.

Test Plan

tested the migration with postgres

Diff Detail

Repository
rRSDB resultsdb
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
jskladan retitled this revision from to Change testcase.name to text.Feb 19 2016, 10:18 AM
jskladan updated this object.
jskladan edited the test plan for this revision. (Show Details)
jskladan added a reviewer: resultsdb.
mkrizek accepted this revision.Feb 19 2016, 1:44 PM
mkrizek added a reviewer: mkrizek.
mkrizek added a subscriber: mkrizek.

Other than small nit, looks good to me.

alembic/versions/978007ecd2b_changed_testcase_name_to_text.py
29

Probably left here by mistake?

This revision is now accepted and ready to land.Feb 19 2016, 1:44 PM
tflink accepted this revision.Feb 19 2016, 2:29 PM
tflink added a reviewer: tflink.
Closed by commit rRSDB648e9bcdc131: Change testcase.name to text (authored by Josef Skladanka <jskladan@redhat.com>). · Explain WhyFeb 22 2016, 10:55 AM
This revision was automatically updated to reflect the committed changes.