Skip to content

Commit

Permalink
Change default value of active to be 1 in ClassStories.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carifio24 committed Oct 11, 2024
1 parent 8f27529 commit c1ee285
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 c1ee285

Please sign in to comment.