0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
Commit graph

127 commits

Author SHA1 Message Date
Houston (Bot)
0ff5d72c78
[ci] release (#10598)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-28 14:20:53 -04:00
Houston (Bot)
c0cae63147 [ci] format 2024-03-28 18:10:50 +00:00
Ben Holmes
ed1031ba29
db: Rework index config with generated index names (#10589)
* feat: add indexes array config with name gen

* fix: add _idx suffix, remove name from output

* feat(test): new index config

* chore: remove unused type

* chore: changeset

* chore: add sort() for consistent names

* feat(test): consistent column ordering

* feat(test): ensure no queries when migrating legacy to new
2024-03-28 14:09:09 -04:00
Houston (Bot)
7d3b61c56d
[ci] release (#10586)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-27 16:33:25 -04:00
Matthew Phillips
62a1d6df69
For --force-reset use conditional drop table query (#10587) 2024-03-27 16:30:59 -04:00
Ben Holmes
d43bcbeec3 [ci] format 2024-03-27 19:52:24 +00:00
Ben Holmes
713abb2998
chore(db): Rename all collection usage to tables (#10460)
* chore: rename `collection` field to `table`

* chore: remove deprecated ResolvedCollectionConfig type (only used by studio)

* chore: collection -> table in migration-queries

* chore: update tests

* chore: last renames

* chore: bump migration version

* chore: remove deprecated collection field

* chore: droptablequeries

* chore(test): collection -> tables

* chore: revert collection -> table change on migration file

* chore: revert migration version change

* chore: changeset
2024-03-27 15:51:26 -04:00
Houston (Bot)
06a6c1a567
[ci] release (#10578)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-27 15:24:37 -04:00
Matthew Phillips
016b4b7b13 [ci] format 2024-03-27 19:21:30 +00:00
Matthew Phillips
f5df12cfeb
Provide guidance when --remote is omitted (#10579)
* Provide guidance when --remote is omitted

* Only restrict to server mode

* Use an AstroError

* Update code
2024-03-27 15:20:11 -04:00
Matthew Phillips
4abdb9d285 [ci] format 2024-03-27 13:05:53 +00:00
Matthew Phillips
764d67fc3f
Prevent importing db core from db runtime (#10568)
* Prevent importing db core from db runtime

* Move runtime errors into runtime

* Add changeset
2024-03-27 09:04:39 -04:00
Houston (Bot)
bb7707e171
[ci] release (#10556)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-26 17:24:02 -04:00
Ben Holmes
b5a80405b9
Fix db.run() type signature in production (#10566)
* deps: bump drizzle to latest patch

* chore: changeset

* feat(test): db.run output
2024-03-26 13:43:04 -04:00
Houston (Bot)
1cd2a74022
[ci] release (#10522)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-22 12:35:50 -04:00
Matthew Phillips
44dacedb3a [ci] format 2024-03-22 15:53:54 +00:00
Matthew Phillips
6576f5d458
Require that ASTRO_STUDIO_REMOTE_DB_URL is defined at runtime (#10533)
* Require that ASTRO_STUDIO_REMOTE_DB_URL is defined at runtime

* Add changeset

* Fix build
2024-03-22 11:52:38 -04:00
Ben Holmes
7ae1392d66 [ci] format 2024-03-22 12:29:14 +00:00
Ben Holmes
95e3cc84e8
db: dev --remote test fixture (#10527)
* feat: scaffold basic proxy

* feat: setupDbServer util

* feat: ASTRO_INTERNAL_TEST_REMOTE bypass

* feat: basic --remote test

* chore: add port incrementer
2024-03-22 08:28:12 -04:00
Houston (Bot)
cf8f2cafa0
[ci] release (#10521)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-21 10:31:45 -04:00
Matthew Phillips
30ce9a0c47
Revert "Removing embedding appToken from CI (#10497)" (#10520)
* Revert "Removing embedding appToken from CI (#10497)"

This reverts commit 2fc7231df2.

* Changeset
2024-03-21 10:21:35 -04:00
Houston (Bot)
e457bb2e90
[ci] release (#10508)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-20 16:38:59 -04:00
Matthew Phillips
297571eb98 [ci] format 2024-03-20 18:43:56 +00:00
Matthew Phillips
980020c5e0
Ensure --force-reset drops previous tables (#10506)
* Ensure --force-reset drops previous tables

* Remove unused import

* Do suggestions
2024-03-20 14:42:41 -04:00
Houston (Bot)
fdceed5889
[ci] release (#10503)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-20 20:46:06 +05:30
Ben Holmes
98b982bdfc [ci] format 2024-03-20 11:29:14 +00:00
Ben Holmes
f0fc78c873
db: expose isDbError() utility (#10498)
* feat: expose isDbError

* test: foreign key constraint error detection

* fix(test); use isDbError

* chore: changeset
2024-03-20 07:27:48 -04:00
Houston (Bot)
17b4991cff
[ci] release (#10488)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-20 08:41:00 +00:00
Ben Holmes
4831051260
Fix: remove db.transaction() from types until supported (#10501)
* fix: remove transaction from db types

* fix: transaction() runtime error

* chore: changeset
2024-03-20 08:27:48 +00:00
Matthew Phillips
2fc7231df2
Removing embedding appToken from CI (#10497) 2024-03-19 14:48:01 -04:00
James Garbutt
2ebcf94d0a
chore(db): Add missing github-slugger dependency & tests (#10405)
* chore: add missing github-slugger dependency

* test: add column-queries data loss tests

* chore: remove unused vars

* test: assert length rather than message content
2024-03-19 17:10:33 +00:00
Ben Holmes
ad57a02c33
db: Expose aggregation helpers (#10479)
* deps: drizzle 0.30

* feat: expose drizzle aggregation helpers

* chore: changeset
2024-03-19 08:56:48 +00:00
Houston (Bot)
7eac778cce
[ci] release (#10483)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-18 21:05:27 -07:00
Fred K. Schott
124cdd64f2
remove token wait time (#10477) 2024-03-18 20:45:47 -07:00
Houston (Bot)
0ddc327ee8
[ci] release (#10471)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-18 22:36:58 +05:30
Matthew Phillips
34206ed60f [ci] format 2024-03-18 12:06:35 +00:00
Matthew Phillips
37a485b4d1
Create new token when current has expired (#10435)
* Create new token when current has expired

* Add changeset

* Rename renew timer function:

* Handle creating a new token on renewal
2024-03-18 08:05:36 -04:00
Ben Holmes
156c094c3e [ci] format 2024-03-18 11:56:49 +00:00
Ben Holmes
219c49473f
fix type error in seed stub on initial setup (#10457)
* fix: move db type to base types for seed stub

* chore: changeset

* fix(test): bad NOW import
2024-03-18 07:55:39 -04:00
Houston (Bot)
4dcfa2bd90
[ci] release (#10453)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-15 16:24:46 -04:00
Ben Holmes
8a80dbfdde [ci] format 2024-03-15 17:59:44 +00:00
Ben Holmes
5b48cc0fc8
feat(db): Run db type generation on astro sync (#10438)
* feat: db typegen on astro sync

* fix: avoid requiring db to be installed

* fix: make typegen optional for backwards compat

* chore: changeset

* fix: required -> optional

* fix: remove flags from sync API signature
2024-03-15 13:58:45 -04:00
Ben Holmes
0989cd3284
feat(db): execute command logs (#10439)
* feat: db execute success and error logs

* chore: changeset
2024-03-15 13:58:36 -04:00
Houston (Bot)
464bea398b
[ci] release (#10446)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-14 14:58:33 -04:00
Matthew Phillips
098623c261
Prefer getting app token from runtime env (#10445) 2024-03-14 14:53:25 -04:00
Ben Holmes
5166e9715a
chore: remove duplicate astro:db log (#10441)
* chore: remove duplicate astro:db log

* chore: changeset
2024-03-14 14:39:53 -04:00
Houston (Bot)
7d8565db33
[ci] release (#10444)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-14 14:36:01 -04:00
Arsh
cdf1ac1292 [ci] format 2024-03-14 18:29:56 +00:00
Arsh
238f047b9d
fix(db): separate utils for runtime (#10443)
* fix(db): separate utils for runtime

* add changeset

* use safeFetch from runtime utils
2024-03-14 14:28:51 -04:00
Houston (Bot)
f92ff40fd3
[ci] release (#10430)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-14 09:01:22 -07:00