diff options
author | h5p9sl <21267024+h5p9sl@users.noreply.github.com> | 2021-01-24 09:12:33 -0700 |
---|---|---|
committer | h5p9sl <21267024+h5p9sl@users.noreply.github.com> | 2021-01-24 09:18:03 -0700 |
commit | 5032ee6dde5b33846570d9ea7af6b508755c708b (patch) | |
tree | a5f8b257af45cccff70b3946e572273c531fdcfe /setup.sql | |
parent | d55089758306fd078a00d2a6d9d0fafc14a0edcf (diff) |
add 'empty category' message
Diffstat (limited to 'setup.sql')
-rw-r--r-- | setup.sql | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -37,3 +37,5 @@ ALTER TABLE threads ADD FOREIGN KEY(thread_cat) REFERENCES categories(cat_id) ON ALTER TABLE threads ADD FOREIGN KEY(thread_author) REFERENCES users(user_id) ON DELETE RESTRICT ON UPDATE CASCADE; ALTER TABLE posts ADD FOREIGN KEY(post_thread) REFERENCES threads(thread_id) ON DELETE CASCADE ON UPDATE CASCADE; ALTER TABLE posts ADD FOREIGN KEY(post_author) REFERENCES users(user_id) ON DELETE RESTRICT ON UPDATE CASCADE; + +INSERT INTO categories (cat_name, cat_description) VALUES ("General", "Discussion of anything that doesn't fit in the other categories"); |