mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +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
|
||||
(
|
||||
id text NOT NULL,
|
||||
page integer,
|
||||
sort_by text,
|
||||
page integer NOT NULL,
|
||||
sort_by text NOT NULL,
|
||||
continuation text,
|
||||
CONSTRAINT channel_continuations_id_page_sort_by_key UNIQUE (id, page, sort_by)
|
||||
);
|
||||
|
|
|
@ -12,8 +12,8 @@ struct ChannelContinuation
|
|||
include DB::Serializable
|
||||
|
||||
property id : String
|
||||
property page : Int32 = 0
|
||||
property sort_by : String = "newest"
|
||||
property page : Int32
|
||||
property sort_by : String
|
||||
property continuation : String
|
||||
|
||||
def to_tuple
|
||||
|
|
Loading…
Reference in a new issue