From 2f4ec682bfd88c651451d32f292e3f172daa4f11 Mon Sep 17 00:00:00 2001 From: Udo Walter Date: Mon, 17 Sep 2018 18:25:13 +0000 Subject: add ipxe entry and config database migrations and models --- server/migrations/20180917132333-create-entry.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 server/migrations/20180917132333-create-entry.js (limited to 'server/migrations/20180917132333-create-entry.js') diff --git a/server/migrations/20180917132333-create-entry.js b/server/migrations/20180917132333-create-entry.js new file mode 100644 index 0000000..20ed4c3 --- /dev/null +++ b/server/migrations/20180917132333-create-entry.js @@ -0,0 +1,22 @@ +'use strict' +module.exports = { + up: (queryInterface, Sequelize) => { + return queryInterface.createTable('entries', { + id: { + allowNull: false, + autoIncrement: true, + primaryKey: true, + type: Sequelize.INTEGER + }, + name: { + type: Sequelize.STRING + }, + script: { + type: Sequelize.STRING(4096) + } + }) + }, + down: (queryInterface, Sequelize) => { + return queryInterface.dropTable('entries') + } +} -- cgit v1.2.3-55-g7522