GladysProject/Gladys

View on GitHub
server/migrations/20201220100508-service-remove-not-configured-status.js

Summary

Maintainability
A
0 mins
Test Coverage
const db = require('../models');

module.exports = {
  up: async () => {
    await db.Service.update(
      {
        status: 'RUNNING',
      },
      {
        where: {
          status: ['NOT_CONFIGURED', 'STOPPED'],
        },
      },
    );
  },
  down: async () => {},
};