add blogposts table

This commit is contained in:
Cadey Ratio 2020-11-04 10:35:26 -05:00
parent 3926969188
commit 073b39520f
3 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1 @@
DROP TABLE blogposts;

View File

@ -0,0 +1,4 @@
CREATE TABLE IF NOT EXISTS blogposts
( url UNIQUE NOT NULL PRIMARY KEY
, title TEXT NOT NULL
)

View File

@ -1,3 +1,10 @@
table! {
blogposts (url) {
url -> Binary,
title -> Text,
}
}
table! {
members (id) {
id -> Integer,
@ -26,6 +33,7 @@ table! {
joinable!(switches -> members (member_id));
allow_tables_to_appear_in_same_query!(
blogposts,
members,
switches,
webmentions,