2017 © Pedro Peláez
 

library b2tf

A plugin to commemorate October 21, 2015 - #BackToTheFuture Day

image

baleen/b2tf

A plugin to commemorate October 21, 2015 - #BackToTheFuture Day

  • Saturday, October 24, 2015
  • by gabriel.somoza
  • Repository
  • 2 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Baleen's Back to the Future Memorial Plugin

A plugin to commemorate October 21, 2015 - #BackToTheFuture Day., (*1)

If Baleen detects that you're migrating past October 21, 2015 you'll see a special message in your console., (*2)

Installation (Composer)

composer install baleen/b2tf:dev-master

Then run vendor/bin/baleen init. This will generate a file called .baleen.yml, (*3)

Open that file for editing and add the following lines at the beginning or end:, (*4)

plugins:
    20151021: \Baleen\B2tf\BackToTheFuturePlugin

In the VERY odd case you already have a plugin at priority "20151021" then change the number to something else, (*5)

Usage

You must have at least two migration files:, (*6)

  1. One with a timestamp before October 21, 2015
  2. Another one with a timestamp after that date. You can create one by running vendor/bin/baleen create.

Then just migrate (vendor/bin/baleen migrate) to see the message!, (*7)

Q&A

I don't have any migrations prior to October 21st. How can I test this?

No worries, easy fix: just take the DeLorean back to the past and choose Baleen CLI as your migrations framework!, (*8)

Alternative:, (*9)

  1. Add a new class in your migrations directory. The filename and class-name must coincide, make it something old like for example v19851026090000.
  2. Make it implement Baleen\Migrations\Migration\MigrationInterface.
  3. You now have a migration in the past. Now create one in the future by running vendor/bin/baleen create.
  4. Assuming you also followed the installation instructions above, you're good to go!

The Versions

24/10 2015

dev-master

9999999-dev

A plugin to commemorate October 21, 2015 - #BackToTheFuture Day

  Sources   Download

MIT

The Requires

 

by Gabriel Somoza