Skip to content

Commit

Permalink
fix migrations model contact
Browse files Browse the repository at this point in the history
  • Loading branch information
alanzirek committed Jul 2, 2024
1 parent f669a8c commit b712ea2
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
43 changes: 43 additions & 0 deletions core/migrations/0004_structurehierarchique_and_more.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Generated by Django 5.0.3 on 2024-07-01 14:49

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("core", "0003_contact_core_contac_email_800caf_idx"),
]

operations = [
migrations.CreateModel(
name="StructureHierarchique",
fields=[
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
("nom", models.CharField(max_length=255)),
],
options={
"verbose_name": "Structure hiérarchique",
"verbose_name_plural": "Structures hiérarchiques",
},
),
migrations.AlterField(
model_name="contact",
name="complement_fonction",
field=models.TextField(blank=True),
),
migrations.AlterField(
model_name="contact",
name="fonction_hierarchique",
field=models.CharField(blank=True, max_length=255),
),
migrations.AlterField(
model_name="contact",
name="mobile",
field=models.CharField(blank=True, max_length=20),
),
migrations.AlterField(
model_name="contact",
name="telephone",
field=models.CharField(blank=True, max_length=20),
),
]
15 changes: 15 additions & 0 deletions core/migrations/0005_delete_structurehierarchique.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Generated by Django 5.0.3 on 2024-07-02 06:27

from django.db import migrations


class Migration(migrations.Migration):
dependencies = [
("core", "0004_structurehierarchique_and_more"),
]

operations = [
migrations.DeleteModel(
name="StructureHierarchique",
),
]

0 comments on commit b712ea2

Please sign in to comment.