Skip to content

Commit

Permalink
Merge pull request #156 from Carifio24/small-class-15
Browse files Browse the repository at this point in the history
Update small class size from 12 to 15
  • Loading branch information
Carifio24 authored Oct 29, 2024
2 parents d98439b + 7ed6728 commit e7ed9ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/models/class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function initializeClassModel(sequelize: Sequelize) {
allowNull: false,
},
small_class: {
type: "tinyint(1) GENERATED ALWAYS AS (expected_size < 10) VIRTUAL",
type: "tinyint(1) GENERATED ALWAYS AS (expected_size < 15) VIRTUAL",
},
}, {
sequelize,
Expand Down
2 changes: 1 addition & 1 deletion src/sql/create_class_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CREATE TABLE Classes (
test tinyint(1) NOT NULL DEFAULT 0,
updated datetime DEFAULT NULL,
expected_size int(11) UNSIGNED NOT NULL,
small_class tinyint(1) GENERATED ALWAYS AS (expected_size < 12) VIRTUAL,
small_class tinyint(1) GENERATED ALWAYS AS (expected_size < 15) VIRTUAL,

PRIMARY KEY(id),
INDEX(educator_id),
Expand Down

0 comments on commit e7ed9ec

Please sign in to comment.