Skip to content

Commit 4bb6a72

Browse files
committed
Bug fix save entity data
1 parent 6d66bac commit 4bb6a72

6 files changed

Lines changed: 35 additions & 33 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2916,4 +2916,5 @@ This is a significant boost to efficiency, especially for workflows involving da
29162916
* **Database Exporter (MySQL & PostgreSQL)** – Fixed an issue where incorrect parameter passing caused the batch size not to be set properly. This resulted in row-by-row exports even for small datasets, leading to unnecessarily large dump files and excessive queries during database restore.
29172917
* **Update Primary Key values** – Fixed a bug in the update form where changing a primary key value caused the field to become empty. After the fix, primary key updates work correctly and persist the intended value.
29182918
* **Diagram persistence after JSON import** – Fixed an issue where diagrams were not saved after importing entities from a JSON file. Previously, only the entities were stored on the server while the diagrams were lost. Now, both entities and their diagrams are saved properly, ensuring that complex relationship diagrams remain intact after import.
2919+
* **Save Entity Data from Entity Editor** – Fixed an issue where saving data after adding or updating records via the **Entity Editor** did not persist correctly. Now, both new entries and modifications are reliably stored without data loss.
29192920

Dockerfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ FROM php:8.1-apache
33

44
# Install required PHP extensions and utilities
55
RUN apt-get update && apt-get install -y \
6-
libzip-dev \
7-
unzip \
86
git \
9-
sqlite3 \
107
libsqlite3-dev \
8+
libzip-dev \
9+
sqlite3 \
10+
unzip \
11+
&& rm -rf /var/lib/apt/lists/* \
1112
&& docker-php-ext-install zip mysqli pdo pdo_mysql pdo_sqlite \
1213
&& a2enmod rewrite
1314

@@ -17,12 +18,10 @@ WORKDIR /var/www/html
1718
# Copy the project files to the container
1819
COPY . /var/www/html
1920

20-
# Set permissions for the project files
21+
# Set permissions for the project files and enable Apache mod_rewrite
2122
RUN chown -R www-data:www-data /var/www/html \
22-
&& chmod -R 755 /var/www/html
23-
24-
# Enable Apache mod_rewrite
25-
RUN a2enmod rewrite
23+
&& chmod -R 755 /var/www/html \
24+
&& a2enmod rewrite
2625

2726
# Expose port 80
2827
EXPOSE 80

lib.assets/js/DatabaseExplorer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,6 @@ document.addEventListener('DOMContentLoaded', () => {
544544
const text = await navigator.clipboard.readText();
545545

546546
if (/create\s+table/i.test(text.trim()) || /insert\s+into/i.test(text.trim())) {
547-
console.log('ok');
548547
editor.parseCreateTable(text, function(entities){
549548
let { applicationId, databaseName, databaseSchema, databaseType } = getMetaValues();
550549
sendEntityToServer(applicationId, databaseType, databaseName, databaseSchema, entities);

0 commit comments

Comments
 (0)