fediblog/migrations/2023-10-17-164429_posts_add_blog_ref/up.sql
Louis Hollingworth cf80d4b70d
(feat) Server is now running
Added DB schemas that are needed for the basics.

Signed-off-by: Louis Hollingworth <louis@hollingworth.nl>
2023-10-17 18:20:02 +01:00

9 lines
224 B
SQL

-- SPDX-FileCopyrightText: 2023 Louis Hollingworth <louis@hollingworth.nl>
--
-- SPDX-License-Identifier: AGPL-3.0-or-later
-- Your SQL goes here
ALTER TABLE posts
ADD COLUMN blog_id INTEGER NOT NULL REFERENCES blogs(id);