-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
527 additions
and
806 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// import local files | ||
import SQLite from '../../server/database/sqlite/setup.js'; | ||
import logger from '../../server/utils/logger.js'; | ||
|
||
const infomation = { | ||
title: 'Removes caching system', | ||
description: | ||
'Removes caching system, and adds column to certificate table for the next check time.', | ||
version: '0.6.5', | ||
breaking: true, | ||
}; | ||
|
||
const migrate = async () => { | ||
const client = await SQLite.connect(); | ||
|
||
await client.schema.alterTable('certificate', (table) => { | ||
table.timestamp('nextCheck').defaultTo(Date.now()); | ||
}); | ||
|
||
logger.info('Migrations', { message: '0.6.5 has been applied' }); | ||
}; | ||
|
||
export { infomation, migrate }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
// import local files | ||
import { migrate as migrateTcpUpdate } from './tcpUpdate-0-4-0.js'; | ||
import { migrate as migrateNotifications } from './notifications-0-6-0.js'; | ||
import { migrate as migrateCache } from './cache-0-6-5.js'; | ||
|
||
const migrationList = { | ||
'0.4.0': migrateTcpUpdate, | ||
'0.6.0': migrateNotifications, | ||
'0.6.5': migrateCache, | ||
}; | ||
|
||
export default migrationList; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.