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

pb de creation d'une nouvelle page dans le portail #85

Open
dzkwsk opened this issue Feb 20, 2024 · 2 comments
Open

pb de creation d'une nouvelle page dans le portail #85

dzkwsk opened this issue Feb 20, 2024 · 2 comments
Assignees

Comments

@dzkwsk
Copy link

dzkwsk commented Feb 20, 2024

il s'agit de retourner à colectica les infos de configuration de la table utilisateur postgre dans notre portail.

To investigate, can you send us the postgresql describe table output for the table in the Colectica user database?

Try this (in the psql command-line tool):

\d+ "Pages"

Log is sent to Colectica
zendesk
http://colectica.zendesk.com/hc/requests/25697

@dzkwsk
Copy link
Author

dzkwsk commented Feb 20, 2024

on a eu la réponse de Colectica, voir http://colectica.zendesk.com/hc/requests/25697

Hi Christophe,

Your Pages table is not correct as it does not have the default value set for the Id column, the Par défaut in your output. Did you alter it or recreate this table or restore it via backup?

In any case, it would be best to recreate it with the following script to restore it to the correct format.

DROP TABLE IF EXISTS "Pages";

CREATE TABLE IF NOT EXISTS "Pages"
(
"Id" integer NOT NULL DEFAULT nextval('"Pages_Id_seq"'::regclass),
"Content" text NOT NULL,
"CreatedById" text,
"CreatedTime" timestamp without time zone NOT NULL,
"FriendlyUrl" text NOT NULL,
"IncludeInMainNavigation" boolean NOT NULL,
"Title" text NOT NULL,
"Weight" integer NOT NULL,
CONSTRAINT "PK_Pages" PRIMARY KEY ("Id"),
CONSTRAINT "FK_Pages_AspNetUsers_CreatedById" FOREIGN KEY ("CreatedById")
REFERENCES "AspNetUsers" ("Id") MATCH SIMPLE
ON UPDATE NO ACTION
ON DELETE RESTRICT
)

CREATE INDEX IF NOT EXISTS "IX_Pages_CreatedById"
ON "Pages" USING btree
("CreatedById" ASC NULLS LAST)
TABLESPACE pg_default;

Thanks
Dan

@EmmanuelDemey
Copy link
Collaborator

ping @JeromeMBourgeois :D

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

3 participants