From c1ee2851cdd1c3370a3fc1f36e8e8ebc436e982d Mon Sep 17 00:00:00 2001
From: Carifio24 <carifio24@gmail.com>
Date: Fri, 11 Oct 2024 13:05:18 -0400
Subject: [PATCH] Change default value of active to be 1 in ClassStories.

---
 src/models/story_class.ts            | 2 +-
 src/sql/create_class_story_table.sql | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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),