Fix cells unique index

This commit is contained in:
Tyler Hallada 2023-11-08 16:06:26 -05:00
parent e85edff30a
commit c7ead28cfa
2 changed files with 4 additions and 1 deletions

View File

@ -4,7 +4,7 @@ Downloads mods from nexus, parses the plugins inside, and saves data to a postgr
## Development Install
1. Install and run postgres.
1. Install and run postgres (v15 or later).
2. Create postgres user and database (and add uuid extension while you're there
):
@ -13,6 +13,7 @@ createuser modmapper
createdb modmapper
sudo -u postgres -i psql
postgres=# ALTER DATABASE modmapper OWNER TO modmapper;
postgres=# ALTER USER modmapper CREATEDB;
\password modmapper
# Or, on Windows in PowerShell:

View File

@ -0,0 +1,2 @@
DROP INDEX "cells_unique_form_id_master_and_world_id";
CREATE UNIQUE INDEX "cells_unique_form_id_master_and_world_id" ON "cells" ("form_id", "master", "world_id") NULLS NOT DISTINCT;