Add a fqn field to blogs and users #457
No reviewers
Labels
No labels
A: API
A: Backend
A: Federation
A: Front-End
A: I18N
A: Meta
A: Security
Build
C: Bug
C: Discussion
C: Enhancement
C: Feature
Compatibility
Dependency
Design
Documentation
Good first issue
Help welcome
Mobile
Rendering
S: Blocked
S: Duplicate
S: Incomplete
S: Instance specific
S: Invalid
S: Needs Voting/Discussion
S: Ready for review
Suggestion
S: Voted on Loomio
S: Wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Plume/Plume#457
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fqn"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #319
Codecov Report
❓
what makes you think i managed to correctly create my instance in go?
I'm wondering. On a brand new, uninitialized instance, does it works? The select would return 0 rows, so does the CASE never match, or does it fail?
I think it will never run, since there are no blogs or users, so no problem.
@ -0,0 +4,4 @@(CASE WHEN (SELECT local FROM instances WHERE id = instance_id) THENactor_idELSE(actor_id || '@' || (SELECT public_domain FROM instances WHERE id = instance_id LIMIT 1))why LIMIT 1? Isn't id unique?
@ -0,0 +4,4 @@(CASE WHEN (SELECT local FROM instances WHERE id = instance_id) THENactor_idELSE(actor_id || '@' || (SELECT public_domain FROM instances WHERE id = instance_id LIMIT 1))Just to be sure. 😛
sqlite doesn't allow to drop column, you have to do the annoying copy thing
Ah, yes, forgot about that… 😑
the no_fqn tables are maybe to close of their "with fqn" counterpart?
blogs_no_fqn,fqn TEXT NOT NULL...users_no_fqn,fqn TEXT NOT NULL...Ah, that's why it was telling me I was not supplying enough values when doing
INSERT INTO blogs_no_fqn SELECT all, the, columns, but, not, fqn FROM blogs;. 😬@ -43,6 +43,7 @@ table! {ap_url -> Text,private_key -> Nullable<Text>,public_key -> Text,fqn -> Text,this is not supposed to be Nullable, but I don't get where it come from, your migrations aren't touching this table
@ -43,6 +43,7 @@ table! {ap_url -> Text,private_key -> Nullable<Text>,public_key -> Text,fqn -> Text,Diesel is regenerating the schema when running migrations, so it changed when I tested with SQlite.
@ -43,6 +43,7 @@ table! {ap_url -> Text,private_key -> Nullable<Text>,public_key -> Text,fqn -> Text,For some reason, comment_seers's id is an
INTEGER PRIMARY KEY AUTOINCREMENT, not anINTEGER NOT NULL PRIMARY KEY AUTOINCREMENTon sqlite (but fine on pg I assume), that's why the scheme was invalidEdit : I know why, this was introduced in this commit :
fdfeeed6d9, my bad