Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change stories to be active by default when associated with a class #148

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading