]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/application.js
Server: add video abuse support
[github/Chocobozzz/PeerTube.git] / server / models / application.js
index 4114ed76de12b10981994646aee0cdaa4ca6700c..46dcfde33bf88fb3103db5b0ef80709ed1e1c8e4 100644 (file)
@@ -1,9 +1,15 @@
+'use strict'
+
 module.exports = function (sequelize, DataTypes) {
   const Application = sequelize.define('Application',
     {
       migrationVersion: {
         type: DataTypes.INTEGER,
-        defaultValue: 0
+        defaultValue: 0,
+        allowNull: false,
+        validate: {
+          isInt: true
+        }
       }
     },
     {