| 1234567891011121314151617181920212223242526272829303132333435 |
- 'use strict'
- module.exports = {
- up: (queryInterface, Sequelize) => {
- return queryInterface.createTable('sites', {
- id: {
- primaryKey: true,
- autoIncrement: true,
- type: Sequelize.BIGINT.UNSIGNED
- },
- name: {
- allowNull: false,
- type: Sequelize.STRING(20)
- }
- })
- /*
- Add altering commands here.
- Return a promise to correctly handle asynchronicity.
- Example:
- return queryInterface.createTable('users', { id: Sequelize.INTEGER });
- */
- },
- down: (queryInterface, Sequelize) => {
- /*
- Add reverting commands here.
- Return a promise to correctly handle asynchronicity.
- Example:
- return queryInterface.dropTable('users');
- */
- }
- }
|