mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-24 16:08:07 +00:00
Preserve PSQL table name for author join table
This commit is contained in:
parent
ef833f0e42
commit
9f6947777c
2 changed files with 18 additions and 0 deletions
17
bookwyrm/migrations/0156_alter_bookauthor_table.py
Normal file
17
bookwyrm/migrations/0156_alter_bookauthor_table.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Generated by Django 3.2.14 on 2022-07-09 22:31
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("bookwyrm", "0155_book_new_authors"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelTable(
|
||||
name="bookauthor",
|
||||
table="bookwyrm_book_authors",
|
||||
),
|
||||
]
|
|
@ -462,4 +462,5 @@ class BookAuthor(BookWyrmModel):
|
|||
class Meta:
|
||||
"""Table characteristics"""
|
||||
|
||||
db_table = "bookwyrm_book_authors"
|
||||
unique_together = ("book", "author", "author_type")
|
||||
|
|
Loading…
Reference in a new issue