Skip to content

Project renamed from Laravel Migration Actions to Laravel Actions #108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ body:
attributes:
label: Environment
description: |
Tip: Use the `composer info dragon-code/laravel-migration-actions` command to get information for Laravel Lang.
Tip: Use the `composer info dragon-code/laravel-actions` command to get information for Laravel Lang.
Tip: Use the `php artisan --version` command to get information for Laravel Framework.
Tip: Use the `php -v` command to get information for PHP.
value: |
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ See the [documentation](https://actions.dragon-code.pro) for detailed installati
This package is licensed under the [MIT License](LICENSE).


[badge_build]: https://img.shields.io/github/actions/workflow/status/TheDragonCode/laravel-migration-actions/laravel.yml?style=flat-square
[badge_build]: https://img.shields.io/github/actions/workflow/status/TheDragonCode/laravel-actions/laravel.yml?style=flat-square

[badge_downloads]: https://img.shields.io/packagist/dt/dragon-code/laravel-migration-actions.svg?style=flat-square
[badge_downloads]: https://img.shields.io/packagist/dt/dragon-code/laravel-actions.svg?style=flat-square

[badge_license]: https://img.shields.io/packagist/l/dragon-code/laravel-migration-actions.svg?style=flat-square
[badge_license]: https://img.shields.io/packagist/l/dragon-code/laravel-actions.svg?style=flat-square

[badge_stable]: https://img.shields.io/github/v/release/TheDragonCode/laravel-migration-actions?label=stable&style=flat-square
[badge_stable]: https://img.shields.io/github/v/release/TheDragonCode/laravel-actions?label=stable&style=flat-square

[badge_unstable]: https://img.shields.io/badge/unstable-dev--main-orange?style=flat-square

[link_build]: https://github.com/TheDragonCode/laravel-migration-actions/actions
[link_build]: https://github.com/TheDragonCode/laravel-actions/actions

[link_license]: LICENSE

[link_packagist]: https://packagist.org/packages/dragon-code/laravel-migration-actions
[link_packagist]: https://packagist.org/packages/dragon-code/laravel-actions
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "dragon-code/laravel-migration-actions",
"name": "dragon-code/laravel-actions",
"description": "Performing actions with saving the list of called files",
"license": "MIT",
"type": "library",
Expand All @@ -21,8 +21,8 @@
}
],
"support": {
"issues": "https://github.com/TheDragonCode/laravel-migration-actions/issues",
"source": "https://github.com/TheDragonCode/laravel-migration-actions"
"issues": "https://github.com/TheDragonCode/laravel-actions/issues",
"source": "https://github.com/TheDragonCode/laravel-actions"
},
"funding": [
{
Expand Down
2 changes: 1 addition & 1 deletion config/actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
|
*/

'table' => 'migration_actions',
'table' => 'deploy_actions',

/*
|--------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use DragonCode\LaravelActions\Database\BaseChangeMigrationColumn;
use DragonCode\LaravelActions\Database\BaseChangeColumn;

return new class () extends BaseChangeMigrationColumn
return new class () extends BaseChangeColumn
{
};
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use DragonCode\LaravelActions\Database\BaseChangeMigrationColumn;
use DragonCode\LaravelActions\Database\BaseChangeColumn;

class ChangeMigrationActionsTable extends BaseChangeMigrationColumn
class ChangeMigrationActionsTable extends BaseChangeColumn
{
}
4 changes: 2 additions & 2 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ module.exports = {

logo: `https://${ hostname }/images/logo.svg`,

repo: 'https://github.com/TheDragonCode/laravel-migration-actions',
repo: 'https://github.com/TheDragonCode/laravel-actions',
repoLabel: 'GitHub',
docsRepo: 'https://github.com/TheDragonCode/laravel-migration-actions',
docsRepo: 'https://github.com/TheDragonCode/laravel-actions',
docsBranch: 'main',
docsDir: 'docs',

Expand Down
6 changes: 3 additions & 3 deletions docs/getting-started/installation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
To get the latest version of Laravel Actions, simply require the project using [Composer](https://getcomposer.org):

```bash
composer require dragon-code/laravel-migration-actions
composer require dragon-code/laravel-actions
```

Or manually update `require` block of `composer.json` and run `composer update` console command.

```json
{
"require": {
"dragon-code/laravel-migration-actions": "^3.0"
"dragon-code/laravel-actions": "^3.0"
}
}
```
Expand Down Expand Up @@ -41,5 +41,5 @@ $app->register(\DragonCode\LaravelActions\ServiceProvider::class);
Next, you can copy the config file:

```bash
cp vendor/dragon-code/laravel-migration-actions/config/actions.php config/actions.php
cp vendor/dragon-code/laravel-actions/config/actions.php config/actions.php
```
8 changes: 4 additions & 4 deletions docs/how-to-use/rollback.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ You may roll back a limited number of actions by providing the `step` option to
php artisan migrate:actions:rollback --step=5
```

The `migrate:actions:reset` command will roll back all of your application's migrations:
The `migrate:actions:reset` command will roll back all of your application's actions:

```
php artisan migrate:actions:reset
Expand Down Expand Up @@ -48,15 +48,15 @@ php artisan migrate:actions:rollback --step=2

## Roll Back & Action Using A Single Command

The `migrate:actions:refresh` command will roll back all of your migrations and then execute the `migrate:actions` command. This command effectively re-creates your entire
The `migrate:actions:refresh` command will roll back all of your actions and then execute the `migrate:actions` command. This command effectively re-creates your entire
database:

```
php artisan migrate:actions:refresh
```

You may roll back & re-migrate a limited number of migrations by providing the `step` option to the `refresh` command. For example, the following command will roll back &
re-migrate the last five migrations:
You may roll back & re-migrate a limited number of actions by providing the `step` option to the `refresh` command. For example, the following command will roll back &
re-migrate the last five actions:

```
php artisan migrate:actions:refresh --step=5
Expand Down
6 changes: 3 additions & 3 deletions docs/how-to-use/running.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ bar/2022_10_14_000003_test3 # 3

## Isolating Action Execution

If you are deploying your application across multiple servers and running migrations as part of your deployment process, you likely do not want two servers attempting to migrate
If you are deploying your application across multiple servers and running actions as part of your deployment process, you likely do not want two servers attempting to migrate
the database at the same time. To avoid this, you may use the `isolated` option when invoking the `migrate:actions` command.

When the `isolated` option is provided, Laravel will acquire an atomic lock using your application's cache driver before attempting to run your migrations. All other attempts to
When the `isolated` option is provided, Laravel will acquire an atomic lock using your application's cache driver before attempting to run your actions. All other attempts to
run the `migrate:actions` command while that lock is held will not execute; however, the command will still exit with a successful exit status code:

```bash
Expand Down Expand Up @@ -62,7 +62,7 @@ return new class extends Action
};
```

For example, you need to call actions when deploying an application. Some actions should be run after the migrations are deployed, and others after the application is fully
For example, you need to call actions when deploying an application. Some actions should be run after the actions are deployed, and others after the application is fully
launched.

To run, you need to pass the `before` parameter. For example, when using [`deployer`](https://github.com/deployphp/deployer) it would look like this:
Expand Down
16 changes: 8 additions & 8 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Laravel Migration Actions
# Laravel Actions

![the dragon code migration actions](https://preview.dragon-code.pro/the-dragon-code/migration-actions.svg?brand=laravel)
![the dragon code actions](https://preview.dragon-code.pro/the-dragon-code/actions.svg?brand=laravel)

[![Stable Version][badge_stable]][link_packagist]
[![Unstable Version][badge_unstable]][link_packagist]
Expand Down Expand Up @@ -32,18 +32,18 @@
This package is licensed under the [MIT License](prologue/license.md).


[badge_build]: https://img.shields.io/github/actions/workflow/status/TheDragonCode/laravel-migration-actions/laravel.yml?style=flat-square
[badge_build]: https://img.shields.io/github/actions/workflow/status/TheDragonCode/laravel-actions/laravel.yml?style=flat-square

[badge_downloads]: https://img.shields.io/packagist/dt/dragon-code/laravel-migration-actions.svg?style=flat-square
[badge_downloads]: https://img.shields.io/packagist/dt/dragon-code/laravel-actions.svg?style=flat-square

[badge_license]: https://img.shields.io/packagist/l/dragon-code/laravel-migration-actions.svg?style=flat-square
[badge_license]: https://img.shields.io/packagist/l/dragon-code/laravel-actions.svg?style=flat-square

[badge_stable]: https://img.shields.io/github/v/release/TheDragonCode/laravel-migration-actions?label=stable&style=flat-square
[badge_stable]: https://img.shields.io/github/v/release/TheDragonCode/laravel-actions?label=stable&style=flat-square

[badge_unstable]: https://img.shields.io/badge/unstable-dev--main-orange?style=flat-square

[link_build]: https://github.com/TheDragonCode/laravel-migration-actions/actions
[link_build]: https://github.com/TheDragonCode/laravel-actions/actions

[link_license]: prologue/license.md

[link_packagist]: https://packagist.org/packages/dragon-code/laravel-migration-actions
[link_packagist]: https://packagist.org/packages/dragon-code/laravel-actions
22 changes: 11 additions & 11 deletions docs/prologue/changelog/3.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,41 @@

### Added

- Isolating Action Execution by @andrey-helldar in https://github.com/TheDragonCode/laravel-migration-actions/pull/105
- Isolating Action Execution by @andrey-helldar in https://github.com/TheDragonCode/laravel-actions/pull/105

**Full Changelog**: https://github.com/TheDragonCode/laravel-migration-actions/compare/v3.1.2...v3.2.0
**Full Changelog**: https://github.com/TheDragonCode/laravel-actions/compare/v3.1.2...v3.2.0

## v3.1.2 - 2022-11-28

### Changed

- Fixed `ColumnDoesNotExist` by @andrey-helldar in https://github.com/TheDragonCode/laravel-migration-actions/pull/103
- Fixed `ColumnDoesNotExist` by @andrey-helldar in https://github.com/TheDragonCode/laravel-actions/pull/103

**Full Changelog**: https://github.com/TheDragonCode/laravel-migration-actions/compare/v3.1.1...v3.1.2
**Full Changelog**: https://github.com/TheDragonCode/laravel-actions/compare/v3.1.1...v3.1.2

## v3.1.1 - 2022-11-23

### What's Changed

- Fixed trying to execute files other than PHP by @andrey-helldar in https://github.com/TheDragonCode/laravel-migration-actions/pull/102
- Fixed trying to execute files other than PHP by @andrey-helldar in https://github.com/TheDragonCode/laravel-actions/pull/102

**Full Changelog**: https://github.com/TheDragonCode/laravel-migration-actions/compare/v3.1.0...v3.1.1
**Full Changelog**: https://github.com/TheDragonCode/laravel-actions/compare/v3.1.0...v3.1.1

## v3.1.0 - 2022-10-28

### Added

- Added the ability to exclude paths from processing by @andrey-helldar in https://github.com/TheDragonCode/laravel-migration-actions/pull/101
- Added the ability to exclude paths from processing by @andrey-helldar in https://github.com/TheDragonCode/laravel-actions/pull/101

**Full Changelog**: https://github.com/TheDragonCode/laravel-migration-actions/compare/v3.0.1...v3.1.0
**Full Changelog**: https://github.com/TheDragonCode/laravel-actions/compare/v3.0.1...v3.1.0

## v3.0.1 - 2022-10-16

### Changed

- Update output styles by @andrey-helldar in https://github.com/TheDragonCode/laravel-migration-actions/pull/98
- Update output styles by @andrey-helldar in https://github.com/TheDragonCode/laravel-actions/pull/98

**Full Changelog**: https://github.com/TheDragonCode/laravel-migration-actions/compare/v3.0.0...v3.0.1
**Full Changelog**: https://github.com/TheDragonCode/laravel-actions/compare/v3.0.0...v3.0.1

## v3.0.0 - 2022-10-13

Expand All @@ -64,4 +64,4 @@

See the [`upgrade manual`](https://actions.dragon-code.pro/prologue/upgrade.html) for more information.

**Full Changelog**: https://github.com/TheDragonCode/laravel-migration-actions/compare/v2.9.0...v3.0.0
**Full Changelog**: https://github.com/TheDragonCode/laravel-actions/compare/v2.9.0...v3.0.0
6 changes: 3 additions & 3 deletions docs/prologue/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

## Medium Impact Changes

- [Changing the name of an action column in the database](#changed-migration-repository)
- [Changing the name of an action column in the database](#changed-action-repository)
- [Action storage directory changed](#actions-location)

## Upgrading To 3.x from 2.x
Expand Down Expand Up @@ -47,7 +47,7 @@ Laravel Actions now requires PHP 8.0.2 or greater.

You should update the following dependency in your application's `composer.json` file:

- `dragon-code/laravel-migration-actions` to `^3.0`
- `dragon-code/laravel-actions` to `^3.0`

### Configuration

Expand Down Expand Up @@ -87,7 +87,7 @@ return new class () extends Action {};

If your class does not contain a `down` method, then you can replace the `up` method with `__invoke`.

### Changed Migration Repository
### Changed Action Repository

Just call the `php artisan migrate` command to make changes to the action repository table.

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
"description": "Performing actions with saving the list of called files",
"author": "Andrey Helldar <helldar@dragon-code.pro>",
"license": "MIT",
"homepage": "https://github.com/TheDragonCode/laravel-migration-actions",
"homepage": "https://github.com/TheDragonCode/laravel-actions",
"bugs": {
"url": "https://github.com/TheDragonCode/laravel-migration-actions/issues"
"url": "https://github.com/TheDragonCode/laravel-actions/issues"
},
"scripts": {
"dev": "vuepress dev docs --debug",
"build": "vuepress build docs"
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/TheDragonCode/laravel-migration-actions.git"
"url": "git+ssh://git@github.com/TheDragonCode/laravel-actions.git"
},
"devDependencies": {
"@vuepress/plugin-theme-data": "2.0.0-beta.54",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

abstract class BaseChangeMigrationColumn extends Action
abstract class BaseChangeColumn extends Action
{
protected Config $config;

Expand Down