mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
fix merge
This commit is contained in:
parent
26a9ed2b67
commit
2ce690addc
@ -41,16 +41,6 @@ async function convertJsToTsInMigrations(connection: Connection): Promise<number
|
||||
return result.affectedRows
|
||||
}
|
||||
|
||||
async function convertJsToTsInMigrations(connection: Connection): Promise<number> {
|
||||
const [result] = await connection.query<ResultSetHeader>(`
|
||||
UPDATE ${CONFIG.MIGRATIONS_TABLE}
|
||||
SET fileName = REPLACE(fileName, '.js', '.ts')
|
||||
WHERE fileName LIKE '%.js'
|
||||
`)
|
||||
|
||||
return result.affectedRows
|
||||
}
|
||||
|
||||
export const getDatabaseState = async (): Promise<DatabaseState> => {
|
||||
const connection = await connectToDatabaseServer()
|
||||
if (!connection) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user