databas.sql / Change design in DB

Bug #1171841 reported by Sophie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LenaSYS
Fix Committed
Undecided
Johan Gustavsson

Bug Description

Due to changes in the design of how the database should be used in the implementation, changes need to be done.

Tables have been added and deleted.

There are no longer a table called 'ContainerFiles', because an attribute needed to be added due to match implementation. The attribute 'executable' will be added as an attribute in the 'Containers'-table as an Boolean, and the foreign key 'fileName' will still come from the table 'Files' into the table 'Categories'.

The table 'FileInterestingLines' will get it's foreign keys from 'Files' (fileName) and 'Containers' (columnNr, orderNr, exampleName,subCategoryName, categoryName, courseID).

The table 'SubCategories' had been added due to implementation and design of the CMS and Codeviewer.
SubCategories will have the attributes 'subCategoryName' (primary key), 'orderNr', and foreign keys from 'Categories' (categoryName, courseID).
'SubCategories' will be used as a sub category in the menu for the examples and the quizzes.

The attribute 'passwdHint' should be added in the table 'Users', right below the attribute 'passwd'.

The attribute 'fileType' should change its data type to ENUM instead of VARCHAR, and should be implemented as 'text', 'code', 'video', 'picture'.
Same thing (change to ENUM) in the attribute 'userType' with the implementation 'student', 'teacher'.

Related branches

Changed in lenasys:
status: New → Confirmed
Changed in lenasys:
assignee: nobody → Johan Gustavsson (b11johgu)
Revision history for this message
Sophie (a09sopka) wrote :

add timeStamp-attributes in the tables 'Files', 'Examples' and 'Quizzes'.

name: 'updatedAt'

Changed in lenasys:
status: Confirmed → In Progress
Changed in lenasys:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.