| 213 | === Changes to the SQL for the comments app === |
| 214 | |
| 215 | The comments app, still undocumented, also requires some database changes. |
| 216 | |
| 217 | In PostgreSQL: |
| 218 | {{{ |
| 219 | BEGIN; |
| 220 | ALTER TABLE comments RENAME TO comments_comment; |
| 221 | ALTER TABLE comments_id_seq RENAME TO comments_comment_id_seq; |
| 222 | |
| 223 | ALTER TABLE comments_karma RENAME TO comments_karmascore; |
| 224 | ALTER TABLE comments_karma_id_seq RENAME TO comments_karmascore_id_seq; |
| 225 | |
| 226 | ALTER TABLE comments_free RENAME TO comments_freecomment; |
| 227 | ALTER TABLE comments_free_id_seq RENAME TO comments_freecomment_id_seq; |
| 228 | |
| 229 | ALTER TABLE comments_moderator_deletions RENAME TO comments_moderatordeletion; |
| 230 | ALTER TABLE comments_moderator_deletions_id_seq RENAME TO comments_moderatordeletion_id_seq; |
| 231 | |
| 232 | ALTER TABLE comments_user_flags RENAME TO comments_userflag; |
| 233 | ALTER TABLE comments_user_flags_id_seq RENAME TO comments_userflag_id_seq; |
| 234 | |
| 235 | COMMIT; |
| 236 | }}} |
| 237 | |
| 238 | In other databases: |
| 239 | {{{ |
| 240 | ALTER TABLE comments RENAME TO comments_comment; |
| 241 | ALTER TABLE comments_karma RENAME TO comments_karmascore; |
| 242 | ALTER TABLE comments_free RENAME TO comments_freecomment; |
| 243 | ALTER TABLE comments_moderator_deletions RENAME TO comments_moderatordeletion; |
| 244 | ALTER TABLE comments_user_flags RENAME TO comments_userflag; |
| 245 | }}} |
| 246 | |