-
-
Notifications
You must be signed in to change notification settings - Fork 828
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
Database naming changes #1236
Comments
One more change: see c31c1ea. |
This is useful for forums integrating with an external website (eg. a WordPress site), so they can reference existing avatars directly. For alternative storage locations (eg. S3) the best practice will still be to store a relative path and then configure an external base "assets URL" (this is not currently possible - TODO). Given this change, I think it would probably make sense to rename the column to `avatar_url` in the upcoming batch of database naming changes - then it can contain either a relative or an absolute URL - @franzliedke do you agree?
@tobscure the api-keys will have an allowed_ips column, but you didn't mention it being nullable. I can safely assume it should be nullable right? |
yes :) |
@flarum/core I suggested to @tobscure to change columns related to users to be postfixed with Old: Another question is why are we migrating columns to types that aren't supported by Laravel natively. This will limit our ability to support other drivers than MySQL in the future (even though Laravel supports several others). This is related to the settings table Let me know what you think! |
@tobscure can you explain to me what needs to be done with this: |
@luceos The As far as non-supported column types are concerned: if possible, we should avoid that, you are right. Can you list the columns (and their types) that use those strange types? (Or is that |
I believe I didn't initially propose a
I'm not necessarily against this if you guys think it's better, just explaining the original reasoning. The Stick with blob for settings |
Very good reasoning, Toby. That "no special case for user IDs" part convinced me. 😉 |
Okay so:
Got it. |
Waiting for #1339 to be merged so the foreign key can work again. |
- split up deprecated and remaining user notification logic - started building a test (needs work) - created new Model for NotificationPreference - created extender to register a NotificationChannel - created extender to maintain UserPreferences User preferences are still possible on the users table directly. Registering a user preference allows for transformation to happen. And provides easier accessors. Not sure we want this. ! tests need work.
As per https://gist.github.com/tobyzerner/b189580dd17b9def574f92692faa0e56
Edit by @luceos
The text was updated successfully, but these errors were encountered: