Skip to content

Commit

Permalink
adds proper reference models for tablenames
Browse files Browse the repository at this point in the history
  • Loading branch information
jhmullen authored and davelandry committed Mar 8, 2019
1 parent 8167b5b commit e74f704
Show file tree
Hide file tree
Showing 29 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion packages/cms/src/db/author.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = function(sequelize, db) {
type: db.INTEGER,
onDelete: "cascade",
references: {
model: "story",
model: "canon_cms_story",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/author_content.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function(sequelize, db) {
primaryKey: true,
onDelete: "cascade",
references: {
model: "author",
model: "canon_cms_author",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = function(sequelize, db) {
type: db.INTEGER,
onDelete: "cascade",
references: {
model: "profile",
model: "canon_cms_profile",
key: "id"
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/materializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = function(sequelize, db) {
type: db.INTEGER,
onDelete: "cascade",
references: {
model: "profile",
model: "canon_cms_profile",
key: "id"
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/profile_content.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function(sequelize, db) {
primaryKey: true,
onDelete: "cascade",
references: {
model: "profile",
model: "canon_cms_profile",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = function(sequelize, db) {
type: db.INTEGER,
onDelete: "cascade",
references: {
model: "topic",
model: "canon_cms_topic",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/story_content.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function(sequelize, db) {
primaryKey: true,
onDelete: "cascade",
references: {
model: "story",
model: "canon_cms_story",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/story_description.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = function(sequelize, db) {
type: db.INTEGER,
onDelete: "cascade",
references: {
model: "story",
model: "canon_cms_story",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/story_description_content.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function(sequelize, db) {
primaryKey: true,
onDelete: "cascade",
references: {
model: "story_description",
model: "canon_cms_story_description",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/story_footnote.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = function(sequelize, db) {
type: db.INTEGER,
onDelete: "cascade",
references: {
model: "story",
model: "canon_cms_story",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/story_footnote_content.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function(sequelize, db) {
primaryKey: true,
onDelete: "cascade",
references: {
model: "story_footnote",
model: "canon_cms_story_footnote",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/storytopic.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function(sequelize, db) {
type: db.INTEGER,
onDelete: "cascade",
references: {
model: "story",
model: "canon_cms_story",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/storytopic_content.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function(sequelize, db) {
primaryKey: true,
onDelete: "cascade",
references: {
model: "storytopic",
model: "canon_cms_storytopic",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/storytopic_description.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = function(sequelize, db) {
type: db.INTEGER,
onDelete: "cascade",
references: {
model: "storytopic",
model: "canon_cms_storytopic",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/storytopic_description_content.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function(sequelize, db) {
primaryKey: true,
onDelete: "cascade",
references: {
model: "storytopic_description",
model: "canon_cms_storytopic_description",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/storytopic_stat.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = function(sequelize, db) {
type: db.INTEGER,
onDelete: "cascade",
references: {
model: "storytopic",
model: "canon_cms_storytopic",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/storytopic_stat_content.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function(sequelize, db) {
primaryKey: true,
onDelete: "cascade",
references: {
model: "storytopic_stat",
model: "canon_cms_storytopic_stat",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/storytopic_subtitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = function(sequelize, db) {
type: db.INTEGER,
onDelete: "cascade",
references: {
model: "storytopic",
model: "canon_cms_storytopic",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/storytopic_subtitle_content.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function(sequelize, db) {
primaryKey: true,
onDelete: "cascade",
references: {
model: "storytopic_subtitle",
model: "canon_cms_storytopic_subtitle",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/storytopic_visualization.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function(sequelize, db) {
type: db.INTEGER,
onDelete: "cascade",
references: {
model: "storytopic",
model: "canon_cms_storytopic",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/topic.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function(sequelize, db) {
type: db.INTEGER,
onDelete: "cascade",
references: {
model: "profile",
model: "canon_cms_profile",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/topic_content.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function(sequelize, db) {
primaryKey: true,
onDelete: "cascade",
references: {
model: "topic",
model: "canon_cms_topic",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/topic_description.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = function(sequelize, db) {
type: db.INTEGER,
onDelete: "cascade",
references: {
model: "topic",
model: "canon_cms_topic",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/topic_description_content.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function(sequelize, db) {
primaryKey: true,
onDelete: "cascade",
references: {
model: "topic_description",
model: "canon_cms_topic_description",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/topic_stat.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = function(sequelize, db) {
type: db.INTEGER,
onDelete: "cascade",
references: {
model: "topic",
model: "canon_cms_topic",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/topic_stat_content.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function(sequelize, db) {
primaryKey: true,
onDelete: "cascade",
references: {
model: "topic_stat",
model: "canon_cms_topic_stat",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/topic_subtitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = function(sequelize, db) {
type: db.INTEGER,
onDelete: "cascade",
references: {
model: "topic",
model: "canon_cms_topic",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/topic_subtitle_content.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function(sequelize, db) {
primaryKey: true,
onDelete: "cascade",
references: {
model: "topic_subtitle",
model: "canon_cms_topic_subtitle",
key: "id"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/src/db/topic_visualization.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function(sequelize, db) {
type: db.INTEGER,
onDelete: "cascade",
references: {
model: "topic",
model: "canon_cms_topic",
key: "id"
}
},
Expand Down

0 comments on commit e74f704

Please sign in to comment.