-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b557104
commit a9d7075
Showing
24 changed files
with
2,185 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 AspirePress | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.PHONY: * | ||
|
||
# Set additional parameters for command | ||
OPTS= | ||
|
||
list: | ||
@grep -E '^[a-zA-Z%_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
build: ## Builds Composer dependencies | ||
docker compose build | ||
|
||
clean: ## Cleans up the project | ||
docker compose down -v --remove-orphans | ||
docker compose rm -f | ||
rm -fr ./vendor | ||
|
||
install-composer: ## Install composer dependencies | ||
docker compose run --rm cli bash -c "composer install" | ||
|
||
create-migration: ## Create a new database migration | ||
docker compose run --rm cli vendor/bin/phinx create ${OPTS} -c phinx.php | ||
|
||
create-seed: ## Create a new database seed | ||
docker compose run --rm cli vendor/bin/phinx seed:create ${OPTS} -c phinx.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# AspireCloud Migrations | ||
|
||
This repository serves as a central location for the database migrations that power both AspireCloud and AssetGrabber. | ||
Users of either project will recieve this as a submodule that they can use to run the migrations for the projects. | ||
|
||
## Usage | ||
|
||
To use this repository, follow these steps: | ||
|
||
1. Check out [aspirepress/assetgrabber] or [aspirepress/AspireCloud] by running `git clone <repository>` | ||
2. On initial clone, the submodule should also be cloned. | ||
3. To update the submodule, run `git submodule update` from within the root of the directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "aspirepress/aspirecloud-migrations", | ||
"description": "A set of migrations to run for AspireCloud", | ||
"type": "library", | ||
"require": { | ||
"robmorgan/phinx": "^0.16.5" | ||
}, | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Sarah Savage" | ||
} | ||
] | ||
} |
Oops, something went wrong.