da33786939
Adds columns for author names and emails to both threads and posts. "Users" don't (yet? who knows!) exist as independent entity in Converse, they are simply "inferred" via OIDC providers.
10 lines
558 B
SQL
10 lines
558 B
SQL
-- This migration adds an 'author' column to the thread & post table.
|
|
-- Authors don't currently exist as independent objects in the
|
|
-- database as most user management is simply delegated to the OIDC
|
|
-- provider.
|
|
|
|
ALTER TABLE threads ADD COLUMN author_name VARCHAR NOT NULL DEFAULT 'anonymous';
|
|
ALTER TABLE threads ADD COLUMN author_email VARCHAR NOT NULL DEFAULT 'unknown@example.org';
|
|
|
|
ALTER TABLE posts ADD COLUMN author_name VARCHAR NOT NULL DEFAULT 'anonymous';
|
|
ALTER TABLE posts ADD COLUMN author_email VARCHAR NOT NULL DEFAULT 'unknown@example.org';
|