Kick out pad ID unique constraint, as it was bogus

pull/54/merge
Candid Dauth 2016-10-11 19:47:53 +03:00
rodzic 4994c99b55
commit 38171400f7
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -62,9 +62,9 @@ function _makeNotNullForeignKey(type, field, error) {
/* Pads */
var Pad = conn.define("Pad", {
id : { type: Sequelize.STRING, allowNull: false, unique: "padId", primaryKey: true, validate: { is: /^.+$/ } },
id : { type: Sequelize.STRING, allowNull: false, primaryKey: true, validate: { is: /^.+$/ } },
name: { type: Sequelize.TEXT, allowNull: true, get: function() { return this.getDataValue("name") || "New FacilPad"; } },
writeId: { type: Sequelize.STRING, allowNull: false, unique: "padId", validate: { is: /^.+$/ } }
writeId: { type: Sequelize.STRING, allowNull: false, validate: { is: /^.+$/ } }
});