diff --git a/README.md b/README.md index cbc0efe..106f917 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ 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/). + ## Installation 1. Install [Docker](https://www.docker.com/) and [Node.js](https://nodejs.org/) diff --git a/package-lock.json b/package-lock.json index 4734f98..c2d048a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "add-php-backend", - "version": "1.8.0", + "version": "1.8.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "add-php-backend", - "version": "1.8.0", + "version": "1.8.1", "license": "MIT", "dependencies": { "fs-extra": "^11.2.0", diff --git a/package.json b/package.json index 8bb04b2..4be18f9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "add-php-backend", - "version": "1.8.0", + "version": "1.8.1", "description": "", "main": "src/index.js", "bin": "src/index.js", diff --git a/src/templates/schema.sql b/src/templates/schema.sql index 5ffb15f..7d8c81a 100644 --- a/src/templates/schema.sql +++ b/src/templates/schema.sql @@ -1,11 +1,11 @@ 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; + `id` INTEGER(4) NOT NULL PRIMARY KEY AUTO_INCREMENT, + `username` VARCHAR(255) NOT NULL, + `password` VARCHAR(255) NOT NULL +); CREATE TABLE IF NOT EXISTS `tasks` ( - `id` integer(4) NOT NULL PRIMARY KEY AUTO_INCREMENT, - `title` varchar(255) NOT NULL, - `done` integer(1) NOT NULL DEFAULT 0 -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; \ No newline at end of file + `id` INTEGER(4) NOT NULL PRIMARY KEY AUTO_INCREMENT, + `title` VARCHAR(255) NOT NULL, + `done` INTEGER(1) NOT NULL DEFAULT 0 +); \ No newline at end of file