fix draft on SQL tests

This commit is contained in:
2019-09-18 01:07:03 +02:00
parent acc6ecf114
commit 93e32caa4c
4 changed files with 7 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ declare
_user_id uuid;
_citizen_id uuid;
created_citizen json := '{"name": {"first_name":"George", "last_name":"MICHEL"}, "birthday": "2001-01-01"}';
created_article json := '{"version_id":"933b6a1b-50c9-42b6-989f-c02a57814ef9", "title": "Love the world", "anonymous": false, "content": "bla bal bla", "tags": ["love", "test"]}';
created_article json := '{"version_id":"933b6a1b-50c9-42b6-989f-c02a57814ef9", "title": "Love the world", "anonymous": false, "content": "bla bal bla", "tags": ["love", "test"], "draft":false}';
created_article_v2 json;
first_article_id uuid;
second_article_id uuid;

View File

@@ -22,7 +22,8 @@ declare
"tags": [
"love",
"test"
]
],
"draft":false
}
$json$;
_comment_id uuid;

View File

@@ -22,7 +22,8 @@ declare
"tags": [
"love",
"test"
]
],
"draft":false
}
$json$;
created_constitution json := $json$

View File

@@ -21,7 +21,8 @@ declare
"tags": [
"love",
"test"
]
],
"draft":false
}
$json$;
votes jsonb;