Preserve PSQL table name for author join table

This commit is contained in:
Mouse Reeve 2022-07-09 15:31:59 -07:00
parent ef833f0e42
commit 9f6947777c
2 changed files with 18 additions and 0 deletions

View 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",
),
]

View file

@ -462,4 +462,5 @@ class BookAuthor(BookWyrmModel):
class Meta:
"""Table characteristics"""
db_table = "bookwyrm_book_authors"
unique_together = ("book", "author", "author_type")