Skip to content

An open source, self-hosted, real-time port monitoring and discovery tool.

Fix/fix migration issue (#43)

Mostafa Wahied8c1dffd0a721
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6bd70b6..a9f12a0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,14 @@
All notable changes to Portracker will be documented in this file.
+## [1.0.8] - 2025-08-20
+
+### Frontend
+- **Batch rename migration fix**: Fix migration issue affecting batch rename operations so renamed services persist correctly.
+
+### Dev
+- **Misc**: minor migration-related fix for batch rename flow.
+
## [1.0.7] - 2025-08-19
### Frontend
diff --git a/backend/db.js b/backend/db.js
index 42eebf3..b5ec50a 100644
--- a/backend/db.js
+++ b/backend/db.js
@@ -216,6 +216,8 @@ if (!tableExists) {
db.exec(`
ALTER TABLE custom_service_names ADD COLUMN container_id TEXT;
+ DROP TABLE IF EXISTS custom_service_names_new;
+
CREATE TABLE custom_service_names_new (
server_id TEXT NOT NULL,
host_ip TEXT NOT NULL,
@@ -243,6 +245,8 @@ if (!tableExists) {
logger.info('Schema migration: Adding "internal" column to "custom_service_names" table');
db.exec(`
+ DROP TABLE IF EXISTS custom_service_names_new;
+
CREATE TABLE custom_service_names_new (
server_id TEXT NOT NULL,
host_ip TEXT NOT NULL,
@@ -390,6 +394,8 @@ if (!tableExists) {
logger.info('Schema migration: Adding "protocol" column to "ignores" table');
db.exec(`
+ DROP TABLE IF EXISTS ignores_new;
+
CREATE TABLE ignores_new (
server_id TEXT NOT NULL,
host_ip TEXT NOT NULL,
@@ -418,6 +424,8 @@ if (!tableExists) {
logger.info('Schema migration: Adding "protocol" column to "notes" table');
db.exec(`
+ DROP TABLE IF EXISTS notes_new;
+
CREATE TABLE notes_new (
server_id TEXT NOT NULL,
host_ip TEXT NOT NULL,
@@ -448,6 +456,8 @@ if (!tableExists) {
logger.info('Schema migration: Adding "protocol" column to "custom_service_names" table');
db.exec(`
+ DROP TABLE IF EXISTS custom_service_names_new;
+
CREATE TABLE custom_service_names_new (
server_id TEXT NOT NULL,
host_ip TEXT NOT NULL,
diff --git a/package.json b/package.json
index 436ec9d..a5b5222 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "portracker",
- "version": "1.0.7",
+ "version": "1.0.8",
"description": "A multi-platform port-tracking dashboard",
"main": "backend/index.js",
"scripts": {