#1480: V7.3.1.2__7.3.1.2-RELEASE-WebAuthn.sql
projectforge-business/src/main/resources/flyway/migrate/common/V7.3.1.2__7.3.1.2-RELEASE-WebAuthn.sql Tipo: Migración SQL Flyway · Base de datos: Común · Fuente: projectforge-business/src/main/resources/flyway/migrate/common/V7.3.1.2__7.3.1.2-RELEASE-WebAuthn.sql 24 líneas · 20 código · 0 comentarios · 4 en blanco
Script de migración de base de datos Flyway para Común. Contiene sentencias SQL DDL/DML para la evolución del esquema.
Cambios en el esquema
CREATE TABLE T_USER_WEBAUTHN
Alteraciones de tabla
ALTER TABLE T_USER_WEBAUTHN
ALTER TABLE T_USER_WEBAUTHN
Contenido SQL
-- Tokens WebAuthn
CREATE TABLE T_USER_WEBAUTHN (
pk INTEGER NOT NULL,
created TIMESTAMP SIN ZONA HORARIA,
last_update TIMESTAMP SIN ZONA HORARIA,
owner_fk INTEGER,
credential_id CHARACTER VARYING(4000),
display_name CHARACTER VARYING(1000),
attested_credential_data CHARACTER VARYING(10000),
attestation_statement CHARACTER VARYING(10000),
sign_count INTEGER
);
ALTER TABLE T_USER_WEBAUTHN
ADD CONSTRAINT t_user_webauthn_pkey PRIMARY KEY (pk);
ALTER TABLE T_USER_WEBAUTHN
ADD CONSTRAINT unique_t_user_webauthn_uid_credential UNIQUE (owner_fk, credential_id);
CREATE INDEX idx_fk_t_user_webauthn_fk
ON T_USER_WEBAUTHN (owner_fk);
CREATE INDEX idx_t_user_webauthn_user_credential
ON T_USER_WEBAUTHN (owner_fk, credential_id);
Historial de Git
990e08d8f WIP: WebAuthn: Persistencia en base de datos