3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
Commit graph

160 commits

Author SHA1 Message Date
Michael Stenta
a30acfb82e Delete parent references to taxonomy terms during migration rollback. 2021-09-15 15:33:17 -04:00
Michael Stenta
ff547ed8a5 Delete companion references to plant type terms during migration rollback. 2021-09-15 14:59:54 -04:00
Michael Stenta
1652c4746f Add a farm_migrate:rollback Drush command that rolls back all farmOS migrations. 2021-09-15 14:22:09 -04:00
Michael Stenta
a24c3ff221 Add a farm_migrate:import Drush command that executes all farmOS migrations. 2021-09-15 14:22:03 -04:00
Michael Stenta
c477e05896 Only delete quantity references for quantities that were created by migrations in the farm_migrate_quantity migration group.
This ensures that references to quantities created with the
create_quantity process plugin are maintained, so those
quantities can be deleted normally when the log is deleted.
2021-09-15 14:21:54 -04:00
Michael Stenta
f3ec44d43e Issue #3189740 by m.stenta: Cannot rollback farm_migrate_asset_parent group migrations 2021-09-15 12:03:04 -04:00
Michael Stenta
14bb01e681 Rename farm_migrate_reference group to farm_migrate_asset_parent. 2021-09-15 12:03:04 -04:00
Michael Stenta
44a14b5422 Issue #3229503: Rolling back log migration deletes quantities 2021-09-15 12:03:04 -04:00
Michael Stenta
53dc64258e Temporarily allow access to private file referencing during migration. 2021-09-15 09:01:50 -04:00
Michael Stenta
09ed36b10b Grant/revoke 'use text format default' permission to/from anonymous role during farm_migrate_taxonomy group migrations.
This is necessary because Drush runs migrations as anonymous
user, which does not have access to 'use text format default'
permission, so any terms that need that format fail validation.
2021-09-15 09:00:10 -04:00
Michael Stenta
359a1f8aea Generalize migration event subscriber so that more events can be added. 2021-09-14 20:42:54 -04:00
Michael Stenta
b90f00e5ed Ensure that no migrate entities end up with a uid of 0. Make user 1 the default. 2021-09-14 19:25:34 -04:00
Michael Stenta
03e6572f6a Set the user ID of migrated area assets to 1. 2021-09-14 19:25:34 -04:00
Michael Stenta
fc51877a89 Enable entity validation for area, asset, log, plan, and taxonomy term migrations. 2021-09-14 19:25:34 -04:00
Michael Stenta
f0bcc36491 Fix parent ID assignment in unit taxonomy term migrations.
Terms with parents were being assigned as their own parents (circular).
Updated it to be identical to the logic used in other term migrations.
2021-06-21 19:12:15 -04:00
Michael Stenta
1d2320355b Issue #3219701: Log migration of quantity reference Error: Unsupported operand types in SubProcess->transform() 2021-06-19 08:36:20 -04:00
Michael Stenta
4d59cd69c7 Do not archive areas without an area type during migration. 2021-06-05 14:53:17 -04:00
Michael Stenta
5c6856fe0c Add "Migrated from farmOS 1.x on [date]" revision log messages to migrated records. 2021-06-05 14:53:17 -04:00
Michael Stenta
360e133164 Add Birth log type and migration. 2021-05-26 12:19:05 -04:00
Michael Stenta
0b56e1469d Move migration source for the d7 sensor asset to farm_migrate. 2021-04-01 11:22:27 -04:00
paul121
74d72f3171 Rename data_stream_data_legacy to data_stream_legacy. 2021-04-01 11:22:27 -04:00
paul121
1a92ffe4a0 Add a migration for sensor listener data. 2021-04-01 11:22:27 -04:00
paul121
7bed6d3ae9 Add a migration that creates a legacy listener data stream for each listener sensor. 2021-04-01 11:22:27 -04:00
paul121
87b75501e6 Create a sensor data migration group. 2021-04-01 11:22:27 -04:00
paul121
38a9597296 Alias field_data_field_farm_inventory as fdffi. 2021-03-29 08:35:18 -07:00
paul121
54ddd93277 Fix class description. 2021-03-27 14:43:53 -04:00
paul121
039ece7f93 Migrate log inventories. 2021-03-27 14:43:53 -04:00
paul121
d44751e7a0 Provide a migration source for log inventories. 2021-03-27 14:43:53 -04:00
paul121
5a6ba4d55b Include log_inventories in the FarmLog source plugin. 2021-03-25 18:31:09 -04:00
Michael Stenta
1de7f4ed77 Improvements to farm_migrate_role migration config.
These changes help to support custom/contrib modules that want
to provide their own role migrations.

- Use skip_map_on_empty process plugin to ensure that skipped rows are not added to the map tables.
- Set a "role" pseudo-field, which is used by role ID matching.
- Move role ID matching process to farm_migrate_role migration group shared config.
- Move farm_migrate_role migration to optional config, dependent on farm_role_roles module.
2021-03-18 15:49:14 -04:00
Michael Stenta
7c16a8db46 Add a skip_map_on_empty process plugin that prevents mappings from being saved when a row is skipped. 2021-03-18 15:49:14 -04:00
Michael Stenta
f3c735b5c9 Issue #3176503: Migrate soil names field data (concat to notes). 2021-03-17 08:17:16 -04:00
Michael Stenta
3e19eb86b2 Migrate price quantities with a measure of value. 2021-03-12 20:34:08 -05:00
Michael Stenta
a39c667049 Move CreateQuantity to farm_migrate. 2021-03-12 08:15:56 -05:00
paul121
fc3f00883f Only create price quantities if price data was provided. 2021-03-12 08:15:56 -05:00
paul121
a00d0b32f6 Migrate purchase and sale log values to a price quantity. 2021-03-12 08:15:56 -05:00
Michael Stenta
19dc89750f Add Lot number field (with migration) to Sale and Purchase logs. 2021-03-11 21:39:18 -05:00
Michael Stenta
07c6e32d14 Revert "Make farm_migrate depend on farm_entity."
This reverts commit 6dc2f82c24aae2c4b11f037e73f15ccf81d167e0.
2021-03-05 14:16:06 -05:00
Michael Stenta
c8cf3ae94d Revert "The farm_migrate module depends on farm_quantity_standard."
This reverts commit 04f3af4dc530998815b60048befb3da61bb439b3.
2021-03-05 14:16:06 -05:00
Michael Stenta
07d03f617b Move farm_migrate_quantity_standard to optional config. 2021-03-05 14:16:06 -05:00
paul121
97b744207e The farm_migrate module depends on farm_quantity_standard. 2021-03-05 14:16:06 -05:00
Michael Stenta
078826205a Rename quantity migration to farm_migrate_quantity_standard. 2021-03-05 14:16:05 -05:00
paul121
b8f8a7402f Migrate quantities to the standard quantity type. 2021-03-05 14:16:05 -05:00
paul121
1840292885 Make farm_migrate depend on farm_entity. 2021-03-05 14:16:05 -05:00
Michael Stenta
aff6c154fc Add log migration processing for the group and is_group_assignment fields. 2021-03-01 09:55:58 -05:00
Michael Stenta
7c9a7983d9 Move geometry and is_movement process fields below location in farm_migrate_log migration group. 2021-03-01 09:55:58 -05:00
Michael Stenta
b70f2f8b45 Load group assignment information in the FarmLog D7 migration source. 2021-03-01 09:55:58 -05:00
Michael Stenta
9bb01ab1ef Split FarmLog::prepareRow() method into prepareMovement() and prepareQuantity() methods. 2021-03-01 09:55:58 -05:00
Michael Stenta
4041a46715 Rename the farm_migrate group to farm_migrate_config. 2021-03-01 08:15:46 -05:00
Michael Stenta
0555d774ae Split file migrations out to a farm_migrate_file migration group to resolve dependency issues. 2021-03-01 08:15:46 -05:00