Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
Neptune_Sy_music
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
Star Neptune R. Sy
Neptune_Sy_music
Commits
c034892c
Commit
c034892c
authored
Feb 16, 2023
by
Star Neptune R. Sy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
migrated the database of about.models. I forgot to do it last commit
parent
86b0e8e0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
2 deletions
+53
-2
models.cpython-39.pyc
Neptune_Sy_music/about/__pycache__/models.cpython-39.pyc
+0
-0
0003_auto_20230217_0005.py
Neptune_Sy_music/about/migrations/0003_auto_20230217_0005.py
+52
-0
0003_auto_20230217_0005.cpython-39.pyc
...ations/__pycache__/0003_auto_20230217_0005.cpython-39.pyc
+0
-0
models.py
Neptune_Sy_music/about/models.py
+1
-2
db.sqlite3
Neptune_Sy_music/db.sqlite3
+0
-0
No files found.
Neptune_Sy_music/about/__pycache__/models.cpython-39.pyc
View file @
c034892c
No preview for this file type
Neptune_Sy_music/about/migrations/0003_auto_20230217_0005.py
0 → 100644
View file @
c034892c
# Generated by Django 3.2 on 2023-02-16 16:05
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'about'
,
'0002_subject'
),
]
operations
=
[
migrations
.
CreateModel
(
name
=
'Album'
,
fields
=
[
(
'id'
,
models
.
BigAutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'album_name'
,
models
.
CharField
(
max_length
=
50
,
unique
=
True
)),
(
'description'
,
models
.
CharField
(
max_length
=
500
,
unique
=
True
)),
(
'release_date'
,
models
.
DateField
()),
],
),
migrations
.
CreateModel
(
name
=
'Artist'
,
fields
=
[
(
'id'
,
models
.
BigAutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'artist_name'
,
models
.
CharField
(
max_length
=
50
,
unique
=
True
)),
(
'monthly_listeners'
,
models
.
IntegerField
()),
],
),
migrations
.
CreateModel
(
name
=
'Song'
,
fields
=
[
(
'id'
,
models
.
BigAutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'song_title'
,
models
.
CharField
(
max_length
=
50
)),
(
'song_length'
,
models
.
TimeField
()),
(
'album'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'about.album'
)),
(
'artist'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'single'
,
to
=
'about.artist'
)),
],
),
migrations
.
DeleteModel
(
name
=
'IndexCard'
,
),
migrations
.
DeleteModel
(
name
=
'Subject'
,
),
migrations
.
AddField
(
model_name
=
'album'
,
name
=
'artist'
,
field
=
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'about.artist'
),
),
]
Neptune_Sy_music/about/migrations/__pycache__/0003_auto_20230217_0005.cpython-39.pyc
0 → 100644
View file @
c034892c
File added
Neptune_Sy_music/about/models.py
View file @
c034892c
...
...
@@ -13,7 +13,6 @@ class Album(models.Model):
artist
=
models
.
ForeignKey
(
Artist
,
on_delete
=
models
.
CASCADE
,
related_name
=
'song'
)
description
=
models
.
CharField
(
max_length
=
500
,
unique
=
True
)
release_date
=
models
.
DateField
()
...
...
@@ -25,7 +24,7 @@ class Song(models.Model):
artist
=
models
.
ForeignKey
(
Artist
,
on_delete
=
models
.
CASCADE
,
related_name
=
's
ong
'
related_name
=
's
ingle
'
)
album
=
models
.
ForeignKey
(
Album
,
...
...
Neptune_Sy_music/db.sqlite3
View file @
c034892c
No preview for this file type
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