Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set: migrations 폴더 gitignore에서 제외 #69

Merged
merged 1 commit into from
Jan 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ backend/.erlang.cookie
.idea

# cpython
migrations/
__pycache__/
*.pyc

Expand Down
Empty file added neo_db/migrations/__init__.py
Empty file.
24 changes: 24 additions & 0 deletions story/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from django.db import migrations, models
import django.db.models.deletion

class Migration(migrations.Migration):
initial = True

dependencies = [
('user', '0001_initial'), # 'user' 앱의 초기 마이그레이션에 의존한다고 가정
]

operations = [
migrations.CreateModel(
name='Story',
fields=[
('id', models.AutoField(primary_key=True, serialize=False)),
('user', models.ForeignKey(null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, to='user.user')),
('content', models.CharField(blank=True, max_length=200)),
('image_url', models.CharField(max_length=500, null=True)),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
('is_deleted', models.BooleanField(default=False)),
],
),
]
Empty file added story/migrations/__init__.py
Empty file.
24 changes: 24 additions & 0 deletions user/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Generated by Django 3.2.6 on 2024-01-08 06:26

from django.db import migrations, models


class Migration(migrations.Migration):

initial = True

dependencies = [
]

operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.IntegerField(primary_key=True, serialize=False)),
('nickname', models.CharField(max_length=10)),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
('is_deleted', models.BooleanField(default=False)),
],
),
]
18 changes: 18 additions & 0 deletions user/migrations/0002_alter_user_id.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.6 on 2024-01-08 06:51

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('user', '0001_initial'),
]

operations = [
migrations.AlterField(
model_name='user',
name='id',
field=models.AutoField(primary_key=True, serialize=False),
),
]
Empty file added user/migrations/__init__.py
Empty file.