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

Formulaire d’inscription #1900

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change evolution file names
niladic committed Feb 6, 2024
commit f74024db15ac4fd6c35f6eff92a76e511fadb421
42 changes: 0 additions & 42 deletions conf/evolutions/default/70.sql

This file was deleted.

40 changes: 36 additions & 4 deletions conf/evolutions/default/71.sql
Original file line number Diff line number Diff line change
@@ -1,10 +1,42 @@
--- !Ups

ALTER TABLE "user" ADD COLUMN managing_organisation_ids varchar[] DEFAULT ARRAY[]::varchar[] NOT NULL;
ALTER TABLE "user" ADD COLUMN managing_area_ids varchar[] DEFAULT ARRAY[]::varchar[] NOT NULL;
CREATE TABLE account_creation_request (
id uuid PRIMARY KEY,
request_date timestamp with time zone NOT NULL,
email character varying(200) NOT NULL,
is_named_account boolean NOT NULL,
first_name character varying(200) NOT NULL,
last_name character varying(200) NOT NULL,
phone_number character varying(40),
area_ids uuid[] NOT NULL,
qualite character varying(100),
organisation_id character varying(200),
misc_organisation character varying(1000),
is_manager boolean NOT NULL,
is_instructor boolean NOT NULL,
message character varying(10000),
filling_ip_address inet NOT NULL,

rejection_user_id uuid,
rejection_date timestamp with time zone,
rejection_reason character varying(1000)
);
CREATE INDEX account_creation_request_date_idx ON account_creation_request (request_date);
CREATE INDEX account_creation_request_lower_email_idx ON account_creation_request (LOWER(email));

CREATE TABLE account_creation_request_signature (
id uuid PRIMARY KEY,
form_id uuid NOT NULL,
first_name character varying(200) NOT NULL,
last_name character varying(200) NOT NULL,
phone_number character varying(40)
);



--- !Downs

ALTER TABLE "user" DROP COLUMN managing_area_ids;
ALTER TABLE "user" DROP COLUMN managing_organisation_ids;
DROP TABLE account_creation_request_signature;
DROP INDEX account_creation_request_lower_email_idx;
DROP INDEX account_creation_request_date_idx;
DROP TABLE account_creation_request;