From f6872f3d2b53ca33dcb2353f3f50db0632ef8b40 Mon Sep 17 00:00:00 2001 From: Mathieu Date: Wed, 10 Jan 2024 20:41:38 +0100 Subject: [PATCH] fix: Add new mission_legacy column to gk_geokrety table $ docker exec -it geokrety-new-theme_website.1.ab5aulm7bzlm2g45eqlq4djut bash root@118729c9f9b8:/var/www/geokrety# cd website/ root@118729c9f9b8:/var/www/geokrety/website# ../vendor/bin/phinx create LegacyGeoKretyMission Phinx by CakePHP - https://phinx.org. using config file phinx.php using config parser php using migration paths - /var/www/geokrety/website/db/migrations using seed paths - /var/www/geokrety/website/db/seeds using migration base class Phinx\Migration\AbstractMigration using default template created db/migrations/20240110193718_legacy_geo_krety_mission.php root@118729c9f9b8:/var/www/geokrety/website# chown 1000.1000 db/migrations/20240110193718_legacy_geo_krety_mission.php root@118729c9f9b8:/var/www/geokrety/website# ../vendor/bin/phinx status Phinx by CakePHP - https://phinx.org. using config file phinx.php using config parser php using migration paths - /var/www/geokrety/website/db/migrations using seed paths - /var/www/geokrety/website/db/seeds warning no environment specified, defaulting to: local ordering by creation time Status [Migration ID] Started Finished Migration Name ---------------------------------------------------------------------------------- up 20200801131052 2022-12-24 11:29:11+00 2022-12-24 11:29:11+00 LabelsLists up 20200802195759 2022-12-24 11:29:11+00 2022-12-24 11:29:11+00 SessionPersist up 20200806131137 2022-12-24 11:29:11+00 2022-12-24 11:29:11+00 SocialAuth up 20200807100145 2022-12-24 11:29:11+00 2022-12-24 11:29:11+00 UsernameUniqCaseInsensitive up 20200810213655 2022-12-24 11:29:11+00 2022-12-24 11:29:12+00 Statistics up 20200822224511 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 ComputeHolder up 20200823095754 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 ArchiveByOwner up 20201113114244 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 NewUserEmailStatus up 20201113193605 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 NewAccountActivationTokenStatus up 20201115220646 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 GeokretyIndexOnUpdateOnDatetime up 20201118133826 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 MovesPositionIndex up 20201119145700 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 AddSessionGKTOnBehalf up 20201119211411 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 FixTypo up 20210320103341 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 WaypointSyncID up 20210320163712 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 ScriptLock up 20210320174731 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 WaypointOcPosition up 20210410120232 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 DailyMails up 20210411144728 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 MaterialisedView up 20210418204842 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 AccountStatus up 20210420180150 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 EmailRevalidate up 20210420195137 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 TokenUnique up 20210425144701 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 AccountActivationRenotify up 20210504170839 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 StatusMapper up 20210706112502 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 Indexes up 20211024182010 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 RenameBadges up 20211106114301 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 ScriptsLocks up 20211111111111 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 AwardsRank up 20211117201554 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 RankingUniq up 20211125204119 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 TrackingCodeValidate up 20211206174532 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 StoreHistoricalUsernames up 20211215205517 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 UserIdInSession up 20220108090404 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 UserHomePosition up 20220129144412 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 WatchedUniqIndex up 20220204183524 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 MovesIndexes up 20220227082358 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 GeokretyInCacheIndex up 20220313183422 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 DeleteUser up 20220528202542 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 GkWithDetails up 20220612101641 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 MoveSpeedUp up 20220614074944 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 AuditSchema up 20220614192547 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 AuditMoves up 20220618121413 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 AuditErrors up 20220618124635 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 SecidLength up 20220618163457 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 AuditLogSessionID up 20220618181626 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 MoveAudiLogsSequence up 20221114183026 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 FixUserDelete up 20221115113556 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 NotifyQueues up 20221127180521 2022-12-24 11:29:12+00 2022-12-24 11:29:12+00 Rabbitmq up 20221227120159 2022-12-27 16:20:30+00 2022-12-27 16:20:30+00 AccountActivationTokenOneAtATime up 20221228215907 2023-01-03 15:55:42+00 2023-01-03 15:55:42+00 InitialUserSettings up 20230402081405 2023-04-04 12:47:10+00 2023-04-04 12:47:10+00 MoveQuantileExt up 20230402083036 2023-04-04 12:47:10+00 2023-04-04 12:47:10+00 SetDefaultSchema up 20230728125922 2023-07-29 12:54:01+00 2023-07-29 12:54:01+00 UserAuthHistory up 20230801154601 2023-08-01 15:48:19+00 2023-08-01 15:48:19+00 AuditPostUserAgent up 20230812160813 2023-08-12 16:20:57+00 2023-08-12 16:20:57+00 SettingDistanceUnit up 20230814140026 2023-08-16 11:59:27+00 2023-08-16 11:59:27+00 MoveDeleteDistances up 20230916141507 2023-09-16 14:21:35+00 2023-09-16 14:21:35+00 UpgradeSessions up 20230927172540 2023-09-27 17:28:21+00 2023-09-27 17:28:21+00 DisplayAbsoluteDates down 20240110193718 LegacyGeoKretyMission HERE: Write the migration class root@118729c9f9b8:/var/www/geokrety/website# ../vendor/bin/phinx migrate Phinx by CakePHP - https://phinx.org. using config file phinx.php using config parser php using migration paths - /var/www/geokrety/website/db/migrations using seed paths - /var/www/geokrety/website/db/seeds warning no environment specified, defaulting to: local using database geokrety ordering by creation time == 20240110193718 LegacyGeoKretyMission: migrating == 20240110193718 LegacyGeoKretyMission: migrated 0.0142s All Done. Took 0.0253s --- .../20240110193718_legacy_geo_krety_mission.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 website/db/migrations/20240110193718_legacy_geo_krety_mission.php diff --git a/website/db/migrations/20240110193718_legacy_geo_krety_mission.php b/website/db/migrations/20240110193718_legacy_geo_krety_mission.php new file mode 100644 index 0000000000..748778c10e --- /dev/null +++ b/website/db/migrations/20240110193718_legacy_geo_krety_mission.php @@ -0,0 +1,13 @@ +table('geokrety.gk_geokrety') + ->addColumn('legacy_mission', 'text', ['null' => true]) + ->save(); + } +}