LEFT JOIN
packages ON builds.pkg_id = packages.id
WHERE
- repositories.deleted IS TRUE
+ repositories.deleted_at IS NULL
AND
repositories.distro_id = %s
AND
CREATE TABLE public.repositories (
id integer NOT NULL,
name text NOT NULL,
- slug text,
+ slug text NOT NULL,
description text DEFAULT ''::text NOT NULL,
distro_id integer NOT NULL,
key_id integer NOT NULL,
mirrored boolean DEFAULT false NOT NULL,
updated_at timestamp without time zone,
- deleted boolean DEFAULT false NOT NULL,
+ deleted_at timestamp without time zone,
priority integer,
owner_id integer,
created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
-- Name: repositories_unique; Type: INDEX; Schema: public; Owner: -
--
-CREATE UNIQUE INDEX repositories_unique ON public.repositories USING btree (owner_id, distro_id, slug) WHERE (deleted IS FALSE);
+CREATE UNIQUE INDEX repositories_unique ON public.repositories USING btree (owner_id, distro_id, slug) WHERE (deleted_at IS NULL);
--