summaryrefslogtreecommitdiffstats
path: root/server/migrations/20180917132333-create-entry.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/migrations/20180917132333-create-entry.js')
-rw-r--r--server/migrations/20180917132333-create-entry.js22
1 files changed, 22 insertions, 0 deletions
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')
+ }
+}