I need to save user's quiz completion status to a Cassandra's table, previously table was designed only to hold one quiz status so I can't save if the user takes another quiz(User id is primary key). I am trying to achieve this by adding new column but don't know how to migrate current data to the new column.
id | quiz_completed | quiz_skipped
-----+----------------+-------------
123 | True | False
With new column
id | quiz_completed | quiz_skipped | quiz_status
-----+----------------+--------------+-----------------------------------------------------------
123 | True | False | {"XXXX": {"quiz_completed": true, "quiz_skipped": false}, "YYYY": {"quiz_completed": true, "quiz_skipped": false}}
Could you please guide me on data migration?
Thanks in advance!
You can use external tools to perform this, for example: