Comments (1)
@hieuthanhpro Hello there! I'm a bot designed to help you solve bugs, answer questions, and become a contributor. I'm here to assist you while waiting for a human maintainer.
To resolve the PostgreSQL ENUM type requires a name
error when running superset db migrate
after adding public
and organizationId
columns to the dashboard
model, you need to ensure that the ENUM type is given a name. In SQLAlchemy, you can specify the name of the ENUM type using the name
parameter.
Here is an example of how you can define the ENUM type with a name in your model:
from sqlalchemy import Column, Integer, Enum
class Dashboard(Base):
__tablename__ = 'dashboard'
id = Column(Integer, primary_key=True)
public = Column(Enum('private', 'public', name='public_enum'))
organizationId = Column(Integer)
Make sure to replace 'private'
and 'public'
with the actual values you want in your ENUM type. The name='public_enum'
part is crucial as it provides a name for the ENUM type, which is required by PostgreSQL.
After making this change, run superset db migrate
again, and the error should be resolved [1].
To continue talking to Dosu, mention @dosu.
from superset.
Related Issues (20)
- Thumbnails work for Dashboards, not for charts HOT 1
- Unable to set role permissions for new schema unless a new connection is created. HOT 1
- Superset Login Redirect After Guest Token Usage in Angular Iframe HOT 1
- start of production no possible due to errors in docker-compose-non-dev.yml and docker/.env HOT 3
- Data Misalignment When Applying Filter HOT 5
- PLAYWRIGHT_REPORTS_AND_THUMBNAILS grey output for dashboards HOT 4
- Superset 3.1.3: Long Dashboards render blank thumbnails unless Dashboard length is reduced HOT 4
- Changing to non-temporal variable, then back, causes time grain to no longer function in 4.0.2rc2
- superset can not login in HOT 6
- Sercurity issue: clickhouse server ip & port is showing on the dashboard UI HOT 3
- password changed unexpected while using api PUT /api/v1/security/users/{pk} HOT 2
- snowflake wrong quotes on schema name with dot HOT 2
- Excess Padding in Horizontal Bar Charts When Legend is Added HOT 1
- Dashboards can be generated with dummy locations HOT 2
- Previous locations remain in the location filter when changing the account HOT 4
- Field of type date in Elasticsearch is being converted to String in Superset HOT 1
- Server Side Session with Redis Fails to Serialize LazyString Objects HOT 4
- Not work Color(fill color) the polygons in graphicseck.gl Polygons HOT 3
- Calculated column jinja templating fails in ORDER BY clause HOT 1
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 superset.