0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00
Commit graph

7394 commits

Author SHA1 Message Date
bholmesdev
6f225b38cd fix: avoid seed on writable 2024-02-13 13:12:05 -05:00
bholmesdev
3fd771da36 feat: types for writable dev only 2024-02-13 12:36:51 -05:00
bholmesdev
463796c48b feat: seed -> seedReturning 2024-02-13 11:37:29 -05:00
bholmesdev
6638f3af88 fix: primaryKey type check 2024-02-13 11:36:08 -05:00
Matthew Phillips
d7e922cbfa Fix input types 2024-02-12 11:02:42 -05:00
Matthew Phillips
65bb0a85ca 0.3.1 2024-02-09 16:39:07 -05:00
Fred K. Schott
1be2a6ff18 add default URLs to db package 2024-02-09 13:19:45 -08:00
Matthew Phillips
ccc9363cf5 0.3.0 2024-02-09 16:02:31 -05:00
Matthew Phillips
85f8ca24c1 Fix references test 2024-02-09 15:40:36 -05:00
Matthew Phillips
1d42585f24 Move field schema only a schema object 2024-02-09 15:16:37 -05:00
Fred K. Schott
2a2539fbd2 seed on every push 2024-02-09 11:03:08 -08:00
bholmesdev
158061c8e2 refactor: store raw sql instead 2024-02-09 13:57:42 -05:00
bholmesdev
522f4f2c92 fix: handle serialized SQL object correctly 2024-02-09 13:57:42 -05:00
bholmesdev
377e086a2c chore: remove console log 2024-02-09 13:57:42 -05:00
bholmesdev
7a943d1ef1 refactor: reference tests 2024-02-09 13:57:42 -05:00
bholmesdev
6048c49217 refactor: _setMeta -> preprocess for table 2024-02-09 13:57:42 -05:00
bholmesdev
c503d8743a fix: transform collection config to be JSON serializable 2024-02-09 13:57:42 -05:00
bholmesdev
3c03c31a79 feat(test): foreignKeys 2024-02-09 13:57:42 -05:00
bholmesdev
981e1e92a2 feat: add pragma when pushing migrations 2024-02-09 13:57:42 -05:00
bholmesdev
06fec3dab1 feat: remove useForeignKey checks 2024-02-09 13:57:42 -05:00
bholmesdev
f477386423 feat: add references checks to migratiosn 2024-02-09 13:57:42 -05:00
bholmesdev
a052dad1ea feat(test): reference add and remove tests 2024-02-09 13:57:42 -05:00
bholmesdev
aa00edea81 chore: expose setMeta for unit testing 2024-02-09 13:57:42 -05:00
Fred K. Schott
452a3c8581 prepare to run seed on all db push commands 2024-02-09 10:21:25 -08:00
Nate Moore
ed4294abbe feat(db-cli): clean up CLI logging, support --json flag for astro db verify, extract shared logic to a utility 2024-02-09 08:51:46 -06:00
bholmesdev
1f719ffb6d fix: remove explicit AUTOINCREMENT on int pk 2024-02-08 17:02:16 -05:00
bholmesdev
05e7e0f2dd fix: add back textField multiline 2024-02-08 16:56:35 -05:00
itsMapleLeaf
f32bff3563 fix db URL import for windows 2024-02-08 14:02:04 -06:00
bholmesdev
2ff473572e feat: prevent optional on text pk 2024-02-08 13:59:18 -05:00
bholmesdev
b29208e156 refactor: type false instead of type never 2024-02-08 13:58:46 -05:00
bholmesdev
6c22e8fcf1 feat: ignore optional and default when pk is present 2024-02-08 13:58:46 -05:00
bholmesdev
25393279c5 chore: todo 2024-02-08 13:57:47 -05:00
Matthew Phillips
8f7da6cc79 Add support for SQL defaults
You can now use sql`CURRENT_TIMESTAMP`, `NOW`, and a couple of other
helpers, to set defaults.
2024-02-08 13:32:56 -05:00
Fred K. Schott
25c09d3ef4 add shortcut link command from studio web ui 2024-02-07 23:18:57 -08:00
Fred K. Schott
c9ce9d2309 fix studio tests 2024-02-07 20:48:43 -08:00
Fred K. Schott
4c4ae2f470 add better token error logging 2024-02-07 20:05:27 -08:00
Fred K. Schott
39e29426aa add help output 2024-02-07 19:51:47 -08:00
Fred K. Schott
4712d2be57 add short-lived db tokens 2024-02-07 19:40:23 -08:00
bholmesdev
3850637e19 fix: correctly respect primary key on INSERT INTO 2024-02-07 18:15:21 -05:00
bholmesdev
92d7d84e6b fix: use schema.parse to resolve dates 2024-02-06 13:55:20 -05:00
bholmesdev
db874e508e fix: add back promptResponse injection 2024-02-06 13:48:41 -05:00
bholmesdev
76721dd193 feat: defineData() 2024-02-05 17:48:28 -05:00
bholmesdev
37848a6bd2 feat: good enough return type on seed :) 2024-02-05 17:28:04 -05:00
bholmesdev
1ef45b1a09 chore: remove as any on seed values 2024-02-05 16:40:48 -05:00
bholmesdev
25f940fe49 feat: better seed() types 2024-02-05 16:39:38 -05:00
bholmesdev
37d54c7b9e feat: better field.x() types 2024-02-05 16:36:47 -05:00
Fred K. Schott
1c69feecf0 fix bug in prompt logic 2024-02-04 00:44:52 -08:00
Fred K. Schott
54a981cd5c make it more clear when remove vs. local db is in use 2024-02-03 22:04:39 -08:00
Fred K. Schott
3799970607 improve error messaging around studio config missing 2024-02-03 21:52:02 -08:00
Fred K. Schott
e4aca2de5f improve conflict and dataloss handling
- moved prompts to db push
- moved prompt logic out of lower-level functions
- improved logic overall
- improved user-facing prompt messages
2024-02-03 21:03:42 -08:00