| 'Adding Extra Columns in the Database' | Login/Create an Account | 6 comments |
Search Discussion
|
|
|
|
The Fine Print:
The following comments are owned by whoever posted them.
We are not responsible for them in any way.
|
 |
|
 |
 |
by Anonymous Coward on Wednesday July 26, @01:53PM EST (#1)
|
|
 |
 |
 |
mysql documentation is awesome, i recommend you look at it. Specifically, read up on 'alter'ing tables:
http://www.mysql.com/documentation/mysql/full/
|
|
 |
 |
|
|
[ Reply to This
| Parent
]
|
|
|
|
|
[ Reply to This
| Parent
]
|
|
|
 |
|
 |
 |
by Anonymous Coward on Wednesday July 26, @10:03PM EST (#3)
|
|
 |
 |
 |
Anyway, I'm getting 500 internal server errors all over the place. I put details on a pollbooth rather than start an OT thread in one of the stories, so if anyone would care to take a moment and help a newbie I'd much appreciate.
TIA
|
|
 |
 |
|
|
[ Reply to This
| Parent
]
|
|
|
|
|
 |
|
 |
 |
by Anonymous Coward on Thursday July 27, @03:53PM EST (#5)
|
|
 |
 |
 |
It would be smarter and easier to upgrade if instead of adding two new columns, you add another table that references the key of the user table (I've never seen the DB so I wouldn't know).
|
|
 |
 |
|
|
[ Reply to This
| Parent
]
|
|
|
 |
|
 |
 |
by Anonymous Coward on Monday July 31, @01:21PM EST (#6)
|
|
 |
 |
 |
I had the same type of problem to solve.
I'm working on a slash site that
requires on-line proposals, and they
want some sort of grading system, so I also
had to add extra datatypes to certain tables.
Use the "alter" functionality as suggested.
I recently added the ability to post topic
descriptions, and if you look inside Slash.pm,
there are SQL wrapper functions that let you
interact with the database straight from the
perl files: sqlInsert,sqlSelect etc. If you need to be
able to bring up these extra columns, and display
them in an interface like admin.pl, use those
wrapper functions. they work like a charm :-)
|
|
 |
 |
|
|
[ Reply to This
| Parent
]
|
|