Changeset 6dcf12c6a27972f29c47010aa4f5ed6cc162f54a
- Timestamp:
- 03/17/07 15:32:52
(1 year ago)
- Author:
- Christopher Jung <bktheg@web.de>
- git-committer:
- Christopher Jung <bktheg@web.de> 1174141972 +0100
- git-parent:
[3c16034036f2f3605968cd0dfc91a1f8dc55e05a]
- git-author:
- Christopher Jung <bktheg@web.de> 1174141972 +0100
- Message:
FK-Constraints fuer survey_voted eingebaut
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r425acaa |
r6dcf12c |
|
| 4 | 4 | KEY `survey_id` (`survey_id`,`user_id`) |
|---|
| 5 | 5 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| | 6 | |
|---|
| | 7 | ALTER TABLE survey_voted ADD CONSTRAINT survey_voted_fk_surveys FOREIGN KEY (survey_id) REFERENCES surveys(id); |
|---|
| | 8 | ALTER TABLE survey_voted ADD CONSTRAINT survey_voted_fk_users FOREIGN KEY (user_id) REFERENCES users(id); |
|---|
| r3c16034 |
r6dcf12c |
|
| 199 | 199 | ALTER TABLE survey_entries ADD CONSTRAINT survey_entries_fk_surveys FOREIGN KEY (survey_id) REFERENCES surveys(id); |
|---|
| 200 | 200 | ALTER TABLE survey_results ADD CONSTRAINT survey_results_fk_surveys FOREIGN KEY (survey_id) REFERENCES surveys(id); |
|---|
| | 201 | ALTER TABLE survey_voted ADD CONSTRAINT survey_voted_fk_surveys FOREIGN KEY (survey_id) REFERENCES surveys(id); |
|---|
| | 202 | ALTER TABLE survey_voted ADD CONSTRAINT survey_voted_fk_users FOREIGN KEY (user_id) REFERENCES users(id); |
|---|
| 201 | 203 | ]]></update> |
|---|
| 202 | 204 | </updates> |
|---|
| rb767799 |
r6dcf12c |
|
| 258 | 258 | db.update("DELETE FROM stats_user_cargo WHERE user_id="+userid); |
|---|
| 259 | 259 | |
|---|
| | 260 | echo.append("Lösche Umfrageeintraege...<br />\n"); |
|---|
| | 261 | db.update("DELETE FROM survey_voted WHERE user_id="+userid); |
|---|
| | 262 | |
|---|
| 260 | 263 | echo.append("Lösche Usereintrag...<br />\n"); |
|---|
| 261 | 264 | db.update("DELETE FROM users WHERE id="+userid); |
|---|