From c1c9c651bf33b47d497b8aab0de1cd35d251a01f Mon Sep 17 00:00:00 2001 From: scriptPilot Date: Mon, 26 Feb 2024 00:40:02 +0100 Subject: [PATCH 1/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 106f917..8f0cc66 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Add [PHP](https://www.php.net/), [Composer](https://getcomposer.org/), [MySQL](https://mariadb.org/), [phpMyAdmin](https://www.phpmyadmin.net/) and [PHP CRUD API](https://github.com/mevdschee/php-crud-api) to your local development environment. -You might be interested in a simple [JavaScript API Wrapper](https://github.com/scriptPilot/js-php-mysql-crud-api) or a [Local Persistent Database + MySQL Sync](https://github.com/scriptPilot/pouchdb-mysql/). +You might be interested in a simple [Synchronization between local IndexedDB and MySQL Database](https://github.com/scriptPilot/dexie-mysql-sync). ## Installation From 87c0e45bc98141bc08c9622529e0719dd6e2a896 Mon Sep 17 00:00:00 2001 From: scriptPilot Date: Tue, 27 Feb 2024 23:12:08 +0100 Subject: [PATCH 2/3] change default charset to utf8mb4 closes #8 --- src/templates/schema.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/templates/schema.sql b/src/templates/schema.sql index 3e7beb5..46c62fb 100644 --- a/src/templates/schema.sql +++ b/src/templates/schema.sql @@ -2,10 +2,10 @@ CREATE TABLE IF NOT EXISTS `users` ( `id` INTEGER(4) NOT NULL PRIMARY KEY AUTO_INCREMENT, `username` VARCHAR(255) NOT NULL, `password` VARCHAR(255) NOT NULL -); +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; CREATE TABLE IF NOT EXISTS `tasks` ( `id` INTEGER(4) NOT NULL PRIMARY KEY AUTO_INCREMENT, `title` VARCHAR(255) NOT NULL, `done` TINYINT(1) NOT NULL DEFAULT 0 -); \ No newline at end of file +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; \ No newline at end of file From 41391939877d3940b38a912afd178afc55a7cd37 Mon Sep 17 00:00:00 2001 From: scriptPilot Date: Tue, 27 Feb 2024 23:12:19 +0100 Subject: [PATCH 3/3] 1.8.3 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index e5105e0..8b2e14f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "add-php-backend", - "version": "1.8.2", + "version": "1.8.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "add-php-backend", - "version": "1.8.2", + "version": "1.8.3", "license": "MIT", "dependencies": { "fs-extra": "^11.2.0", diff --git a/package.json b/package.json index 2b3ac81..ed66ae0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "add-php-backend", - "version": "1.8.2", + "version": "1.8.3", "description": "", "main": "src/index.js", "bin": "src/index.js",