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 — Issue with CREATE script: Schema Diff generates wrong SQL for SERIAL columns after renaming, or when a sequence name accidentally matches · Issue #10100 · pgadmin-org/pgadmin4 Closed DescriptionWhat's going wrongPR #10020 fixed Schema Diff's Generate Script so it emits
How to reproduce: CREATE TABLE orders (id serial PRIMARY KEY); ALTER TABLE orders RENAME TO invoices; Now run Schema Diff → Generate Script on the invoices table. What you get (wrong): id integer NOT NULL DEFAULT nextval('orders_id_seq'::regclass) What you should get: id serial NOT NULL If you run the wrong script on a fresh database it fails with: ERROR: relation "orders_id_seq" does not exist — the same error the original bug report described. Activity
|
| 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. |