Commit graph

69 commits

Author SHA1 Message Date
Chirag Aggarwal
232b22b71e use constants 2025-09-23 07:35:17 +05:30
Chirag Aggarwal
3e8211d6bd refactor: improve code readability for schedules 2025-09-20 19:45:44 +05:30
Jake Barnby
3158c15111
Merge remote-tracking branch 'origin/1.7.x' into 1.8.x
# Conflicts:
#	app/controllers/api/functions.php
#	app/controllers/api/project.php
#	app/controllers/api/proxy.php
#	app/controllers/api/storage.php
#	app/controllers/api/vcs.php
#	app/controllers/general.php
#	app/controllers/shared/api.php
#	app/init/database/filters.php
#	composer.json
#	composer.lock
#	src/Appwrite/Migration/Migration.php
#	src/Appwrite/Migration/Version/V15.php
#	src/Appwrite/Migration/Version/V16.php
#	src/Appwrite/Migration/Version/V17.php
#	src/Appwrite/Migration/Version/V18.php
#	src/Appwrite/Migration/Version/V19.php
#	src/Appwrite/Migration/Version/V20.php
#	src/Appwrite/Migration/Version/V21.php
#	src/Appwrite/Platform/Tasks/Migrate.php
#	src/Appwrite/Platform/Workers/Builds.php
#	src/Appwrite/Platform/Workers/Deletes.php
#	src/Appwrite/Platform/Workers/Functions.php
#	src/Appwrite/Platform/Workers/StatsResources.php
#	src/Appwrite/Platform/Workers/StatsUsage.php
2025-05-27 13:36:23 +12:00
Jake Barnby
86f7489640
Internal ID -> sequence 2025-05-26 17:42:11 +12:00
Christy Jacob
28d2ed1baa
Revert "Feat sequence" 2025-05-23 21:39:56 +04:00
Jake Barnby
71e3446498
Change internal ID to sequence 2025-05-23 02:55:29 +12:00
Jake Barnby
7344733165
Use db loop methods, update names 2025-05-16 17:24:11 +12:00
Matej Bačo
f25143b240 Support fra-region on cloud; temporary fix 2025-03-25 21:52:02 +01:00
Matej Bačo
d89cdbcf5a Fix schedules region filtering 2025-03-25 21:34:09 +01:00
Binyamin Yawitz
8e7cc6ed14
fix: Moving migration to be inside coroutine completely 2024-08-08 09:25:56 -04:00
Eldad Fux
8ed1da4ea8 Updated getEnv to use system lib 2024-04-01 13:02:47 +02:00
Torsten Dittmann
0a1d572c72 chore: run formatter 2024-03-06 18:34:21 +01:00
Jake Barnby
121521d7c5
Merge remote-tracking branch 'origin/1.5.x' into json-parsing
# Conflicts:
#	composer.lock
#	src/Appwrite/Platform/Tasks/DeleteOrphanedProjects.php
#	src/Appwrite/Platform/Tasks/Hamster.php
2023-12-15 18:22:08 +13:00
fogelito
cc5ae73f57 purgeCached changes 2023-12-14 15:32:06 +02:00
prateek banga
1720acb2b4 lint fix 2023-11-21 12:32:30 +05:30
Prateek Banga
aa6a1a2e31
Update src/Appwrite/Migration/Version/V19.php
Co-authored-by: Jake Barnby <jakeb994@gmail.com>
2023-11-21 12:24:08 +05:30
prateek banga
7e625ba653 adds queries support in documentsIterator 2023-11-21 11:48:27 +05:30
prateek banga
da3798e52f review changes 2023-11-20 23:31:34 +05:30
prateek banga
b2381798ab migrates enum attribute size to 255 2023-11-20 22:01:20 +05:30
Christy Jacob
b9675f736b
Update src/Appwrite/Migration/Version/V19.php
Co-authored-by: Steven Nguyen <1477010+stnguyen90@users.noreply.github.com>
2023-09-06 23:32:49 -04:00
Christy Jacob
732a2b4a98 chore: linter 2023-09-06 22:10:43 +00:00
Christy Jacob
4250a634d3 Merge branch 'fix-migration-issues' of https://github.com/appwrite/appwrite into fix-migration-issues 2023-09-06 22:08:55 +00:00
Christy Jacob
c439202d3c chore: review comments 2023-09-06 22:08:26 +00:00
Christy Jacob
d96a6d7883
Apply suggestions from code review
Co-authored-by: Steven Nguyen <1477010+stnguyen90@users.noreply.github.com>
2023-09-06 18:06:31 -04:00
Christy Jacob
ec9ecb6cd4 chore: linter 2023-09-06 20:08:07 +00:00
Christy Jacob
430ec73a98 fix: incorrect attribute name 2023-09-06 20:01:43 +00:00
Christy Jacob
aac46cd5fe fix: migration issues 2023-09-06 19:59:42 +00:00
Christy Jacob
5cfabc7a12 fix: migrations fix and update changelog 2023-09-06 19:25:07 +00:00
Matej Bačo
1a6530fb57 Fix project variables 2023-09-05 10:21:36 +02:00
Steven Nguyen
ceb1188e8a
Override forEachDocument() to skip the cache collection
Skip the cache collection because:

1. There may be * in the $id of the document which causes problems
   when paginating with a cursor.
1. Nothing was done to the cache collection so we don't need to process
   it.
2023-09-04 13:25:27 -07:00
Steven Nguyen
c7929572f3
Fix builds migration 2023-09-04 09:04:15 -07:00
Steven Nguyen
605ee2f7c5
Update create deployment default commands
Default to function commands only if commands weren't supplied.
2023-09-04 09:04:15 -07:00
Steven Nguyen
87b0851092
Fix executions migrations 2023-09-02 19:13:15 -07:00
Steven Nguyen
9aeb15c337
Fix variables migration
Set new resourceType attribute to function since all variables were
function variables.
2023-09-02 18:35:26 -07:00
Steven Nguyen
f317d33fc7
Skip migrating domains without project because it would throw an error 2023-09-02 18:06:50 -07:00
Steven Nguyen
03c2a16306
Fix update migrations for functions and deployments
- Create additional attributes for the deployments collection.
- Set the commands attribute for the functions and deployments based on
  runtime.
2023-09-02 17:29:38 -07:00
Steven Nguyen
c8d6ac0267
Update migration script to not remove schedule from functions 2023-08-31 08:40:53 -07:00
Steven Nguyen
bd89fd4bf5
Fix domains migration
The previous approach tried to migrate the 'rules' collection, but that
didn't work because the data was in the 'domains' collection.

Since the 'domains' collection was removed, the migration is now done
when migrating the 'projects' collection by fetching the domains and
then creating the rule documents.
2023-08-30 14:22:06 -07:00
Jake Barnby
e15a9ac280
Clean up attributes to be deleted 2023-08-22 19:36:46 -04:00
Jake Barnby
6f775a2411
Review updates 2023-08-22 19:14:23 -04:00
Jake Barnby
97429bf57f
Merge remote-tracking branch 'origin/feat-git-integration-update-migration' into revert-some-migrations
# Conflicts:
#	src/Appwrite/Migration/Version/V19.php
2023-08-22 10:10:46 -04:00
Steven Nguyen
7e6eb59cdf
Additional updates from index changes 2023-08-21 17:12:10 -07:00
Steven Nguyen
8ebfbf04b8
Revert usage/stats migrations
We won't releasing the usage changes this release because the migrations
would be too big/complex.
2023-08-21 15:53:30 -07:00
Steven Nguyen
45be279b75
Skip updating _uid attribute and _permission index
These updates make use of the PDO to manually execute a SQL statement,
but the PDO is not available in the new migration platform task. So
that we can move forward with the release, we will skip these updates
and then figure it out in a subsequent release.
2023-08-21 15:53:30 -07:00
Steven Nguyen
f3fbb2fb56
Fix Migration task after it was converted to a Platform task 2023-08-21 15:53:30 -07:00
Steven Nguyen
280e066fd4
Update 1.4 migration 2023-08-21 15:53:30 -07:00
Jake Barnby
2d53c73e7a
Remove extra line 2023-08-17 22:15:33 -04:00
Jake Barnby
dbba62fe24
Remove permission index and _uid column type change migrations 2023-08-17 22:14:55 -04:00
Steven Nguyen
ccd8c86e88
Skip updating _uid attribute and _permission index
These updates make use of the PDO to manually execute a SQL statement,
but the PDO is not available in the new migration platform task. So
that we can move forward with the release, we will skip these updates
and then figure it out in a subsequent release.
2023-08-17 17:17:13 -07:00
Steven Nguyen
436600547c
Fix Migration task after it was converted to a Platform task 2023-08-17 17:17:12 -07:00