mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-27 11:32:19 +00:00
Move all old db patch files to db/old_migrations/
This commit is contained in:
parent
e26abc3156
commit
ccc39b9516
47 changed files with 7 additions and 3 deletions
db/old_migrations
README.mdpatch-2fa-invalidate-used-token.sqlpatch-2fa.sqlpatch-add-clickable-status-page-link.sqlpatch-add-description-monitor.sqlpatch-add-docker-columns.sqlpatch-add-gamedig-monitor.sqlpatch-add-google-analytics-status-page-tag.sqlpatch-add-other-auth.sqlpatch-add-parent-monitor.sqlpatch-add-radius-monitor.sqlpatch-add-retry-interval-monitor.sqlpatch-add-sqlserver-monitor.sqlpatch-added-mqtt-monitor.sqlpatch-api-key-table.sqlpatch-group-table.sqlpatch-grpc-monitor.sqlpatch-http-body-encoding.sqlpatch-http-monitor-method-body-and-headers.sqlpatch-improve-performance.sqlpatch-incident-table.sqlpatch-maintenance-cron.sqlpatch-maintenance-table2.sqlpatch-monitor-add-resend-interval.sqlpatch-monitor-basic-auth.sqlpatch-monitor-expiry-notification.sqlpatch-monitor-push_token.sqlpatch-monitor-tls.sqlpatch-notification_sent_history.sqlpatch-ping-packet-size.sqlpatch-proxy.sqlpatch-setting-value-type.sqlpatch-status-page-footer-css.sqlpatch-status-page.sqlpatch1.sqlpatch10.sqlpatch2.sqlpatch3.sqlpatch4.sqlpatch5.sqlpatch6.sqlpatch7.sqlpatch8.sqlpatch9.sql
docker
server
src/lang
3
db/old_migrations/README.md
Normal file
3
db/old_migrations/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Don't create a new migration file here
|
||||
|
||||
Please go to ./db/knex_migrations/README.md
|
|
@ -7,6 +7,7 @@ services:
|
|||
volumes:
|
||||
#- ./data:/app/data
|
||||
- ../server:/app/server
|
||||
- ../db:/app/db
|
||||
ports:
|
||||
- "3001:3001" # <Host Port>:<Container Port>
|
||||
- "3307:3306"
|
||||
|
|
|
@ -356,7 +356,7 @@ class Database {
|
|||
// Try catch anything here
|
||||
try {
|
||||
for (let i = version + 1; i <= this.latestVersion; i++) {
|
||||
const sqlFile = `./db/patch${i}.sql`;
|
||||
const sqlFile = `./db/old_migrations/patch${i}.sql`;
|
||||
log.info("db", `Patching ${sqlFile}`);
|
||||
await Database.importSQLFile(sqlFile);
|
||||
log.info("db", `Patched ${sqlFile}`);
|
||||
|
@ -515,7 +515,7 @@ class Database {
|
|||
|
||||
log.info("db", sqlFilename + " is patching");
|
||||
this.patched = true;
|
||||
await this.importSQLFile("./db/" + sqlFilename);
|
||||
await this.importSQLFile("./db/old_migrations/" + sqlFilename);
|
||||
databasePatchedFiles[sqlFilename] = true;
|
||||
log.info("db", sqlFilename + " was patched successfully");
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"setupDatabaseChooseDatabase": "Which database do you want to use?",
|
||||
"setupDatabaseEmbeddedMariaDB": "You don't need to set anything. This docker image have embedded and configured a MariaDB for you automatically. Uptime Kuma will connect to this database via unix socket.",
|
||||
"setupDatabaseMariaDB": "Connect to an external MariaDB database. You need to set the database connection information.",
|
||||
"setupDatabaseSQLite": "A simple database file. It is recommended for small scale deployment. Before 2.0.0, Uptime Kuma used SQLite by default.",
|
||||
"setupDatabaseSQLite": "A simple database file, recommended for small-scale deployments. Prior to v2.0.0, Uptime Kuma used SQLite as the default database.",
|
||||
"dbName": "Database Name",
|
||||
"Settings": "Settings",
|
||||
"Dashboard": "Dashboard",
|
||||
|
|
Loading…
Add table
Reference in a new issue