Start migration of our app
This commit is contained in:
24
projects/migrations/0001_initial.py
Normal file
24
projects/migrations/0001_initial.py
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
# Generated by Django 4.0 on 2022-01-04 11:29
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
initial = True
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='Project',
|
||||||
|
fields=[
|
||||||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
|
('title', models.CharField(max_length=100)),
|
||||||
|
('description', models.TextField()),
|
||||||
|
('technology', models.CharField(max_length=20)),
|
||||||
|
('image', models.FilePathField(path='/img')),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user