OpenSlides/server/openslides/users/migrations/0011_postgresql_auth_group_id_sequence.py
FinnStutzenstein 2bcab5d098
Repository restructure
- moved all server related things into the folder `server`, so this
configuration is parallel to the client.
- All main "services" are now folders in the root directory
- Added Dockerfiles to each service (currently server and client)
- Added a docker compose configuration to start everything together.
Currently there are heavy dependencies into https://github.com/OpenSlides/openslides-docker-compose
- Resturctured the .gitignore. If someone needs something excluded,
please add it to the right section.
- Added initial build setup with Docker and docker-compose.
- removed setup.py. We won't deliver OpenSlides via pip anymore.
2020-08-21 08:11:13 +02:00

24 lines
735 B
Python

# Generated by Finn Stutzenstein on 2019-07-23 13:37
from django.db import migrations
from openslides.utils.postgres import restart_id_sequence
def postgres_restart_auth_group_id_sequence(*args, **kwargs):
restart_id_sequence("auth_group")
class Migration(migrations.Migration):
"""
When migrating old databases (especially after 0007_superadmin) the id sequence
in postgres needs to be restarted.
This is a additional migration to 0007_superadmin. If a later migration does
something with changing groups in the database, this method needs to run again.
"""
dependencies = [("users", "0010_auto_20190119_1447")]
operations = [migrations.RunPython(postgres_restart_auth_group_id_sequence)]