fix(db): initial schema filter origins nullable (#271)

This commit is contained in:
Ludvig Lundgren 2022-05-12 15:40:58 +02:00 committed by GitHub
parent d112634947
commit bea30cb0bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -101,7 +101,7 @@ CREATE TABLE filter
except_uploaders TEXT,
tags TEXT,
except_tags TEXT,
origins TEXT [] DEFAULT '{}' NOT NULL,
origins TEXT [] DEFAULT '{}',
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

View file

@ -52,7 +52,8 @@ function FilterAddForm({ isOpen, toggle }: any) {
resolutions: [],
codecs: [],
sources: [],
containers: []
containers: [],
origins: [],
}}
onSubmit={handleSubmit}
validate={validate}