Skip to content

Commit

Permalink
temp: add phinx migrations to attic
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckadams committed Oct 18, 2024
1 parent b557104 commit a9d7075
Show file tree
Hide file tree
Showing 24 changed files with 2,185 additions and 0 deletions.
1 change: 1 addition & 0 deletions .ATTIC/aspirecloud-migrations/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/vendor/
21 changes: 21 additions & 0 deletions .ATTIC/aspirecloud-migrations/LICENSE
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.
24 changes: 24 additions & 0 deletions .ATTIC/aspirecloud-migrations/Makefile
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
12 changes: 12 additions & 0 deletions .ATTIC/aspirecloud-migrations/README.md
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.
14 changes: 14 additions & 0 deletions .ATTIC/aspirecloud-migrations/composer.json
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"
}
]
}
Loading

0 comments on commit a9d7075

Please sign in to comment.