refactor(ooniprobe): migrate database to internal (#979)
See https://github.com/ooni/probe/issues/2352 Co-authored-by: decfox <decfox@github.com> Co-authored-by: Simone Basso <bassosimone@gmail.com>
This commit is contained in:
parent
d6def35286
commit
6b01264373
20 changed files with 53 additions and 56 deletions
15
internal/database/migrations/3_results_is_uploaded.sql
Normal file
15
internal/database/migrations/3_results_is_uploaded.sql
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
-- +migrate Down
|
||||
-- +migrate StatementBegin
|
||||
|
||||
ALTER TABLE `results`
|
||||
DROP COLUMN result_is_uploaded;
|
||||
|
||||
-- +migrate StatementEnd
|
||||
|
||||
-- +migrate Up
|
||||
-- +migrate StatementBegin
|
||||
|
||||
ALTER TABLE `results`
|
||||
ADD COLUMN result_is_uploaded TINYINT(1) DEFAULT 1 NOT NULL;
|
||||
|
||||
-- +migrate StatementEnd
|
||||
Loading…
Reference in a new issue