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

Production update to db.sql due to MariaDB upgrade #37

Merged
merged 1 commit into from
Sep 2, 2022

Conversation

jgonggrijp
Copy link
Member

@jgonggrijp jgonggrijp commented Aug 26, 2022

This change reflects formatting, version and state changes to the db.sql that occurred on the production server. It is the first commit of #33. Merging this will bring master closer to what's running in production.

`DialogName` varchar(200) NOT NULL DEFAULT '',
`LanguageCode` char(2) NOT NULL DEFAULT '',
`DialogText` text,
`DialogType` smallint(6) NOT NULL DEFAULT '0',
`DialogText` text DEFAULT NULL,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually not just a change due to a MariaDB upgrade. It seems to stand by itself, possibly some kind of bugfix.

conf/db.sql Outdated Show resolved Hide resolved
@mikedlr mikedlr requested a review from eegeeZA August 28, 2022 13:37
@mikedlr
Copy link
Member

mikedlr commented Aug 28, 2022

Generally happy with this patch - most of the changes are just due to MySQL dumping integers rather than strings equivalent to integers which is better SQL anyway. The other ones I noticed are obvious improved defaults. Recommend merge ASAP.

`ExpireTime` bigint(20) unsigned DEFAULT NULL,
PRIMARY KEY (`EmailID`),
KEY `UserID` (`UserID`,`Word`,`Count`),
KEY `Word` (`Word`)
) ENGINE=MyISAM AUTO_INCREMENT=8443939 DEFAULT CHARSET=latin1;
) ENGINE=MyISAM AUTO_INCREMENT=9212076 DEFAULT CHARSET=latin1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This new number seems related to the existing dataset size instead of being required to recreate the DB. While it is fine to start the next EmailID at 9212076 this change (and some future point, this line) can be ommitted. That said, there is no harm in keeping this change for preserving the changes.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(similar comment for other occurences)

@jgonggrijp jgonggrijp changed the title Production update to db.dql due to MariaDB upgrade Production update to db.sql due to MariaDB upgrade Sep 2, 2022
@jgonggrijp jgonggrijp merged commit 8b99625 into spamgourmet:master Sep 2, 2022
@jgonggrijp jgonggrijp deleted the update-mariadb branch September 2, 2022 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants