Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_group22
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
John Tamano
widget_group22
Commits
2f50125c
Commit
2f50125c
authored
Apr 05, 2022
by
Julliana Zarah C. Cruz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added new migrations for Announcements app
parent
5efaa9c2
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
135 additions
and
0 deletions
+135
-0
0001_initial.py
widget_group22/announcements/migrations/0001_initial.py
+23
-0
0002_reaction.py
widget_group22/announcements/migrations/0002_reaction.py
+21
-0
0003_announcement_author.py
...up22/announcements/migrations/0003_announcement_author.py
+21
-0
0004_remove_reaction_id_announcement_reaction_and_more.py
...0004_remove_reaction_id_announcement_reaction_and_more.py
+28
-0
0005_alter_announcement_announcement_body.py
...s/migrations/0005_alter_announcement_announcement_body.py
+18
-0
0006_remove_announcement_reaction_reaction_announcement.py
...006_remove_announcement_reaction_reaction_announcement.py
+24
-0
No files found.
widget_group22/announcements/migrations/0001_initial.py
0 → 100644
View file @
2f50125c
# Generated by Django 4.0.3 on 2022-04-05 04:20
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
initial
=
True
dependencies
=
[
]
operations
=
[
migrations
.
CreateModel
(
name
=
'Announcement'
,
fields
=
[
(
'id'
,
models
.
BigAutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'announcement_title'
,
models
.
CharField
(
max_length
=
100
)),
(
'announcement_body'
,
models
.
CharField
(
max_length
=
400
)),
(
'pub_date'
,
models
.
DateField
(
auto_now_add
=
True
)),
],
),
]
widget_group22/announcements/migrations/0002_reaction.py
0 → 100644
View file @
2f50125c
# Generated by Django 4.0.3 on 2022-04-05 05:00
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'announcements'
,
'0001_initial'
),
]
operations
=
[
migrations
.
CreateModel
(
name
=
'Reaction'
,
fields
=
[
(
'id'
,
models
.
BigAutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'reaction_name'
,
models
.
CharField
(
choices
=
[(
'Like'
,
'Like'
),
(
'Love'
,
'Love'
),
(
'Angry'
,
'Angry'
)],
max_length
=
5
)),
(
'tally'
,
models
.
PositiveIntegerField
()),
],
),
]
widget_group22/announcements/migrations/0003_announcement_author.py
0 → 100644
View file @
2f50125c
# Generated by Django 4.0.3 on 2022-04-05 06:52
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'homepage'
,
'0001_initial'
),
(
'announcements'
,
'0002_reaction'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'announcement'
,
name
=
'author'
,
field
=
models
.
ForeignKey
(
default
=
1
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'homepage.widgetuser'
),
preserve_default
=
False
,
),
]
widget_group22/announcements/migrations/0004_remove_reaction_id_announcement_reaction_and_more.py
0 → 100644
View file @
2f50125c
# Generated by Django 4.0.3 on 2022-04-05 08:27
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'announcements'
,
'0003_announcement_author'
),
]
operations
=
[
migrations
.
RemoveField
(
model_name
=
'reaction'
,
name
=
'id'
,
),
migrations
.
AddField
(
model_name
=
'announcement'
,
name
=
'reaction'
,
field
=
models
.
ForeignKey
(
blank
=
True
,
default
=
None
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'announcements.reaction'
),
),
migrations
.
AlterField
(
model_name
=
'reaction'
,
name
=
'tally'
,
field
=
models
.
AutoField
(
primary_key
=
True
,
serialize
=
False
),
),
]
widget_group22/announcements/migrations/0005_alter_announcement_announcement_body.py
0 → 100644
View file @
2f50125c
# Generated by Django 4.0.3 on 2022-04-05 08:39
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'announcements'
,
'0004_remove_reaction_id_announcement_reaction_and_more'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'announcement'
,
name
=
'announcement_body'
,
field
=
models
.
TextField
(),
),
]
widget_group22/announcements/migrations/0006_remove_announcement_reaction_reaction_announcement.py
0 → 100644
View file @
2f50125c
# Generated by Django 4.0.3 on 2022-04-05 08:53
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'announcements'
,
'0005_alter_announcement_announcement_body'
),
]
operations
=
[
migrations
.
RemoveField
(
model_name
=
'announcement'
,
name
=
'reaction'
,
),
migrations
.
AddField
(
model_name
=
'reaction'
,
name
=
'announcement'
,
field
=
models
.
ForeignKey
(
default
=
1
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'announcements.announcement'
),
preserve_default
=
False
,
),
]
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