filestorage
This commit is contained in:
parent
edb58e23a3
commit
e70c94bfe2
31
Main/migrations/0075_auto_20211110_2317.py
Normal file
31
Main/migrations/0075_auto_20211110_2317.py
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# Generated by Django 3.2.4 on 2021-11-10 20:17
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import django.db.models.deletion
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('Main', '0074_auto_20211106_1215'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='SolutionFile',
|
||||||
|
fields=[
|
||||||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
|
('path', models.TextField()),
|
||||||
|
('fs_id', models.IntegerField()),
|
||||||
|
('solution', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Main.solution')),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
migrations.DeleteModel(
|
||||||
|
name='Language',
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='extrafile',
|
||||||
|
name='fs_id',
|
||||||
|
field=models.IntegerField(null=True),
|
||||||
|
),
|
||||||
|
]
|
@ -29,7 +29,6 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "${PORT}:${PORT}"
|
- "${PORT}:${PORT}"
|
||||||
volumes:
|
volumes:
|
||||||
- /sprint-data/data:/usr/src/app/data
|
|
||||||
- /sprint-data/media:/usr/src/app/media
|
- /sprint-data/media:/usr/src/app/media
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
@ -74,5 +73,4 @@ services:
|
|||||||
- rabbitmq
|
- rabbitmq
|
||||||
- postgres
|
- postgres
|
||||||
volumes:
|
volumes:
|
||||||
- /sprint-data/data:/usr/src/app/data
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
@ -1,3 +1,2 @@
|
|||||||
python manage.py migrate
|
python manage.py migrate
|
||||||
python manage.py update_languages
|
|
||||||
python manage.py runserver 0.0.0.0:$PORT --noreload
|
python manage.py runserver 0.0.0.0:$PORT --noreload
|
Loading…
Reference in New Issue
Block a user