Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3375192
D4833.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D4833.diff
View Options
diff --git a/keyserver/src/database/db-config.js b/keyserver/src/database/db-config.js
--- a/keyserver/src/database/db-config.js
+++ b/keyserver/src/database/db-config.js
@@ -4,7 +4,7 @@
import { importJSON } from '../utils/import-json';
-type DBType = 'mysql5.7' | 'mariadb10.8';
+type DBType = 'mariadb10.8';
export type DBConfig = {
+host: string,
+user: string,
@@ -14,13 +14,20 @@
};
function assertValidDBType(dbType: ?string): DBType {
- if (!dbType) {
- return 'mysql5.7';
- }
invariant(
- dbType === 'mysql5.7' || dbType === 'mariadb10.8',
- `${dbType} is not a valid dbType`,
+ dbType,
+ 'dbType not specified in DB config. Following the MySQL deprecation this ' +
+ 'is a required parameter. Please follow this Gist to migrate to ' +
+ 'MariaDB: ' +
+ 'https://gist.github.com/Ashoat/3a5ded2549db082c5516606f3c3c5da5',
+ );
+ invariant(
+ dbType !== 'mysql5.7',
+ 'We no longer support MySQL. Please follow this Gist to migrate to ' +
+ 'MariaDB: ' +
+ 'https://gist.github.com/Ashoat/3a5ded2549db082c5516606f3c3c5da5',
);
+ invariant(dbType === 'mariadb10.8', `${dbType} is not a valid dbType`);
return dbType;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 6:50 PM (18 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2591383
Default Alt Text
D4833.diff (1 KB)
Attached To
Mode
D4833: [keyserver] Deprecate MySQL support
Attached
Detach File
Event Timeline
Log In to Comment