Commit 6426adb1 authored by BAIRE Anthony's avatar BAIRE Anthony

reserve webapp ids below 1000 for imported webapps

parent fca75e8d
Pipeline #56058 failed with stage
in 5 minutes and 7 seconds
......@@ -9,7 +9,8 @@ RUN apt-getq update && apt-getq install \
nginx-light zip gcc python3-dev python3-pip python3-wheel python3-mysqldb \
python-mysqldb python3-crypto gunicorn3 python3-redis python-mysqldb \
python3-crypto python3-natsort python3-aiohttp python3-aioredis supervisor \
python3-ipy python3-django-taggit python3-iso8601 python3-robot-detection
python3-ipy python3-django-taggit python3-iso8601 python3-robot-detection \
python3-sqlparse
COPY requirements.txt /tmp/
RUN cd /tmp && pip3 install -r requirements.txt && rm requirements.txt
......
......@@ -165,6 +165,8 @@ class Migration(migrations.Migration):
'db_table': 'dj_webapps',
},
),
# webapp ids below 1000 are reserved for webapps imported from the old allgo instance
migrations.RunSQL("ALTER TABLE dj_webapps AUTO_INCREMENT=1000;"),
migrations.CreateModel(
name='WebappParameter',
fields=[
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment