https://github.com/ventrec/timestampr
Updates timestamp columns in your database that violates the new nullable requirement in newer mysql versions
https://github.com/ventrec/timestampr
Last synced: 3 months ago
JSON representation
Updates timestamp columns in your database that violates the new nullable requirement in newer mysql versions
- Host: GitHub
- URL: https://github.com/ventrec/timestampr
- Owner: ventrec
- License: mit
- Created: 2016-09-24T16:30:31.000Z (over 8 years ago)
- Default Branch: develop
- Last Pushed: 2017-10-08T10:41:07.000Z (over 7 years ago)
- Last Synced: 2024-12-30T02:50:02.681Z (5 months ago)
- Language: PHP
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Timestampr
Timestampr is a tool that updates timestamp columns in your mysql database that is not nullable. The tool was made in order to update the database in a laravel project, hence the .env file requirement.
### Installation
```sh
composer global require ventrec/timestampr
```### How to use it
Navigate to the root of your project folder where your .env file is located. The tool reads database parameters from the file (```DB_HOST```, ```DB_USERNAME```, ```DB_PASSWORD```, ```DB_DATABASE```) which is used to connect to the database. If needed, you can provide an optional parameter for the port.
Run the command.
```sh
timestampr
```Run the tool with mysql port as a parameter.
```sh
timestampr 33060
```License
----MIT