Marc Alexander
7201acf070
Merge branch '3.3.x'
2021-04-26 22:05:54 +02:00
Patrick Webster
134482f6c2
[ticket/16767] Report missing migration instead of dependency
...
If a migration has an unfulfillable dependency, the migration causing the
dependency to be unfulfillable is now shown in the error message instead
of just the dependency.
PHPBB3-16767
2021-04-25 15:22:42 -05:00
Marc Alexander
ce08da5165
[ticket/16748] Enable code sniffing for static placement and adjust code
...
PHPBB3-16748
2021-04-03 23:12:04 +02:00
rubencm
774c609c4a
[ticket/16345] Small improvements
...
PHPBB3-16346
2020-08-14 08:29:06 +00:00
Marc Alexander
84d82dab53
Merge branch '3.3.x'
2020-06-06 17:17:47 +02:00
Marc Alexander
f72e847c17
Merge branch '3.2.x' into 3.3.x
2020-06-06 17:17:28 +02:00
kasimi
65d825b62c
[ticket/16510] Added migration that adds missing config entries
...
PHPBB3-16510
2020-06-03 20:09:38 +02:00
Marc Alexander
a72810465f
[ticket/16284] Provide tables as array in migrations
...
PHPBB3-16284
2020-01-01 12:08:11 +01:00
javiexin
5c001df380
[ticket/15274] Allow "custom" migrations to use parameters
...
Add the possibility to have custom migrations with parameters,
allowing the use of a single function for several uses.
PHPBB3-15274
2019-05-08 22:06:34 +02:00
Tristan Darricau
8033209e03
Merge branch '3.2.x'
...
* 3.2.x:
[ticket/15696] Add tests
[ticket/15696] Add support of other tools to 'if'
2018-07-08 18:36:10 +02:00
Jakub Senko
1afc0673dd
[ticket/15696] Add support of other tools to 'if'
...
PHPBB3-15696
2018-06-19 07:49:21 +02:00
rxu
f8fbe37936
[ticket/14972] replace all occurrences of sizeof() with the count()
...
PHPBB3-14972
2018-01-01 13:56:04 +01:00
Marc Alexander
5338b7a361
Merge branch '3.2.x'
2017-10-17 19:54:24 +02:00
kasimi
ed9b896d22
[ticket/15396] Fix revert_schema() steps not executed in correct order
...
PHPBB3-15396
2017-10-13 14:46:32 +02:00
Tristan Darricau
6cdf94197f
Merge pull request #4871 from javiexin/ticket/15274
...
[ticket/15274] Allow "custom" migrations to use parameters
* github.com:phpbb/phpbb:
[ticket/15274] Allow "custom" migrations to use parameters
[ticket/15274] Allow "custom" migrations to use parameters
2017-08-06 12:04:07 +02:00
rxu
797234e416
[ticket/14972] replace all occurrences of sizeof() with the count()
...
PHPBB3-14972
2017-07-17 16:57:00 +07:00
javiexin
563a6680eb
[ticket/15274] Allow "custom" migrations to use parameters
...
Add the possibility to have custom migrations with parameters,
allowing the use of a single function for several uses.
PHPBB3-15274
2017-07-15 18:49:13 +02:00
Tristan Darricau
edaa36205f
Merge branch '3.1.x' into 3.2.x
...
* 3.1.x:
[ticket/14831] Rename migration and replace preg_replace() with simpler methods
[ticket/14831] Compare depends_on for migrations and remove prefixless names
[ticket/14831] Add migration for deduplicating entries and fix typo
[ticket/14831] Add method for getting valid migration name
[ticket/14831] Fall back to possible migration names instead of adding prefix
[ticket/14831] Make sure migrations always start with backslash
2016-11-14 21:22:14 +01:00
Marc Alexander
ffc6623dd4
[ticket/14831] Rename migration and replace preg_replace() with simpler methods
...
PHPBB3-14831
2016-10-25 20:25:57 +02:00
Marc Alexander
c891277996
[ticket/14831] Add migration for deduplicating entries and fix typo
...
PHPBB3-14831
2016-10-23 22:00:02 +02:00
Marc Alexander
9f2867b115
[ticket/14831] Add method for getting valid migration name
...
PHPBB3-14831
2016-10-23 11:37:10 +02:00
Marc Alexander
2059d57c04
[ticket/14831] Fall back to possible migration names instead of adding prefix
...
Instead of just adding the backslash as prefix if needed, this will take care
of falling back to any possible migration with or without backslash no matter
how the mgiration was saved in the database or called in the migrations file.
This will result in a more robust migrator in regards to naming the migrations
and previously run migrations.
PHPBB3-14831
2016-10-23 10:28:22 +02:00
Marc Alexander
8b8f693d00
[ticket/14831] Make sure migrations always start with backslash
...
The migration system expects every migration to start with a backslash.
If depends on definitions do not supply that leading backslash, we should
make sure it's added manually before calling the depends on migration.
PHPBB3-14831
2016-10-22 19:19:36 +02:00
Oliver Schramm
88384a1e63
Merge branch 'ticket/14742' into ticket/14742-32x
...
Conflicts:
phpBB/phpbb/db/migrator.php
2016-08-20 22:38:45 +02:00
Oliver Schramm
773f6d08a5
[ticket/14742] Reset migration_data_state before reverting
...
PHPBB3-14742
2016-08-20 22:31:08 +02:00
Oliver Schramm
7c99fcf782
[ticket/14742] Pause after each update_data step too
...
Rewriting process_data_step() to remove the now
useless foreach() loop.
PHPBB3-14742
2016-08-20 22:20:21 +02:00
Oliver Schramm
775d1c855a
[ticket/14742] Improve readability of the code
...
PHPBB3-14742
2016-08-20 22:20:20 +02:00
Oliver Schramm
e050cf5c11
[ticket/14742] Fix comments in migrator
...
PHPBB3-14742
2016-08-20 03:35:38 +02:00
Oliver Schramm
0d1b7b3935
Merge branch 'ticket/14742' into ticket/14742-32x
2016-08-12 02:38:55 +02:00
Oliver Schramm
263fbe54fc
[ticket/14742] Enhance measured time for migrations
...
PHPBB3-14742
2016-08-12 02:03:52 +02:00
Oliver Schramm
4a92a8efb5
[ticket/14742] Improve verbosity of migrator output
...
PHPBB3-14742
2016-08-12 02:01:01 +02:00
Oliver Schramm
03be89ebd7
[ticket/14742] Fix progress bar in database updater
...
Because of the new way, schema update steps are handled, the already
misleading progress bar was even more misleading. This should fix it.
PHPBB3-14742
2016-08-11 23:28:54 +02:00
Oliver Schramm
210310b584
Merge branch 'ticket/14742' into ticket/14742-32x
2016-08-11 18:30:35 +02:00
Oliver Schramm
52afa74f4e
[ticket/14742] Avoid loop while reverting schema
...
PHPBB3-14742
2016-08-11 18:00:10 +02:00
Oliver Schramm
b00a39b9ad
[ticket/14742] Make $last_run_migration protected
...
PHPBB3-14742
2016-08-11 17:59:51 +02:00
Oliver Schramm
6078bae7f8
[ticket/14742] Fix schema update
...
First make it work, then avoid a loop
PHPBB3-14742
2016-08-11 13:31:23 +02:00
Oliver Schramm
3346609126
[ticket/14742] Display message if reverting schema is in progress
...
PHPBB3-14742
2016-08-11 01:25:45 +02:00
Oliver Schramm
4938887e5d
Merge branch 'ticket/14742' into ticket/14742-32x
2016-08-11 01:20:59 +02:00
Oliver Schramm
a277f9cf07
[ticket/14742] Small fixes to migrator
...
PHPBB3-14742
2016-08-11 01:09:11 +02:00
Oliver Schramm
8e1461ca61
[ticket/14742] Avoid loop while reverting data
...
This combines reverted updata_data and revert_data into a single array.
PHPBB3-14742
2016-08-11 01:09:11 +02:00
Oliver Schramm
9fb649793d
[ticket/14742] Pause after each schema change
...
It is certainly better than running them all at once
PHPBB3-14742
2016-08-11 01:03:23 +02:00
Matt Friedman
27027deb9c
[ticket/14434] Refactored to check migrations when setting them
...
PHPBB3-14434
2016-01-28 12:17:35 -08:00
Matt Friedman
996441a1da
[ticket/14434] Remove redundant conditional
...
PHPBB3-14434
2016-01-27 12:24:18 -08:00
Matt Friedman
3bd8a2ba19
[ticket/14434] Remove recursion to simplify is_migration method
...
PHPBB3-14434
2016-01-27 11:46:04 -08:00
Matt Friedman
47d8aeebde
[ticket/14434] Extract migration check to a reusable method
...
PHPBB3-14434
2016-01-27 10:50:22 -08:00
Marc Alexander
266576c6a4
[ticket/13454] Remove unused variables
...
Part 4
PHPBB3-13454
2016-01-06 13:52:11 +01:00
Mate Bartus
8f5a0ad6f7
[ticket/14039] Revamp updater
...
PHPBB3-14039
2015-10-17 23:05:57 +02:00
Zoddo
2596fba487
[ticket/14162] Add CLI command db:revert
...
This command allow to revert a migration from the CLI
PHPBB3-14162
2015-09-20 12:26:46 +02:00
Joas Schilling
b566686b51
Merge branch 'develop-ascraeus' into develop
...
Conflicts:
phpBB/phpbb/db/migration/data/v30x/release_3_0_5_rc1.php
phpBB/phpbb/db/migration/profilefield_base_migration.php
phpBB/phpbb/db/migrator.php
2015-01-20 23:32:36 +01:00
Tristan Darricau
c99ed64473
[ticket/13489] Disable the event dispatcher in the migrator
...
PHPBB3-13489
2015-01-14 11:09:44 +01:00