Skip to content

Commit 8c1dffd

Browse files
Fix/fix migration issue (#43)
* fix: fix migration issue for batch rename * chore: update version to 1.0.8 and document changes in changelog
1 parent 2d6f8a9 commit 8c1dffd

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
All notable changes to Portracker will be documented in this file.
44

5+
## [1.0.8] - 2025-08-20
6+
7+
### Frontend
8+
- **Batch rename migration fix**: Fix migration issue affecting batch rename operations so renamed services persist correctly.
9+
10+
### Dev
11+
- **Misc**: minor migration-related fix for batch rename flow.
12+
513
## [1.0.7] - 2025-08-19
614

715
### Frontend

backend/db.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ if (!tableExists) {
216216
db.exec(`
217217
ALTER TABLE custom_service_names ADD COLUMN container_id TEXT;
218218
219+
DROP TABLE IF EXISTS custom_service_names_new;
220+
219221
CREATE TABLE custom_service_names_new (
220222
server_id TEXT NOT NULL,
221223
host_ip TEXT NOT NULL,
@@ -243,6 +245,8 @@ if (!tableExists) {
243245
logger.info('Schema migration: Adding "internal" column to "custom_service_names" table');
244246

245247
db.exec(`
248+
DROP TABLE IF EXISTS custom_service_names_new;
249+
246250
CREATE TABLE custom_service_names_new (
247251
server_id TEXT NOT NULL,
248252
host_ip TEXT NOT NULL,
@@ -390,6 +394,8 @@ if (!tableExists) {
390394
logger.info('Schema migration: Adding "protocol" column to "ignores" table');
391395

392396
db.exec(`
397+
DROP TABLE IF EXISTS ignores_new;
398+
393399
CREATE TABLE ignores_new (
394400
server_id TEXT NOT NULL,
395401
host_ip TEXT NOT NULL,
@@ -418,6 +424,8 @@ if (!tableExists) {
418424
logger.info('Schema migration: Adding "protocol" column to "notes" table');
419425

420426
db.exec(`
427+
DROP TABLE IF EXISTS notes_new;
428+
421429
CREATE TABLE notes_new (
422430
server_id TEXT NOT NULL,
423431
host_ip TEXT NOT NULL,
@@ -448,6 +456,8 @@ if (!tableExists) {
448456
logger.info('Schema migration: Adding "protocol" column to "custom_service_names" table');
449457

450458
db.exec(`
459+
DROP TABLE IF EXISTS custom_service_names_new;
460+
451461
CREATE TABLE custom_service_names_new (
452462
server_id TEXT NOT NULL,
453463
host_ip TEXT NOT NULL,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "portracker",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"description": "A multi-platform port-tracking dashboard",
55
"main": "backend/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)