Skip to content

Commit

Permalink
Refais migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud-D committed Oct 7, 2022
1 parent 3010a51 commit d8fb8ab
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 155 deletions.
28 changes: 0 additions & 28 deletions zds/tutorialv2/migrations/0032_shareablelink.py

This file was deleted.

18 changes: 0 additions & 18 deletions zds/tutorialv2/migrations/0033_shareablelink_revoked.py

This file was deleted.

24 changes: 0 additions & 24 deletions zds/tutorialv2/migrations/0034_auto_20210610_1527.py

This file was deleted.

18 changes: 0 additions & 18 deletions zds/tutorialv2/migrations/0035_shareablelink_expiration.py

This file was deleted.

40 changes: 40 additions & 0 deletions zds/tutorialv2/migrations/0036_shareablelink.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Generated by Django 3.2.15 on 2022-09-29 22:07

from django.db import migrations, models
import django.db.models.deletion
import uuid


class Migration(migrations.Migration):

dependencies = [
("tutorialv2", "0035_alter_publishablecontent_goals"),
]

operations = [
migrations.CreateModel(
name="ShareableLink",
fields=[
("id", models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
("active", models.BooleanField(default=True)),
("expiration", models.DateTimeField(null=True)),
("description", models.CharField(default="Lien de partage", max_length=150)),
(
"type",
models.CharField(
choices=[("DRAFT", "Lien vers le dernier brouillon"), ("BETA", "Lien vers la dernière bêta")],
default="DRAFT",
max_length=10,
),
),
(
"content",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="tutorialv2.publishablecontent",
verbose_name="Contenu",
),
),
],
),
]
18 changes: 0 additions & 18 deletions zds/tutorialv2/migrations/0036_shareablelink_name.py

This file was deleted.

18 changes: 0 additions & 18 deletions zds/tutorialv2/migrations/0037_auto_20210611_2230.py

This file was deleted.

31 changes: 0 additions & 31 deletions zds/tutorialv2/migrations/0038_auto_20210612_1235.py

This file was deleted.

0 comments on commit d8fb8ab

Please sign in to comment.