Overview
Comment: | possibilité d'indiquer si un fichier est une image, ça simplifiera les galeries dans le wiki |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
6ea3fe6cbb332a5c547159cad05d0ad5 |
User & Date: | bohwaz on 2015-02-04 02:48:11 |
Other Links: | manifest | tags |
Context
2015-02-04
| ||
06:28 | Unification/simplification du Javascript check-in: 9c55662f07 user: bohwaz tags: trunk | |
02:48 | possibilité d'indiquer si un fichier est une image, ça simplifiera les galeries dans le wiki check-in: 6ea3fe6cbb user: bohwaz tags: trunk | |
02:47 | Corrections pour SkrivML + ouverture pop-up images et fichiers (wiki) check-in: f5a5566aa7 user: bohwaz tags: trunk | |
Changes
Modified src/include/data/0.7.0.sql from [6994f75ee3] to [17a1af7af0].
︙ | ︙ | |||
9 10 11 12 13 14 15 16 17 18 19 20 21 22 | CREATE TABLE fichiers -- Données sur les fichiers ( id INTEGER NOT NULL PRIMARY KEY, nom TEXT NOT NULL, -- nom de fichier (par exemple image1234.jpeg) type TEXT NOT NULL, -- Type MIME titre TEXT NOT NULL, -- Titre/description date TEXT NOT NULL DEFAULT CURRENT_DATE, -- Date d'ajout ou mise à jour du fichier hash TEXT NOT NULL, -- Hash SHA1 du contenu du fichier taille INTEGER NOT NULL -- Taille en octets ); CREATE UNIQUE INDEX fichiers_hash ON fichiers (hash); | > | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | CREATE TABLE fichiers -- Données sur les fichiers ( id INTEGER NOT NULL PRIMARY KEY, nom TEXT NOT NULL, -- nom de fichier (par exemple image1234.jpeg) type TEXT NOT NULL, -- Type MIME image INTEGER NOT NULL DEFAULT 0, -- 1 = image reconnue titre TEXT NOT NULL, -- Titre/description date TEXT NOT NULL DEFAULT CURRENT_DATE, -- Date d'ajout ou mise à jour du fichier hash TEXT NOT NULL, -- Hash SHA1 du contenu du fichier taille INTEGER NOT NULL -- Taille en octets ); CREATE UNIQUE INDEX fichiers_hash ON fichiers (hash); |
︙ | ︙ | |||
30 31 32 33 34 35 36 | contenu BLOB ); CREATE TABLE fichiers_membres -- Associations entre fichiers et membres (photo de profil par exemple) ( fichier INTEGER NOT NULL REFERENCES fichiers (id), | | > | > | > | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | contenu BLOB ); CREATE TABLE fichiers_membres -- Associations entre fichiers et membres (photo de profil par exemple) ( fichier INTEGER NOT NULL REFERENCES fichiers (id), id INTEGER NOT NULL REFERENCES membres (id), PRIMARY KEY(fichier, id) ); CREATE TABLE fichiers_wiki_pages -- Associations entre fichiers et pages du wiki ( fichier INTEGER NOT NULL REFERENCES fichiers (id), id INTEGER NOT NULL REFERENCES wiki_pages (id), PRIMARY KEY(fichier, id) ); CREATE TABLE fichiers_compta_journal -- Associations entre fichiers et journal de compta (pièce comptable par exemple) ( fichier INTEGER NOT NULL REFERENCES fichiers (id), id INTEGER NOT NULL REFERENCES compta_journal (id), PRIMARY KEY(fichier, id) ); |
Modified src/include/data/schema.sql from [290e3776d4] to [55e42ab66a].
︙ | ︙ | |||
320 321 322 323 324 325 326 | ( signal TEXT NOT NULL, plugin TEXT NOT NULL REFERENCES plugins (id), callback TEXT NOT NULL, PRIMARY KEY (signal, plugin) ); | < > | 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 | ( signal TEXT NOT NULL, plugin TEXT NOT NULL REFERENCES plugins (id), callback TEXT NOT NULL, PRIMARY KEY (signal, plugin) ); CREATE TABLE fichiers -- Données sur les fichiers ( id INTEGER NOT NULL PRIMARY KEY, nom TEXT NOT NULL, -- nom de fichier (par exemple image1234.jpeg) type TEXT NOT NULL, -- Type MIME image INTEGER NOT NULL DEFAULT 0, -- 1 = image reconnue titre TEXT NOT NULL, -- Titre/description date TEXT NOT NULL DEFAULT CURRENT_DATE, -- Date d'ajout ou mise à jour du fichier hash TEXT NOT NULL, -- Hash SHA1 du contenu du fichier taille INTEGER NOT NULL -- Taille en octets ); CREATE UNIQUE INDEX fichiers_hash ON fichiers (hash); |
︙ | ︙ | |||
348 349 350 351 352 353 354 | contenu BLOB ); CREATE TABLE fichiers_membres -- Associations entre fichiers et membres (photo de profil par exemple) ( fichier INTEGER NOT NULL REFERENCES fichiers (id), | | > | > | > | 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 | contenu BLOB ); CREATE TABLE fichiers_membres -- Associations entre fichiers et membres (photo de profil par exemple) ( fichier INTEGER NOT NULL REFERENCES fichiers (id), id INTEGER NOT NULL REFERENCES membres (id), PRIMARY KEY(fichier, id) ); CREATE TABLE fichiers_wiki_pages -- Associations entre fichiers et pages du wiki ( fichier INTEGER NOT NULL REFERENCES fichiers (id), id INTEGER NOT NULL REFERENCES wiki_pages (id), PRIMARY KEY(fichier, id) ); CREATE TABLE fichiers_compta_journal -- Associations entre fichiers et journal de compta (pièce comptable par exemple) ( fichier INTEGER NOT NULL REFERENCES fichiers (id), id INTEGER NOT NULL REFERENCES compta_journal (id), PRIMARY KEY(fichier, id) ); |