Skip to content

Commit

Permalink
Merge pull request #16 from arthur-schnitzler/15-new-migrations
Browse files Browse the repository at this point in the history
15 new migrations
  • Loading branch information
csae8092 authored Dec 19, 2023
2 parents ee80d02 + f6b9678 commit e754276
Show file tree
Hide file tree
Showing 24 changed files with 701 additions and 1,029 deletions.
3 changes: 2 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
POSTGRES_DB=pmb
POSTGRES_DB=pmb_play
# NEW_PMB=True
# POSTGRES_HOST=172.17.0.1
DEBUG=True
POSTGRES_HOST=127.0.0.1
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@ maybe in future also with PMB CRUD included

### process gnd-beacon

`python manage.py process_beacon --beacon=https://thun-korrespondenz.acdh.oeaw.ac.at/beacon.txt --domain=thun-korrespondenz`
`python manage.py process_beacon --beacon=https://thun-korrespondenz.acdh.oeaw.ac.at/beacon.txt --domain=thun-korrespondenz`


## set up new instance

in order to avoid errors on a new instance you'll need to set an environment variable `PMB_NEW=whatever`. After you run the inital `python manage.py migrate` you should `unset PMB_NEW`
29 changes: 17 additions & 12 deletions apis_core/apis_entities/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 2.1.12 on 2020-01-21 12:27
# Generated by Django 5.0 on 2023-12-19 07:19

import django.db.models.deletion
from django.db import migrations, models
Expand All @@ -23,12 +23,12 @@ class Migration(migrations.Migration):
parent_link=True,
primary_key=True,
serialize=False,
to="apis_metainfo.TempEntityClass",
to="apis_metainfo.tempentityclass",
),
),
],
options={
"abstract": False,
"ordering": ["id"],
},
bases=("apis_metainfo.tempentityclass",),
),
Expand All @@ -43,12 +43,12 @@ class Migration(migrations.Migration):
parent_link=True,
primary_key=True,
serialize=False,
to="apis_metainfo.TempEntityClass",
to="apis_metainfo.tempentityclass",
),
),
],
options={
"abstract": False,
"ordering": ["id"],
},
bases=("apis_metainfo.tempentityclass",),
),
Expand All @@ -63,7 +63,7 @@ class Migration(migrations.Migration):
parent_link=True,
primary_key=True,
serialize=False,
to="apis_metainfo.TempEntityClass",
to="apis_metainfo.tempentityclass",
),
),
(
Expand All @@ -79,13 +79,18 @@ class Migration(migrations.Migration):
"gender",
models.CharField(
blank=True,
choices=[("female", "female"), ("male", "male")],
choices=[
("female", "female"),
("male", "male"),
("third gender", "third gender"),
],
max_length=15,
null=True,
),
),
],
options={
"abstract": False,
"ordering": ["id"],
},
bases=("apis_metainfo.tempentityclass",),
),
Expand All @@ -100,7 +105,7 @@ class Migration(migrations.Migration):
parent_link=True,
primary_key=True,
serialize=False,
to="apis_metainfo.TempEntityClass",
to="apis_metainfo.tempentityclass",
),
),
(
Expand All @@ -113,7 +118,7 @@ class Migration(migrations.Migration):
),
],
options={
"abstract": False,
"ordering": ["id"],
},
bases=("apis_metainfo.tempentityclass",),
),
Expand All @@ -128,12 +133,12 @@ class Migration(migrations.Migration):
parent_link=True,
primary_key=True,
serialize=False,
to="apis_metainfo.TempEntityClass",
to="apis_metainfo.tempentityclass",
),
),
],
options={
"abstract": False,
"ordering": ["id"],
},
bases=("apis_metainfo.tempentityclass",),
),
Expand Down
Loading

0 comments on commit e754276

Please sign in to comment.