From 082fd1c21baa5eb74e860aef74d1efaae1284fa2 Mon Sep 17 00:00:00 2001 From: Kristofers Solo Date: Fri, 7 Apr 2023 14:28:56 +0300 Subject: [PATCH] Make migrations --- FOSSDB_web/apps/fossdb/migrations/0001_initial.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/FOSSDB_web/apps/fossdb/migrations/0001_initial.py b/FOSSDB_web/apps/fossdb/migrations/0001_initial.py index def7053..c6fd294 100644 --- a/FOSSDB_web/apps/fossdb/migrations/0001_initial.py +++ b/FOSSDB_web/apps/fossdb/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 4.1 on 2023-03-27 17:46 +# Generated by Django 4.1.7 on 2023-04-07 11:28 from django.conf import settings from django.db import migrations, models @@ -14,6 +14,16 @@ class Migration(migrations.Migration): ] operations = [ + migrations.CreateModel( + name='License', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('short_name', models.CharField(max_length=50)), + ('full_name', models.CharField(blank=True, max_length=100, null=True)), + ('url', models.URLField(blank=True, null=True)), + ('description', models.TextField(blank=True, null=True)), + ], + ), migrations.CreateModel( name='Project', fields=[ @@ -22,6 +32,7 @@ class Migration(migrations.Migration): ('description', models.TextField()), ('create_date', models.DateTimeField(auto_now_add=True)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), + ('license', models.ManyToManyField(to='fossdb.license')), ], ), ]