You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created an inherited table in Postgres and everything worked as expected.
Then I decided I needed to add a column to the parent table, but when I did this the models for the inherited tables did not get updated with the new column.
Relevant log output
No response
Database schema
CREATETABLEtraffic_sensors(
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
serial_number varchar(16) NOT NULL,
sampling_rate interval NOT NULL,
base_station_serial varcharNOT NULL
);
CREATETABLEtraffic_sensors_random(
max integerNOT NULL,
min integerNOT NULL
)
INHERITS (
traffic_sensors
);
ALTERTABLE traffic_sensors
ADD sensor_type varchar;
Version
1.24.0
What happened?
I created an inherited table in Postgres and everything worked as expected.
Then I decided I needed to add a column to the parent table, but when I did this the models for the inherited tables did not get updated with the new column.
Relevant log output
No response
Database schema
SQL queries
Configuration
Playground URL
No response
What operating system are you using?
macOS
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: