-
-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🎉 cloudflare images DB setup #4274
Conversation
Quick links (staging server):
Login:
SVG tester:Number of differences (default views): 0 ✅ Edited: 2024-12-10 16:58:58 UTC |
ADD COLUMN hash VARCHAR(255) NULL, | ||
MODIFY COLUMN googleId VARCHAR(255) NULL, | ||
MODIFY COLUMN defaultAlt VARCHAR(1600) NULL;`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just remembered there is this convention I like that I learned when using Django, where you don't allow char/text fields to be null, because then you have two ways to represent an empty value — empty string and null — and you usually don't want that.
We don't have to change it now, especially if you don't feel like you'd have enough time to test it. Otherwise, I think it would be good to do or just think about it in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's true, the billion dollar mistake and all. Maybe let's pen that in for a tech tea to see if we want to set a strong commitment to standardizing on this throughout the DB.
"Are you sure you want to delete ALL images from Cloudflare Images? (y/n) ", | ||
(answer) => { | ||
if (answer.toLowerCase() === "y") { | ||
console.log("May God have mercy on your soul.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol
} | ||
|
||
await db.knexReadWriteTransaction(async (trx) => { | ||
// await purgeRecords(trx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this commented out on purpose?
Just the DB changes from #4214 so that we can merge this first, make sure the DB data is correct, and then merge the code changes