]> git.openstreetmap.org Git - rails.git/blobdiff - db/structure.sql
Adjust for rails5 convention on migrations.
[rails.git] / db / structure.sql
index be0603e6ea299927e23c3b2140ccdbb39fd1ee5f..7888d8a9cfde10976355e1862ae1f5b422fb9381 100644 (file)
@@ -691,11 +691,11 @@ ALTER SEQUENCE gpx_files_id_seq OWNED BY gpx_files.id;
 
 CREATE TABLE issue_comments (
     id integer NOT NULL,
-    issue_id integer,
-    commenter_user_id integer,
-    body text,
-    created_at timestamp without time zone NOT NULL,
+    issue_id integer NOT NULL,
+    commenter_user_id integer NOT NULL,
+    body text NOT NULL,
     reassign boolean,
+    created_at timestamp without time zone NOT NULL,
     updated_at timestamp without time zone NOT NULL
 );
 
@@ -732,10 +732,10 @@ CREATE TABLE issues (
     issue_type character varying,
     resolved_at timestamp without time zone,
     resolved_by integer,
+    updated_by integer,
     created_at timestamp without time zone NOT NULL,
     updated_at timestamp without time zone NOT NULL,
-    updated_by integer,
-    report_count integer DEFAULT 0
+    reports_count integer DEFAULT 0
 );