Fix cells unique index
This commit is contained in:
parent
e85edff30a
commit
c7ead28cfa
@ -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:
|
||||
|
2
migrations/20231108061201_fix_cells_unique_index.sql
Normal file
2
migrations/20231108061201_fix_cells_unique_index.sql
Normal 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;
|
Loading…
Reference in New Issue
Block a user