aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorBonfaceKilz2021-06-07 19:44:00 +0300
committerBonfaceKilz2021-06-07 19:58:44 +0300
commita364496e9884e46080844bd3eddb2b52d6ed9164 (patch)
treeacc173670ff8547281395aa829634b00569da497 /sql
parent284e7aba7860783cec271471fd2c6f0078805965 (diff)
downloadgenenetwork3-a364496e9884e46080844bd3eddb2b52d6ed9164.tar.gz
Rename json_data column to json_diff_data
Diffstat (limited to 'sql')
-rw-r--r--sql/metadata_audit.sql12
1 files changed, 6 insertions, 6 deletions
diff --git a/sql/metadata_audit.sql b/sql/metadata_audit.sql
index 9771e74..514a2fc 100644
--- a/sql/metadata_audit.sql
+++ b/sql/metadata_audit.sql
@@ -20,10 +20,10 @@
-- This table stores data on diffs when editing a Published dataset's data
CREATE TABLE metadata_audit (
PRIMARY KEY (id),
- id INTEGER AUTO_INCREMENT NOT NULL,
- dataset_id INTEGER NOT NULL,
- editor VARCHAR(255) NOT NULL,
- json_data VARCHAR(2048) NOT NULL,
- time_stamp timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL,
- CHECK (JSON_VALID(json_data))
+ id INTEGER AUTO_INCREMENT NOT NULL,
+ dataset_id INTEGER NOT NULL,
+ editor VARCHAR(255) NOT NULL,
+ json_diff_data VARCHAR(2048) NOT NULL,
+ time_stamp timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL,
+ CHECK (JSON_VALID(json_diff_data))
);