You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@sqlite3 -line var/db.sqlite 'CREATE TABLE IF NOT EXISTS php_release(version VARCHAR(15) PRIMARY KEY, release_date DATE NOT NULL);'
@sqlite3 -line var/db.sqlite 'CREATE TABLE IF NOT EXISTS php_version(version VARCHAR(15) PRIMARY KEY, last_release VARCHAR(15) NOT NULL, initial_release_date DATE NOT NULL, active_support_until DATE, end_of_life_date DATE NOT NULL);'
@sqlite3 -line var/db.sqlite 'CREATE TABLE IF NOT EXISTS last_update(last_update DATETIME NOT NULL);'
.PHONY: clean
clean: ## Clean project files
@rm -f var/db.sqlite
@docker-compose down
.PHONY: serve
serve: ## Run project through docker-compose
@echo "--> Start containers"
@DOCKER_BUILDKIT=1 docker-compose up -d --force-recreate
@docker-compose exec fpm sqlite3 -line var/db.sqlite 'CREATE TABLE IF NOT EXISTS php_release(version VARCHAR(15) PRIMARY KEY, release_date DATE NOT NULL);'
@docker-compose exec fpm sqlite3 -line var/db.sqlite 'CREATE TABLE IF NOT EXISTS php_version(version VARCHAR(15) PRIMARY KEY, last_release VARCHAR(15) NOT NULL, initial_release_date DATE NOT NULL, active_support_until DATE, end_of_life_date DATE NOT NULL);'
@docker-compose exec fpm sqlite3 -line var/db.sqlite 'CREATE TABLE IF NOT EXISTS last_update(last_update DATETIME NOT NULL);'