| Revision 1111,
482 bytes
checked in by wefgef, 2 years ago
(diff) |
|
Added task ratings functionality and changed the task edit related pages UI.
- Replaced all the edit links in a task page with a single edit link.
- All the task related edit pages are grouped together using tabs.
- Created a task ratings page
- Included a script to create/update necessary database tables.
REVIEW URL http://reviewboard.infoarena.ro/r/140/
Includes changes from http://reviewboard.infoarena.ro/r/137/
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #! /usr/bin/env php |
|---|
| 2 | |
|---|
| 3 | <?php |
|---|
| 4 | |
|---|
| 5 | // This scripts adds a new column in ia_task and new tabel for task ratings |
|---|
| 6 | |
|---|
| 7 | require_once(dirname($argv[0]) . "/utilities.php"); |
|---|
| 8 | |
|---|
| 9 | db_connect(); |
|---|
| 10 | |
|---|
| 11 | $query = "ALTER TABLE ia_task ADD COLUMN rating float"; |
|---|
| 12 | db_query($query); |
|---|
| 13 | |
|---|
| 14 | $query = "CREATE TABLE ia_task_ratings ( |
|---|
| 15 | task_id VARCHAR(64) NOT NULL, |
|---|
| 16 | user_id int NOT NULL, |
|---|
| 17 | idea int NOT NULL, |
|---|
| 18 | theory int NOT NULL, |
|---|
| 19 | coding int NOT NULL, |
|---|
| 20 | PRIMARY KEY(task_id, user_id))"; |
|---|
| 21 | |
|---|
| 22 | db_query($query); |
|---|
| 23 | |
|---|
| 24 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.