Corriger les dossiers animaux et le suivi médical
This commit is contained in:
parent
a55d27935f
commit
7b89fd5dfa
34 changed files with 440 additions and 39 deletions
17
migrations/098_medical_catalogs_and_test_date.sql
Normal file
17
migrations/098_medical_catalogs_and_test_date.sql
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
ALTER TABLE animals ADD COLUMN fiv_felv_test_date TEXT;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS ref_vaccine_manufacturers (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
name TEXT NOT NULL COLLATE NOCASE UNIQUE,
|
||||
active INTEGER NOT NULL DEFAULT 1 CHECK(active IN (0,1)),
|
||||
created_at TEXT NOT NULL DEFAULT (datetime('now')),
|
||||
updated_at TEXT NOT NULL DEFAULT (datetime('now'))
|
||||
);
|
||||
|
||||
INSERT OR IGNORE INTO ref_vaccine_manufacturers(name) VALUES
|
||||
('Boehringer Ingelheim'),
|
||||
('Ceva Santé Animale'),
|
||||
('Elanco'),
|
||||
('MSD Santé Animale'),
|
||||
('Virbac'),
|
||||
('Zoetis');
|
||||
Loading…
Reference in a new issue