chore: remove features that don't compile

add: posts "circle" column
This commit is contained in:
trisua 2025-06-15 12:19:58 -04:00
parent 0310418837
commit 50704d27a9
42 changed files with 71 additions and 365 deletions

View file

@ -2,13 +2,7 @@ pub mod common;
use std::collections::HashMap;
use tetratto_l10n::{read_langs, LangFile};
#[cfg(feature = "sqlite")]
use oiseau::sqlite::{DataManager as OiseauManager, Result};
#[cfg(feature = "postgres")]
use oiseau::postgres::{DataManager as OiseauManager, Result};
use crate::config::Config;
#[derive(Clone)]

View file

@ -17,5 +17,6 @@ CREATE TABLE IF NOT EXISTS posts (
tsvector_content tsvector GENERATED ALWAYS AS (to_tsvector ('english', coalesce(content, ''))) STORED,
poll_id BIGINT NOT NULL,
title TEXT NOT NULL,
is_open INT NOT NULL DEFAULT 1
is_open INT NOT NULL DEFAULT 1,
circle BIGINT NOT NULL
)