diff --git a/src/models/story_class.ts b/src/models/story_class.ts index cecf283..1e187a2 100644 --- a/src/models/story_class.ts +++ b/src/models/story_class.ts @@ -31,7 +31,7 @@ export function initializeClassStoryModel(sequelize: Sequelize) { active: { type: DataTypes.TINYINT, allowNull: false, - defaultValue: 0, + defaultValue: 1, } }, { sequelize, diff --git a/src/sql/create_class_story_table.sql b/src/sql/create_class_story_table.sql index dc48c09..43fd35b 100644 --- a/src/sql/create_class_story_table.sql +++ b/src/sql/create_class_story_table.sql @@ -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),