]> git.ipfire.org Git - pbs.git/commitdiff
filelists: Change database layout
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 Jul 2022 09:00:53 +0000 (09:00 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 Jul 2022 09:00:53 +0000 (09:00 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/database.sql

index 6d5d2a4419423bd5e3c9350270e05cc23dceddac..8c6b67fe6ef51fd614d68deba6ce396204ac5dd2 100644 (file)
@@ -417,16 +417,18 @@ ALTER SEQUENCE public.distributions_id_seq OWNED BY public.distributions.id;
 
 CREATE TABLE public.filelists (
     pkg_id integer NOT NULL,
-    name text NOT NULL,
+    path text NOT NULL,
     size bigint NOT NULL,
-    hash_sha512 text,
     type integer NOT NULL,
-    config boolean NOT NULL,
+    config boolean DEFAULT false NOT NULL,
     mode integer NOT NULL,
     "user" text NOT NULL,
     "group" text NOT NULL,
+    capabilities text,
+    ctime timestamp without time zone NOT NULL,
     mtime timestamp without time zone NOT NULL,
-    capabilities text
+    digest_sha512 bytea,
+    digest_sha256 bytea
 );
 
 
@@ -1967,10 +1969,10 @@ CREATE UNIQUE INDEX distributions_slug ON public.distributions USING btree (slug
 
 
 --
--- Name: filelists_name; Type: INDEX; Schema: public; Owner: pakfire
+-- Name: filelists_path; Type: INDEX; Schema: public; Owner: pakfire
 --
 
-CREATE INDEX filelists_name ON public.filelists USING btree (name);
+CREATE INDEX filelists_path ON public.filelists USING btree (path);
 
 
 --