mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 07:33:17 +00:00
Group supportX functions
This commit is contained in:
parent
25507f8328
commit
ce6143790c
@ -29,6 +29,10 @@ class Dialect {
|
||||
return false;
|
||||
}
|
||||
|
||||
supportsWindowRowNumber() {
|
||||
return true;
|
||||
}
|
||||
|
||||
async startSchemaUpdate() {
|
||||
// noop
|
||||
}
|
||||
@ -48,10 +52,6 @@ class Dialect {
|
||||
canAddIncrements() {
|
||||
return true;
|
||||
}
|
||||
|
||||
supportsWindowRowNumber() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
@ -65,10 +65,6 @@ class MysqlDialect extends Dialect {
|
||||
return true;
|
||||
}
|
||||
|
||||
usesForeignKeys() {
|
||||
return true;
|
||||
}
|
||||
|
||||
supportsWindowRowNumber() {
|
||||
const isMysqlDB = !this.info.database || this.info.database === MYSQL;
|
||||
const isBeforeV8 = !semver.valid(this.info.version) || semver.lt(this.info.version, '8.0.0');
|
||||
@ -80,6 +76,10 @@ class MysqlDialect extends Dialect {
|
||||
return true;
|
||||
}
|
||||
|
||||
usesForeignKeys() {
|
||||
return true;
|
||||
}
|
||||
|
||||
transformErrors(error) {
|
||||
super.transformErrors(error);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user