Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing schema referential.segment #28

Open
charlesollion opened this issue Jul 5, 2023 · 0 comments
Open

Missing schema referential.segment #28

charlesollion opened this issue Jul 5, 2023 · 0 comments

Comments

@charlesollion
Copy link

the table referential.segment is entirely missing from the migrations.
It should be added, as well as indexes (which had to be recreated by hand):

ALTER TABLE referential.segment ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME referential.segment_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);
ALTER TABLE ONLY referential.segment ADD CONSTRAINT "PK_segment" PRIMARY KEY (id);
CREATE INDEX "IX_segment_id_ref_country_fk" ON referential.segment USING btree (id_ref_country_fk);
CREATE INDEX "IX_segment_id_ref_river_fk" ON referential.segment USING btree (id_ref_river_fk);
CREATE INDEX segment_id ON referential.segment USING btree (id);
CREATE INDEX segment_importance ON referential.segment USING btree (importance);
CREATE INDEX segment_the_geom ON referential.segment USING gist (the_geom);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant