kopia lustrzana https://github.com/FacilMap/facilmap
Kick out pad ID unique constraint, as it was bogus
rodzic
4994c99b55
commit
38171400f7
|
@ -62,9 +62,9 @@ function _makeNotNullForeignKey(type, field, error) {
|
||||||
/* Pads */
|
/* Pads */
|
||||||
|
|
||||||
var Pad = conn.define("Pad", {
|
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"; } },
|
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: /^.+$/ } }
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue