Commit 99c74d5c authored by Ivanq's avatar Ivanq

Add 'reopened' column to 'issues' table

parent afa2422e
......@@ -33,10 +33,11 @@
["body", "TEXT"],
["date_added", "INTEGER"],
["open", "INTEGER"],
["reopened", "INTEGER"],
["json_id", "INTEGER REFERENCES json (json_id)"]
],
"indexes": ["CREATE UNIQUE INDEX issues_key ON issues(json_id, id)"],
"schema_changed": 1
"schema_changed": 2
},
"issue_comments": {
"cols": [
......
......@@ -142,7 +142,8 @@ class Repository {
title: title,
body: content,
date_added: Date.now(),
open: 1
open: 1,
reopened: 0
},
{
source: "next_issue_id",
......@@ -230,8 +231,7 @@ class Repository {
issue_id: issueId,
issue_json_id: issueJsonId,
body: content,
date_added: Date.now(),
open: 1
date_added: Date.now()
},
{
source: "next_issue_comment_id",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment