mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Remove default struct properties and set all unique keys to not null.
This commit is contained in:
parent
188a7dd9e6
commit
6467ea14b0
2 changed files with 4 additions and 4 deletions
|
@ -5,8 +5,8 @@
|
||||||
CREATE TABLE IF NOT EXISTS public.channel_continuations
|
CREATE TABLE IF NOT EXISTS public.channel_continuations
|
||||||
(
|
(
|
||||||
id text NOT NULL,
|
id text NOT NULL,
|
||||||
page integer,
|
page integer NOT NULL,
|
||||||
sort_by text,
|
sort_by text NOT NULL,
|
||||||
continuation text,
|
continuation text,
|
||||||
CONSTRAINT channel_continuations_id_page_sort_by_key UNIQUE (id, page, sort_by)
|
CONSTRAINT channel_continuations_id_page_sort_by_key UNIQUE (id, page, sort_by)
|
||||||
);
|
);
|
||||||
|
|
|
@ -12,8 +12,8 @@ struct ChannelContinuation
|
||||||
include DB::Serializable
|
include DB::Serializable
|
||||||
|
|
||||||
property id : String
|
property id : String
|
||||||
property page : Int32 = 0
|
property page : Int32
|
||||||
property sort_by : String = "newest"
|
property sort_by : String
|
||||||
property continuation : String
|
property continuation : String
|
||||||
|
|
||||||
def to_tuple
|
def to_tuple
|
||||||
|
|
Loading…
Reference in a new issue