Added index

This commit is contained in:
Jef Roosens 2021-12-25 10:42:36 +01:00
parent fb38a1c1bf
commit 8b784aec93
Signed by: Jef Roosens
GPG key ID: 955C0660072F691F
4 changed files with 12 additions and 1 deletions

View file

@ -2,6 +2,7 @@
drop trigger insert_enforce_version_titles on versions;
drop trigger update_enforce_version_titles on versions;
drop function enforce_version_titles;
drop index sections_shortname_index;
drop table versions cascade;
drop table posts cascade;

View file

@ -15,6 +15,8 @@ create table sections (
is_private boolean NOT NULL DEFAULT false
);
create index sections_shortname_index on sections(shortname);
create table posts (
id uuid DEFAULT gen_random_uuid() PRIMARY KEY,