Nathaniel Guse
dfabdbca50
[ticket/9737] Fix a few minor things in migrations
...
PHPBB3-9737
2013-01-22 13:19:49 -06:00
Nathan Guse
ccd08e21f6
[feature/migrations] Make sure migration data not done before running data step
...
PHPBB3-9737
2013-01-13 13:34:16 -06:00
Nathan Guse
000b8fefd2
[feature/migrations] Function to populate the migrations table (for install)
...
PHPBB3-9737
2013-01-13 13:21:01 -06:00
Nathan Guse
26c16559c3
[feature/migrations] Function effectively_installed() in migrations
...
Allows you to check if the migration is effectively installed
(entirely optionall)
This function is intended to help moving to migrations from a
previous database updater, where some migrations may have been
installed already even though they are not yet listed in the
migrations table.
PHPBB3-9737
2013-01-13 12:39:08 -06:00
Nathan Guse
93f9ebbb25
[feature/migrations] Make load_migrations recursive (optionally)
...
PHPBB3-9737
2013-01-12 18:27:33 -06:00
Nathan Guse
d50500860f
[feature/migrations] Store depends on in the database (serialized)
...
This is required so that when migrations are reverted we can check through
all installed migrations and make sure that all dependencies are handled
properly and so that we are only required to load the migrations files
that could be dependent on the ones installed.
I believe in normal proper use the old way might have worked, but in case
something happens and an unrelated migration file is installed, but cannot
be loaded, this makes sure we do not stop everything unless we absolutely
must (one of those files is dependent on something we want to revert).
PHPBB3-9737
2013-01-10 15:09:51 -06:00
Nathan Guse
dbe71bb170
[feature/migrations] Revert method completed
...
PHPBB3-9737
2013-01-10 13:53:09 -06:00
Nathan Guse
44c10f661e
[feature/migrations] Creating revert method to attempt reverting a migration
...
This code is in progress
PHPBB3-9737
2013-01-09 18:59:15 -06:00
Nathan Guse
3d4c00619f
[feature/migrations] Reverse data functionality
...
If data step fails, attempt to roll back any previous calls from the
migration that failed.
Fix some failing tests
PHPBB3-9737
2013-01-09 18:24:32 -06:00
Nathan Guse
5f9e1f1e89
[feature/migrations] Make sure the path sent to load_migrations is a directory
...
Prevent a lot++ of errors
PHPBB3-9737
2013-01-09 16:56:26 -06:00
Nathan Guse
445667a62e
[feature/migrations] Fix if method (and create a test for it)
...
PHPBB3-9737
2013-01-09 16:44:10 -06:00
Nathan Guse
f56e400cd3
[feature/migrations] Comments
...
PHPBB3-9737
2013-01-09 16:44:09 -06:00
Nathan Guse
edf693e3bd
[feature/migrations] Store state properly and send past result to callable
...
Fix return on module add
PHPBB3-9737
2013-01-09 16:44:09 -06:00
Nathan Guse
e3737978f7
[feature/migrations] Fixing returns of callables and handling data state
...
Lots of comments and some other miscellaneous fixes.
PHPBB3-9737
2013-01-09 16:44:08 -06:00
Nathan Guse
5c91e2569c
[feature/migrations] Migrations now somewhat works
...
PHPBB3-9737
2013-01-09 16:44:07 -06:00
David King
61debcf14c
[feature/migrations] Update phpbb_db_migrator class for PHP 5.3.3
...
PHPBB3-9737
2013-01-09 16:44:06 -06:00
Nathan Guse
6c44dadecb
[feature/migrations] Move migrator to service container
...
Version numbers
3.1 updates
Restore database_update.php file to what it was in develop
Get first forum to place global announcements in
PHPBB3-9737
2013-01-09 16:44:05 -06:00
Nils Adermann
41de95bc11
[feature/migrations] Process migration steps and move to PHP5 code
2013-01-09 16:42:48 -06:00
Nathan Guse
82efb3e446
[feature/migrations] Remove references as it is now 3.1 code
...
PHPBB3-9737
2013-01-09 16:42:47 -06:00
Nils Adermann
91a921a96b
[feature/migrations] Change migration data processing to run step by step
2013-01-09 16:42:47 -06:00
Nils Adermann
c802f2a66c
[feature/migrations] Standard vars for migrations and run sql with feedback
...
PHPBB3-9737
2013-01-09 16:40:00 -06:00
Nils Adermann
8645321f40
[feature/migrations] Return schema changes in database update style array
...
Returning the set of schema changes allows potentially aggregating to generate
the overall install schema automatically from a set of migrations
PHPBB3-9737
2013-01-09 16:40:00 -06:00
Nils Adermann
d304b6449d
[feature/migrations] Store start and end time of migrations
...
PHPBB3-9737
2013-01-09 16:39:59 -06:00
Nils Adermann
f817e20f28
[feature/migrations] Basic migrations with schema and data changes
...
The migrator takes care of applying migrations as necessary.
RFC: http://area51.phpbb.com/phpBB/viewtopic.php?f=84&t=41337
PHPBB3-9737
2013-01-09 16:39:59 -06:00