GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Schema Diff: converting a column between an integer type and SERIAL produces an incomplete script · Issue #10292 · pgadmin-org/pgadmin4 Closed DescriptionBug Description Schema Diff can tell that a column is a With a source table declared as: CREATE TABLE public.t (id bigserial NOT NULL, val text); and a target declared as: CREATE TABLE public.t (id integer NOT NULL, val text); the comparison produces the column type change and, from the sequence node, the sequence itself: ALTER TABLE public.t ALTER COLUMN id TYPE bigint; CREATE SEQUENCE IF NOT EXISTS public.t_id_seq INCREMENT 1 START 1 MINVALUE 1 MAXVALUE 9223372036854775807 CACHE 1; ALTER SEQUENCE public.t_id_seq OWNED BY public.t.id; but never the The cause is that Schema Diff compares columns after they have been reprojected onto the The reverse direction (source plain integer, target Expected Behaviour Applying a Schema Diff script for a column that changes between an integer type and a serial should leave the target column equivalent to the source, defaults included. Context Noticed whilst fixing #10236 (commit 01e5bf0), which stopped identical serial columns being reported as different and stopped the invalid Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |