mirror of
https://github.com/kristoferssolo/FOSSDB.git
synced 2025-10-21 17:50:35 +00:00
Make migrations
This commit is contained in:
parent
818f8a6ba4
commit
082fd1c21b
@ -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')),
|
||||
],
|
||||
),
|
||||
]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user