Update
This commit is contained in:
parent
501b9d3093
commit
964534d0d9
21 changed files with 762 additions and 207 deletions
|
@ -1,3 +1,5 @@
|
|||
DROP TABLE post_tags;
|
||||
|
||||
DROP TABLE posts;
|
||||
|
||||
DROP TABLE tags;
|
||||
DROP TABLE tags;
|
||||
|
|
|
@ -12,4 +12,10 @@ CREATE TABLE posts(
|
|||
published_at DATE NOT NULL,
|
||||
edited_at DATE,
|
||||
active BOOLEAN NOT NULL
|
||||
);
|
||||
);
|
||||
|
||||
CREATE TABLE post_tags(
|
||||
id SERIAL PRIMARY KEY,
|
||||
post_id INTEGER NOT NULL REFERENCES posts(id),
|
||||
tag_id INTEGER NOT NULL REFERENCES tags(id)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue