mirror of
https://github.com/kristoferssolo/FOSSDB.git
synced 2026-02-04 14:52:11 +00:00
Make migrations
This commit is contained in:
@@ -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')),
|
||||
],
|
||||
),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user