add blogposts table
This commit is contained in:
parent
3926969188
commit
073b39520f
|
@ -0,0 +1 @@
|
|||
DROP TABLE blogposts;
|
|
@ -0,0 +1,4 @@
|
|||
CREATE TABLE IF NOT EXISTS blogposts
|
||||
( url UNIQUE NOT NULL PRIMARY KEY
|
||||
, title TEXT NOT NULL
|
||||
)
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue