Comments (2)
turns out this is intentional based on how the Enum
type works:
When the builtin type :class:
_types.Enum
is used and the
:paramref:.Enum.native_enum
flag is left at its default of
True, the PostgreSQL backend will use a :class:_postgresql.ENUM
type as the implementation, so the special create/drop rules
will be used.
The create/drop behavior of ENUM is necessarily intricate, due to the
awkward relationship the ENUM type has in relationship to the
parent table, in that it may be "owned" by just a single table, or
may be shared among many tables.
When using :class:_types.Enum
or :class:_postgresql.ENUM
in an "inline" fashion, theCREATE TYPE
andDROP TYPE
is emitted
corresponding to when the :meth:_schema.Table.create
and
:meth:_schema.Table.drop
methods are called::
table = Table('sometable', metadata,
Column('some_enum', ENUM('a', 'b', 'c', name='myenum'))
)
table.create(engine) # will emit CREATE ENUM and CREATE TABLE
table.drop(engine) # will emit DROP TABLE and DROP ENUM
from ent.
^ didn't work. probably/maybe because of how alembic calls the create types in autogenerate mode which is different from what the comment said. So fixed in #117 to explicitly create/drop types and not depend on the table
from ent.
Related Issues (20)
- Input object can't have nested input object field HOT 5
- Can't rename Input Object HOT 3
- UUID fields in Structs do not get GraphQL encoded HOT 1
- UpdateOperation data Map does not include actionOnlyFields HOT 4
- `transformWrite` fails when `StructType` fields are included in data set in the return object HOT 7
- CustomClauseQuery without a required clause? HOT 4
- Pattern edges actions are duplicated for every schema that uses them
- GraphQL Error: "message": "options.ctr is not a constructor" when using fieldEdge? HOT 1
- tranformWrite follow-ups HOT 1
- maybe kill generated fieldInfo?
- naming custom type Viewer doesn't quite work
- Couple minor errors with pattern generation HOT 4
- UUIDListType fields codegen with errors in the Builder HOT 4
- Is it possible to separate GraphQL codegen for inputs and mutations? HOT 2
- Create a union type in the generated schema for patterns
- Edge Actions ignore actionOnlyFields HOT 1
- Circular dependencies with generated builder files HOT 3
- AssocEdgeQueryBase classes generated from pattern edges don't include chain query methods
- Delete actions do not call `removeInboundEdge` on field edges
- Cannot have two graphQL methods that return the same object type in the same file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ent.