Move Post/Author/Tag/PostAuthor/PostTag/PostUser models from
shared/models/ghost_content.py to blog/models/content.py so blog-domain
models no longer live in the shared layer. Replace the shared
SqlBlogService + BlogService protocol with a blog-local singleton
(blog_service), and switch entry_associations.py from direct DB access
to HTTP fetch_data("blog", "post-by-id") to respect the inter-service
boundary.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
23 lines
545 B
Python
23 lines
545 B
Python
from alembic import context
|
|
from shared.db.alembic_env import run_alembic
|
|
|
|
MODELS = [
|
|
"blog.models.content",
|
|
"shared.models.kv",
|
|
"shared.models.menu_item",
|
|
"shared.models.menu_node",
|
|
"shared.models.page_config",
|
|
"blog.models.snippet",
|
|
"blog.models.tag_group",
|
|
]
|
|
|
|
TABLES = frozenset({
|
|
"posts", "authors", "post_authors", "tags", "post_tags",
|
|
"post_users",
|
|
"snippets", "tag_groups", "tag_group_tags",
|
|
"menu_items", "menu_nodes", "kv",
|
|
"page_configs",
|
|
})
|
|
|
|
run_alembic(context.config, MODELS, TABLES)
|