Browse Source

fix front-page rounding error bug

Dennis Chen 2 years ago
parent
commit
4f198f7d11

+ 3 - 0
migrations/1517692541_front-page-rounding-error.down.pgsql

@@ -0,0 +1,3 @@
+ALTER TABLE students ALTER COLUMN ar_units TYPE INTEGER;
+ALTER TABLE students ALTER COLUMN hw_units TYPE INTEGER;
+ALTER TABLE students ALTER COLUMN ps_units TYPE INTEGER;

+ 3 - 0
migrations/1517692541_front-page-rounding-error.up.pgsql

@@ -0,0 +1,3 @@
+ALTER TABLE students ALTER COLUMN ar_units TYPE NUMERIC(6, 2);
+ALTER TABLE students ALTER COLUMN hw_units TYPE NUMERIC(6, 2);
+ALTER TABLE students ALTER COLUMN ps_units TYPE NUMERIC(6, 2);