From ce019aa4521e3ef3f5899906a0a02aed79301d1c Mon Sep 17 00:00:00 2001 From: Di Sarli Date: Thu, 30 Nov 2023 10:15:22 -0300 Subject: [PATCH] fixing mysql pdo driver --- README.md | 9 +++++++++ ops/docker/dev/php-fpm/Dockerfile | 3 +++ ops/docker/prod/php-fpm/Dockerfile | 5 ++++- tests/config/junit.xml | 16 ---------------- 4 files changed, 16 insertions(+), 17 deletions(-) delete mode 100644 tests/config/junit.xml diff --git a/README.md b/README.md index 5190f88..7962ae2 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,15 @@ This command will create a folder in `app/Domains`, new files in `routes`, `data - You can modify or add more business rule in `app/Domains/{your_domain}/Businesses` - Or your routes in `bootstrap/{your_domain}_routes` folder +### Running your Migration + +- Once you have configured your migration file in `database/migrations`; +- Run the migration + +```sh +php artisan migration +``` + ### Ulid For primary key value, this project using [Ulid](https://github.com/not-empty/ulid-php-lib) value, but you can pass other pattern in insert route if you prefer. diff --git a/ops/docker/dev/php-fpm/Dockerfile b/ops/docker/dev/php-fpm/Dockerfile index faa5cb8..e97118e 100755 --- a/ops/docker/dev/php-fpm/Dockerfile +++ b/ops/docker/dev/php-fpm/Dockerfile @@ -7,6 +7,9 @@ RUN apt update \ && apt upgrade -y \ && apt install zip unzip git -y +RUN docker-php-ext-install mysqli pdo pdo_mysql \ + && docker-php-ext-enable pdo_mysql + RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer WORKDIR /var/www/html diff --git a/ops/docker/prod/php-fpm/Dockerfile b/ops/docker/prod/php-fpm/Dockerfile index d9dc45e..d6a9729 100755 --- a/ops/docker/prod/php-fpm/Dockerfile +++ b/ops/docker/prod/php-fpm/Dockerfile @@ -7,9 +7,12 @@ RUN apt update \ && apt upgrade -y \ && apt install zip unzip git -y +RUN docker-php-ext-install mysqli pdo pdo_mysql \ + && docker-php-ext-enable pdo_mysql + RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer -COPY ./ops/docker/prod/php-clear/newrelic-php5-9.21.0.311-linux.tar.gz /usr/src +COPY ./ops/docker/prod/php-fpm/newrelic-php5-9.21.0.311-linux.tar.gz /usr/src RUN tar -xvf /usr/src/newrelic-php5-9.21.0.311-linux.tar.gz -C /usr/src && \ mkdir /etc/init.d && \ diff --git a/tests/config/junit.xml b/tests/config/junit.xml deleted file mode 100644 index b670d6a..0000000 --- a/tests/config/junit.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - -