Import initial de Vivier depuis l'hebergement OVH
This commit is contained in:
commit
839e5e57c5
126 files changed
+22447
No files matched your search
@@ -0,0 +1,22 @@
|
||||
-- Vivier : passage d'une base 1.2 à 1.3
|
||||
-- Photos des candidats, langue de l'interface par compte, traductions des profils.
|
||||
-- À exécuter une seule fois dans phpMyAdmin.
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
|
||||
ALTER TABLE utilisateurs ADD COLUMN langue CHAR(2) NOT NULL DEFAULT 'fr' AFTER derniere_connexion;
|
||||
ALTER TABLE candidats ADD COLUMN photo VARCHAR(100) NULL AFTER texte_recherche;
|
||||
|
||||
CREATE TABLE traductions (
|
||||
candidat_id INT UNSIGNED NOT NULL,
|
||||
langue CHAR(2) NOT NULL,
|
||||
contenu JSON NOT NULL,
|
||||
empreinte CHAR(40) CHARACTER SET ascii NOT NULL,
|
||||
origine ENUM('automatique','fichier') NOT NULL,
|
||||
cree_par INT UNSIGNED NOT NULL,
|
||||
cree_le DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (candidat_id, langue),
|
||||
CONSTRAINT fk_trad_candidat FOREIGN KEY (candidat_id) REFERENCES candidats(id) ON DELETE CASCADE,
|
||||
CONSTRAINT fk_trad_utilisateur FOREIGN KEY (cree_par) REFERENCES utilisateurs(id)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
Reference in new issue
Block a user