QA: Add new script to migrate QA content from a DB to another

This commit is contained in:
nemunaire 2021-02-05 16:56:27 +01:00
commit f4dcaa23a3
8 changed files with 208 additions and 9 deletions

View file

@ -422,7 +422,7 @@ CREATE TABLE IF NOT EXISTS claim_descriptions(
CREATE TABLE IF NOT EXISTS exercices_qa(
id_qa INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
id_exercice INTEGER NOT NULL,
id_team INTEGER NOT NULL,
id_team INTEGER NULL,
authuser VARCHAR(255) NOT NULL,
subject VARCHAR(255) NOT NULL,
creation TIMESTAMP NOT NULL,
@ -439,7 +439,7 @@ CREATE TABLE IF NOT EXISTS exercices_qa(
CREATE TABLE IF NOT EXISTS qa_comments(
id_comment INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
id_qa INTEGER NOT NULL,
id_team INTEGER NOT NULL,
id_team INTEGER NULL,
authuser VARCHAR(255) NOT NULL,
date TIMESTAMP NOT NULL,
content TEXT NOT NULL,