Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_group 25
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Andre Matthew Dumandan
widget_group 25
Commits
cbe69b43
Commit
cbe69b43
authored
Apr 02, 2022
by
Stephanie Tullao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added migration files
parent
adcb3764
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
0 deletions
+54
-0
0002_post_author_alter_post_pub_date_reply.py
.../migrations/0002_post_author_alter_post_pub_date_reply.py
+36
-0
0003_rename_og_post_reply_original_post.py
...rum/migrations/0003_rename_og_post_reply_original_post.py
+18
-0
No files found.
widget_group_25/forum/migrations/0002_post_author_alter_post_pub_date_reply.py
0 → 100644
View file @
cbe69b43
# Generated by Django 4.0.3 on 2022-04-02 07:06
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'homepage'
,
'0006_alter_widgetuser_department_and_more'
),
(
'forum'
,
'0001_initial'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'post'
,
name
=
'author'
,
field
=
models
.
ForeignKey
(
default
=
''
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'posts'
,
to
=
'homepage.widgetuser'
),
preserve_default
=
False
,
),
migrations
.
AlterField
(
model_name
=
'post'
,
name
=
'pub_date'
,
field
=
models
.
DateField
(
auto_now_add
=
True
),
),
migrations
.
CreateModel
(
name
=
'Reply'
,
fields
=
[
(
'id'
,
models
.
BigAutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'reply_body'
,
models
.
TextField
()),
(
'pub_date'
,
models
.
DateField
(
auto_now_add
=
True
)),
(
'author'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'replies'
,
to
=
'homepage.widgetuser'
)),
(
'og_post'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'replies'
,
to
=
'forum.post'
)),
],
),
]
widget_group_25/forum/migrations/0003_rename_og_post_reply_original_post.py
0 → 100644
View file @
cbe69b43
# Generated by Django 4.0.3 on 2022-04-02 07:31
from
django.db
import
migrations
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'forum'
,
'0002_post_author_alter_post_pub_date_reply'
),
]
operations
=
[
migrations
.
RenameField
(
model_name
=
'reply'
,
old_name
=
'og_post'
,
new_name
=
'original_post'
,
),
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment