Cambiado postal_core -> postal_code

This commit is contained in:
David Arranz 2019-07-13 10:45:35 +02:00
parent bd5e2b2c35
commit 31a1110ca6
3 changed files with 5 additions and 4 deletions

View File

@ -28,7 +28,7 @@ module.exports = function (sequelize, DataTypes) {
state: {
type: DataTypes.STRING,
},
postal_core: {
postal_code: {
type: DataTypes.STRING,
},
accessibility: {
@ -38,7 +38,8 @@ module.exports = function (sequelize, DataTypes) {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: 1,
},
},
}, {
tableName: 'venues',
freezeTableName: true,

View File

@ -8,7 +8,7 @@ const VenueInputType = Joi.object().keys({
description: Joi.string().optional(),
country: Joi.string().optional(),
state: Joi.string().optional(),
postal_core: Joi.string().optional(),
postal_code: Joi.string().optional(),
accessibility: Joi.string().optional()
});
/*

View File

@ -832,7 +832,7 @@ CREATE TABLE `venues` (
`city` varchar(255) NOT NULL,
`country` varchar(255) DEFAULT NULL,
`state` varchar(255) DEFAULT NULL,
`postal_core` varchar(255) DEFAULT NULL,
`postal_code` varchar(255) DEFAULT NULL,
`accessibility` varchar(255) DEFAULT NULL,
`gmt` int(11) NOT NULL DEFAULT '1',
`createdAt` datetime NOT NULL,