Skip to content

Commit

Permalink
Merge pull request #148 from Carifio24/active-by-default
Browse files Browse the repository at this point in the history
Change stories to be active by default when associated with a class
  • Loading branch information
Carifio24 authored Oct 11, 2024
2 parents 8f27529 + c1ee285 commit 4dcffbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/models/story_class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function initializeClassStoryModel(sequelize: Sequelize) {
active: {
type: DataTypes.TINYINT,
allowNull: false,
defaultValue: 0,
defaultValue: 1,
}
}, {
sequelize,
Expand Down
2 changes: 1 addition & 1 deletion src/sql/create_class_story_table.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CREATE TABLE ClassStories (
class_id int(11) UNSIGNED NOT NULL,
story_name varchar(50) NOT NULL,
active tinyint(2) NOT NULL DEFAULT 0,
active tinyint(2) NOT NULL DEFAULT 1,

PRIMARY KEY(class_id, story_name),
INDEX(class_id),
Expand Down

0 comments on commit 4dcffbd

Please sign in to comment.