summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2018-08-22 18:44:05 +0200
committerMatthew Hodgson <matthew@matrix.org>2018-08-22 18:44:05 +0200
commit3a46874407521c79c8355e0465cf9d6ca520feeb (patch)
treeec36ff231de066d21e716b0c224bd67c7ccda7bd
parentchangelog (diff)
downloadsynapse-3a46874407521c79c8355e0465cf9d6ca520feeb.tar.xz
add default for first_active column
-rw-r--r--synapse/storage/schema/delta/52/free_mau.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/schema/delta/52/free_mau.sql b/synapse/storage/schema/delta/52/free_mau.sql
index c7b1d17fcc..2dae3087cc 100644
--- a/synapse/storage/schema/delta/52/free_mau.sql
+++ b/synapse/storage/schema/delta/52/free_mau.sql
@@ -13,6 +13,6 @@
  * limitations under the License.
  */
 
-ALTER TABLE monthly_active_users ADD COLUMN first_active BIGINT NOT NULL;
+ALTER TABLE monthly_active_users ADD COLUMN first_active BIGINT DEFAULT 0 NOT NULL;
 
 CREATE INDEX monthly_active_users_first_active ON monthly_active_users(first_active);