-
Notifications
You must be signed in to change notification settings - Fork 23
Create migration for drop table if a entire schema is deleted from OpenAPI spec #132
Create migration for drop table if a entire schema is deleted from OpenAPI spec #132
Comments
Stub (and partially failing test ) is present in c859fea |
I should be possible to disable this feature to allow having tables in the same database that are not managed by yii2-openapi. |
I am going to design this as:
This is designed like because often database is used by several teams/individuals and if a team/individual does not have to deal with OpenAPI spec then they are not needed to touch spec file. Only the ones who are dealing with spec should worry about dropping the table of schema which is entirely removed. Example: openapi: "3.0.0"
info:
version: 1.0.0
title: 132_create_migration_for_drop_table \#132
x-delete-tables:
- table_1
- table_2
paths:
/:
get:
summary: List
operationId: list
responses:
'200':
description: The information
... So if a schema is removed, one must put its table name in |
Also ensure its down code have correct migrations code to create table
The text was updated successfully, but these errors were encountered: