]> git.openstreetmap.org Git - rails.git/blobdiff - db/structure.sql
Combine migrations into one
[rails.git] / db / structure.sql
index be0603e6ea299927e23c3b2140ccdbb39fd1ee5f..a4a6ff6c728fbf1e0dd5bd50c05e33f04e9f7ecf 100644 (file)
@@ -691,11 +691,10 @@ 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,
+    issue_id integer NOT NULL,
+    commenter_user_id integer NOT NULL,
+    body text NOT NULL,
     created_at timestamp without time zone NOT NULL,
-    reassign boolean,
     updated_at timestamp without time zone NOT NULL
 );
 
@@ -732,10 +731,10 @@ CREATE TABLE issues (
     issue_type character varying,
     resolved_at timestamp without time zone,
     resolved_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,
+    created_at timestamp without time zone NOT NULL,
+    updated_at timestamp without time zone NOT NULL
 );
 
 
@@ -1067,7 +1066,7 @@ CREATE TABLE reports (
     id integer NOT NULL,
     issue_id integer,
     reporter_user_id integer,
-    details text,
+    details text NOT NULL,
     created_at timestamp without time zone NOT NULL,
     updated_at timestamp without time zone NOT NULL
 );
@@ -2831,8 +2830,6 @@ INSERT INTO "schema_migrations" (version) VALUES
 ('20150222101847'),
 ('20150818224516'),
 ('20160822153055'),
-('20160822153115'),
-('20160822153153'),
 ('20161002153425'),
 ('20161011010929'),
 ('20170222134109'),