Commit graph

350 commits

Author SHA1 Message Date
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
prateek banga
e104e6d0f2 Merge branch 'feat-add-messaging-collections-in-config' into feat-add-messaging-providers 2023-08-31 18:16:48 +05:30
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
Steven Nguyen
586ad1984c
Update 1.4 migration 2023-08-17 17:15:35 -07:00
Jake Barnby
3c3326260a
Merge remote-tracking branch 'origin/cl-1.4.x' into feat-git-integration
# Conflicts:
#	composer.lock
2023-08-17 17:39:26 -04:00
prateek banga
92e587769a resolve merge conflicts 2023-08-16 15:16:45 +05:30
Jake Barnby
efe81f5723
Merge branch 'cl-1.4.x' into v19-migration 2023-08-11 19:29:12 -04:00
prateek banga
9057a50a10 rename provider param in config 2023-08-07 15:54:00 +05:30
Matej Bačo
906f86fbb8 Merge branch 'cloud-1.4.x' into feat-git-integration 2023-08-06 09:31:32 +02:00
Steven Nguyen
d960f85da6
Merge branch '1.4.x' into cloud-1.4.x 2023-08-04 18:07:33 -07:00
Steven Nguyen
aa3c2faed9
Merge tag '1.3.8' into cloud-1.3.x-2 2023-08-04 13:55:07 -07:00
fogelito
e620525460 Extra line 2023-08-01 13:24:28 +03:00
fogelito
aaa2f18bf9 uid varchar 2023-08-01 13:23:39 +03:00
Steven Nguyen
611524476b
Merge branch 'master' into feat-master-to-1.4.x 2023-07-26 13:33:49 -07:00
Steven Nguyen
cd78706944
Update migration for audit collection
1. Remove the userInternalId attribute
2. Replace userId in audit documents with userInternalId and put
userId in data
2023-07-19 22:49:51 -07:00
Damodar Lohani
8dc5c2cb4c Merge remote-tracking branch 'origin/1.4.x' into feat-custom-smtp 2023-07-19 07:24:58 +00:00
Steven Nguyen
26334b79bf
Update migration for audit collection
1. Remove the userInternalId attribute
2. Replace userId in audit documents with userInternalId and put
userId in data
2023-07-12 14:37:26 -07:00
Shmuel Fogel
2c15f0bc7b
Update src/Appwrite/Migration/Version/V19.php
Co-authored-by: Jake Barnby <jakeb994@gmail.com>
2023-06-21 09:43:29 +03:00
fogelito
5ae534d291 Addressing comments 2023-06-11 10:59:44 +03:00
fogelito
371f195f3a Iterator messages 2023-06-08 10:53:40 +03:00
fogelito
46d5159fd0 Small typo 2023-06-07 10:45:48 +03:00
fogelito
214bc4af56 Add buckets 2023-06-07 10:32:46 +03:00
fogelito
9827d80f9c Add buckets 2023-06-07 10:30:35 +03:00
fogelito
b7536d62e2 lint 2023-06-07 10:26:55 +03:00
fogelito
4c1fe6ce7c out comment document Migration 2023-06-07 10:15:21 +03:00
fogelito
8b9ab096b7 Add index 2023-06-07 10:01:00 +03:00
fogelito
1fea564735 Add index 2023-06-07 09:59:13 +03:00
fogelito
2a9b76b205 Separates for 2 queries 2023-06-07 09:46:24 +03:00
fogelito
105d0a5212 migrateBuckets 2023-06-06 18:47:11 +03:00
fogelito
29fef07019 composer.lock 2023-06-06 18:45:06 +03:00
fogelito
c889bf54d3 V19 2023-06-06 18:36:05 +03:00
shimon
bbbbedfd83 migration bucketInternalId 2023-05-14 10:43:44 +03:00
Steven Nguyen
afd2c7a065
Update migration to set bucket permissions in metadata table 2023-05-03 12:15:37 -07:00
Steven Nguyen
d0cfad9085
Prevent migration from overriding existing data
For users already on 1.3.1, after upgrading to 1.3.2, the migration
script would override existing auths, password history, team prefs, and
(relationship) attribute options with empty values. This commit fixes
the migration to set to an existing value if there was one.
2023-04-28 12:20:30 -07:00
Damodar Lohani
b1bbc9dfbd Merge remote-tracking branch 'origin/master' into feat-custom-smtp 2023-04-28 07:11:17 +00:00
Torsten Dittmann
43a6945d30 fix: migration 2023-04-24 13:21:31 +02:00
Torsten Dittmann
ff82a24a4b feat: migration 2023-04-24 13:00:23 +02:00
Damodar Lohani
d394715b56 Merge remote-tracking branch 'origin/master' into feat-custom-smtp 2023-04-13 01:35:56 +00:00
Torsten Dittmann
3009168350 fix: migration for 1.3.x 2023-04-12 17:48:36 +02:00
Jake Barnby
a01dd3fc41
Add options key to attributes 2023-04-12 02:49:47 +12:00
Jake Barnby
43946cade5
Add teams migration 2023-04-12 00:33:29 +12:00
Jake Barnby
b0a6190394
Only iterate attributes once 2023-04-12 00:05:19 +12:00
Jake Barnby
d46f3092e5
Remove redis and unused imports 2023-04-12 00:04:53 +12:00
Jake Barnby
a2cb3c135f
Fix migration of floats 2023-04-11 23:42:06 +12:00
Jake Barnby
c60d7764e4
Fix cache key 2023-04-11 22:27:49 +12:00
Jake Barnby
5689d47d41
Merge remote-tracking branch 'origin/1.3.x' into feat-db-update-migrations
# Conflicts:
#	src/Appwrite/Migration/Version/V18.php
2023-03-23 15:05:35 +13:00
Damodar Lohani
6e4592dab4
Update migration V18.php 2023-03-17 07:08:47 +05:45
Damodar Lohani
787a41a52d added migration 2023-03-17 01:21:46 +00:00
Matej Bačo
a4b31f6472 Fix after merge 2023-03-15 09:20:25 +01:00
Matej Bačo
d10c7c7775 Merge branch 'feat-db-pools-master' into feat-executor-v3-sync 2023-03-15 08:59:42 +01:00
Matej Bačo
4c5eaaa502 Remove leftover break 2023-03-14 19:49:11 +01:00
Matej Bačo
ae512cee1c Fix formatting 2023-03-14 19:46:59 +01:00
Matej Bačo
c01fcb130c Merge branch 'feat-db-pools-master' into feat-db-pools-sync 2023-03-14 12:58:54 +01:00
Jake Barnby
c06b38773c
Merge remote-tracking branch 'origin/1.3.x' into feat-db-update-migrations
# Conflicts:
#	src/Appwrite/Migration/Migration.php
#	src/Appwrite/Migration/Version/V18.php
2023-02-28 16:59:14 +13:00
Damodar Lohani
6b6f9edbd6
Merge branch '1.3.x' into feat-13x-master-sync 2023-02-21 07:38:46 +05:45
Damodar Lohani
9f3e815167
Merge branch 'feat-password-history' into feat-password-dictionary 2023-02-20 07:56:17 +05:45
Damodar Lohani
5acd78463a Merge remote-tracking branch 'origin/feat-db-pools' into feat-db-pools-master-sync 2023-02-16 00:44:29 +00:00
Damodar Lohani
171f30adb1 Merge remote-tracking branch 'origin/master' into feat-db-pools-master-sync 2023-02-16 00:29:37 +00:00
shimon
bb98033aed few last updates 2023-02-15 11:21:31 +02:00
Jake Barnby
d543705a54
Migration for database update 2023-02-15 20:35:24 +13:00
shimon
2bfe18d225 Merge branch 'feat-db-pools' of github.com:appwrite/appwrite into feat-new-usage-stats
 Conflicts:
	app/config/collections.php
	app/workers/functions.php
	composer.lock
2023-02-14 11:09:36 +02:00
Damodar Lohani
3215e8d8df Merge remote-tracking branch 'origin/feat-db-pools' into feat-db-pools-master-sync 2023-02-14 04:54:02 +00:00
shimon
5850a454e0 addressing comments 2023-02-05 22:07:46 +02:00
shimon
d33f8cc910 Migration v17 2023-01-31 20:49:26 +02:00
Damodar Lohani
9e4f66cac4 update migration 2023-01-31 06:52:40 +00:00
Damodar Lohani
45bc0f4066 fix migration 2023-01-31 06:51:43 +00:00
Damodar Lohani
f15dd063fd
Update src/Appwrite/Migration/Version/V18.php
Co-authored-by: Matej Bačo <matejbacocom@gmail.com>
2023-01-29 15:11:42 +05:45
fogelito
c4ae047833 Merge branch 'master' of github.com:appwrite/appwrite into feat-technical-debt-2
 Conflicts:
	app/init.php
	composer.json
	composer.lock
2023-01-16 10:24:37 +02:00
Damodar Lohani
92e020b209 fix migration name 2023-01-16 06:41:44 +00:00
Damodar Lohani
16b80e1ef8 new migration 2023-01-16 05:04:35 +00:00
Damodar Lohani
f41e3b1e8f Merge remote-tracking branch 'origin/master' into feat-db-pools-master-sync 2023-01-12 07:25:23 +00:00
Matej Bačo
070edcf55a Fix buckets migration 2022-12-27 14:55:32 +01:00
Matej Bačo
7532309bbb
Apply suggestions from code review 2022-12-27 10:31:49 +01:00
Matej Bačo
d63c429d3e Implement 1.2 migration 2022-12-27 08:35:55 +01:00
Matej Bačo
804dbb867c Re-add migration, add missing env vars 2022-12-27 08:24:34 +01:00
Matej Bačo
4d33ba6db1 Fix big in migration class 2022-12-26 13:16:01 +01:00
Matej Bačo
bbe29e9aa7 Preparations for 1.2.0 2022-12-26 13:06:35 +01:00
Christy Jacob
ff9bccf1ff
Revert "Feat: Build output size" 2022-12-20 18:26:56 +05:30
Matej Bačo
b014eda788 PR review changes 2022-12-20 12:48:11 +01:00
Matej Bačo
1a33ffa867 Linter fix 2022-12-18 08:37:53 +01:00
Matej Bačo
8f363eae7a Fix bugs 2022-12-18 08:35:16 +01:00
Matej Bačo
ab68bb4ea1 Merge branch 'feat-db-pools' into feat-build-size 2022-12-18 08:21:41 +01:00
Matej Bačo
c5da386d67 PR review changes 2022-12-18 08:20:50 +01:00
Matej Bačo
4ee8fd5629 Add cache clean 2022-12-16 10:39:53 +01:00
fogelito
8ade726932 Changing Role + Permissions namespace 2022-12-14 18:04:06 +02:00
fogelito
f96128e14f Changing Id 2022-12-14 17:42:25 +02:00
Matej Bačo
d702f3581f Fix bug 2022-12-12 13:52:22 +01:00
Matej Bačo
de0de5f225 Linter fix 2022-12-12 13:45:21 +01:00
Matej Bačo
fe27670e1f New attribute + migration 2022-12-12 13:39:43 +01:00
Matej Bačo
0a177713f0 Implement migration for mimeType 2022-12-07 11:01:58 +00:00
Torsten Dittmann
dd34dfce22 fix: migration for oauthproviders 2022-11-17 15:33:46 +01:00
Torsten Dittmann
bba9284c3e chore: add comments to v16 migration 2022-11-17 14:58:16 +01:00
Torsten Dittmann
d1eae37577 fix: make migration for oauth providers non-destructive 2022-11-17 14:57:27 +01:00
Torsten Dittmann
53adb4e114 fix: migration for oauth providers 2022-11-17 12:38:09 +01:00
Torsten Dittmann
eb5e853f2d fix: migration for stats region 2022-11-17 11:31:24 +01:00
Torsten Dittmann
35b7a2ee96 fix: linter 2022-11-15 15:22:57 +01:00
Torsten Dittmann
522ae8d538 feat: migration for 1.1.x 2022-11-15 13:59:35 +01:00
Steven Nguyen
c97fea37c0 Fix migration for audit
`time` attribute should be a DateTime type rather than int.
2022-09-29 19:15:54 +00:00
Torsten Dittmann
fab87c7f00 fix: migration for abuse time column 2022-09-14 19:40:03 +02:00
Torsten Dittmann
64926c7f4c fix: functions execute permissions on migration 2022-09-14 13:57:02 +02:00
Torsten Dittmann
bdd67b0127 fix: user migration not happening twice 2022-09-14 13:02:14 +02:00
Torsten Dittmann
89f18f36b5 fix: migration permissions fix 2022-09-14 12:19:52 +02:00
Torsten Dittmann
620d864d17 fix: migration prevent second password 2022-09-14 12:10:27 +02:00
Torsten Dittmann
78cd9ea71a chore: prepare 1.0.0 release 2022-09-14 11:00:13 +02:00
Torsten Dittmann
9c59deca1d fix: create scheduleUpdatedAt attribute on migration 2022-09-14 10:21:32 +02:00
Torsten Dittmann
e416f9b017 fix: new functions enabled index 2022-09-14 09:26:22 +02:00
Torsten Dittmann
5e5ca0ba16 adapt to review 2022-09-14 09:12:17 +02:00
Torsten Dittmann
ae0919a3d5 fix: add role:member migration 2022-09-13 18:54:03 +02:00
Torsten Dittmann
22038daa0e chore: remove old broken migrations 2022-09-12 16:20:53 +02:00
Torsten Dittmann
e0267da7ac fix: migrate variables 2022-09-12 16:06:05 +02:00
Torsten Dittmann
a7ef1367b8 chore: fix linter 2022-09-12 15:54:12 +02:00
Torsten Dittmann
75e80a210c fix: stats migration 2022-09-12 15:53:00 +02:00
Torsten Dittmann
704fd8693c fix: migrate executions and write permissions 2022-09-12 11:55:54 +02:00
Torsten Dittmann
21d40f4849 fix: qa 2022-09-09 19:50:05 +02:00
Torsten Dittmann
4822e326f2 add more logic 2022-09-09 14:44:04 +02:00
Torsten Dittmann
a059ec11e7 add some fixes 2022-09-09 11:38:54 +02:00
Torsten Dittmann
b19b9d450f feat: migration of 1.0.0 2022-09-08 18:46:18 +02:00
Torsten Dittmann
ee80bf7ca7 feat: introduce 1.0.0 migration 2022-09-07 10:43:05 +02:00
Jake Barnby
9c260164ef Merge remote-tracking branch 'origin/feat-datetime-attributes-with-database-query-update' into refactor-permissions-inc-queries-update-datetime-fixes
# Conflicts:
#	app/controllers/api/databases.php
#	app/controllers/api/storage.php
#	app/controllers/general.php
#	app/controllers/shared/api.php
#	composer.json
#	composer.lock
2022-08-14 23:46:34 +12:00
Jake Barnby
b007acfa95 ID updates 2022-08-14 22:33:36 +12:00
Steven
610ec1a6a4 Update database query syntax 2022-08-14 05:44:55 +00:00
Torsten Dittmann
3a963fab0b fix: remove unnecessary conditions 2022-07-20 15:27:27 +02:00
Torsten Dittmann
5f773c30cb fix: migration of attributes and indexes 2022-07-20 15:15:52 +02:00
Torsten Dittmann
7028bc1415 fix: internal id twice 2022-06-29 12:31:11 +02:00
Torsten Dittmann
8ee78137e6 fix: internal attribute and index key on migration 2022-06-29 01:07:48 +02:00
Torsten Dittmann
def1c35377 chore: add more comments 2022-06-27 18:44:39 +02:00
Torsten Dittmann
ff219cf91a fix: project internal id migration 2022-06-27 18:26:24 +02:00
Torsten Dittmann
c0649f7385 fix: migration 2022-06-27 18:22:29 +02:00
Torsten Dittmann
c3c6d00a9c fix: case for console projects 2022-06-27 16:58:57 +02:00
Torsten Dittmann
d945cb2a72 fix: remove var dump 2022-06-27 13:58:21 +02:00
Torsten Dittmann
d36e5b0167 fix: migration speed 2022-06-27 13:46:32 +02:00
Torsten Dittmann
f240a11c54 fix: migrate bucket files 2022-06-27 13:10:04 +02:00
Torsten Dittmann
129653a6d6 fix: migrate databaseId 2022-06-24 18:46:13 +02:00
Torsten Dittmann
2c328c744d chore: run linter 2022-06-24 18:37:41 +02:00