Skip to content

Conversation

@xprojects-de
Copy link

Q A
Bug fix? yes
New feature? no
Docs? no
Issues
License MIT

If the store is applied to a database that already contains other tables, the schema will not be defined correctly. The existing tables will be defined using a CREATE statement, which will result in an error. The pull request respects the existing structure, including the existing tables, and cleanly adds the new table.

@carsonbot carsonbot added Bug Something isn't working Status: Needs Review labels Nov 24, 2025
@carsonbot carsonbot changed the title Feature/fix doctrine dbal message store Feature/fix doctrine dbal message store Nov 24, 2025
@xprojects-de
Copy link
Author

I don't know why the Fabbot test is failing. It should be hasTable, not hashTable...
And I also don't know why PHP 8.2 fails. The test runs fine locally on my system under 8.2.

@OskarStark
Copy link
Contributor

You can ignore this check.

@Guikingone friendly ping

@Guikingone
Copy link
Contributor

Ah yes, I'm facing the same error locally on an existing database, I missed this part during tests 😓

$schemaManager = $this->dbalConnection->createSchemaManager();
$schema = $schemaManager->introspectSchema();

if ($schema->hasTable($this->tableName)) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The check could also be omitted. Then it would be possible to adjust the table.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bu if the table already exist, you're not supposed to add it again / alter it? 🤔

if would require to being able to passe extra fields during setup() calls, for now, it's not supported 🤔

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that would be exactly my use case :-) I just wanted to do it in two steps and fix the bug first.

It would be really nice if you could specify additional fields in the setup... I can gladly update the program so that's possible too...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I think the structure isn't quite there yet, since you would also have to adjust the load and save functions.

@OskarStark OskarStark changed the title Feature/fix doctrine dbal message store [Chat] Fix Doctrine DBAL message store Nov 24, 2025
@OskarStark
Copy link
Contributor

rebase to fix lowest build

@OskarStark
Copy link
Contributor

The rebase was wrong

@xprojects-de xprojects-de force-pushed the feature/fix-DoctrineDbalMessageStore branch from 25bd7d9 to be6ecf9 Compare November 25, 2025 16:20
@xprojects-de
Copy link
Author

oh yes sorry, i did a reflog. now it should be ok :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working Status: Needs Review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants