focused_morning
DTDrizzle Team
•Created by focused_morning on 8/9/2023 in #help
Top Level await issue with latest [email protected], mysql2, planetscale
Drove us crazy too.
8 replies
DTDrizzle Team
•Created by ippo on 9/15/2023 in #help
TRIGGERS in Drizzle
What if you are using planetscale and are letting planetscale handle migrations?
13 replies
DTDrizzle Team
•Created by focused_morning on 10/31/2023 in #help
How do I write a trigger??
using mysql and planetscale
4 replies
DTDrizzle Team
•Created by focused_morning on 10/31/2023 in #help
How can I accomplish this in a schema?
I keep getting this error:
code: 'ER_PARSE_ERROR',
errno: 1064,
sql: "ALTER TABLE
ItemMintPermission
ADD activeItemId
AS (CASE WHEN status='ACTIVE' THEN itemId ELSE NULL END);",
but the sql looks right to me10 replies
DTDrizzle Team
•Created by focused_morning on 10/31/2023 in #help
How can I accomplish this in a schema?
so I can exclude that keyword, im not 100% sure on that.
10 replies
DTDrizzle Team
•Created by focused_morning on 10/31/2023 in #help
How can I accomplish this in a schema?
seems to not like virtual keyword
10 replies
DTDrizzle Team
•Created by focused_morning on 10/31/2023 in #help
How can I accomplish this in a schema?
its mysql btw
10 replies
DTDrizzle Team
•Created by focused_morning on 8/29/2023 in #help
Help, issue that will drop our user table
migration:
pscale:
2 replies
DTDrizzle Team
•Created by focused_morning on 8/23/2023 in #help
Invalid default value for 'updatedAt'
I appreciate the insights thank you, I'll try it out but I don't like the idea of dropping data to fix this.
33 replies
DTDrizzle Team
•Created by focused_morning on 8/23/2023 in #help
Invalid default value for 'updatedAt'
I tried this:
timestamp("createdAt").default(sql
current_timestamp)
earlier without success..
Oddly enough the push command is failing, but planetscale is registering some of the changes including the createdAt change, but the command is failing so the other schema changes aren't included.33 replies
DTDrizzle Team
•Created by focused_morning on 8/23/2023 in #help
Invalid default value for 'updatedAt'
I also tried this with no success. Not sure what i'm doing wrong, any thoughts? @angelelz
timestamp("createdAt").defaultNow()
33 replies
DTDrizzle Team
•Created by focused_morning on 8/23/2023 in #help
Invalid default value for 'updatedAt'
@iceage2ondvd
33 replies
DTDrizzle Team
•Created by focused_morning on 8/23/2023 in #help
Invalid default value for 'updatedAt'
timestamp("time").default(sql
current_timestamp())
doesnt work for me.33 replies
DTDrizzle Team
•Created by focused_morning on 8/23/2023 in #help
Invalid default value for 'updatedAt'
Updating this post, this doesn't work. Trying @iceage2ondvd 's fix next and will update.
33 replies
DTDrizzle Team
•Created by focused_morning on 8/23/2023 in #help
Invalid default value for 'updatedAt'
no worries, I just want your question answered.
33 replies
DTDrizzle Team
•Created by focused_morning on 8/23/2023 in #help
Invalid default value for 'updatedAt'
@justhugo I would ask in a separate thread so this one stays on topic.
33 replies
DTDrizzle Team
•Created by focused_morning on 8/23/2023 in #help
Invalid default value for 'updatedAt'
33 replies
DTDrizzle Team
•Created by focused_morning on 8/23/2023 in #help
Invalid default value for 'updatedAt'
I guess the generated sql would be the same. we are using planetscale btw
33 replies
DTDrizzle Team
•Created by focused_morning on 8/23/2023 in #help
Invalid default value for 'updatedAt'
Did you try to generate and push from a schema?
33 replies
DTDrizzle Team
•Created by focused_morning on 8/23/2023 in #help
Invalid default value for 'updatedAt'
@therealguy_ dropping a table seems a little harsh
33 replies