Replies: 2 comments 9 replies
-
We had no intention of ending SQLite support, so this is simply a bug I hadn't known of and we need to fix it. -> I created the issue #1124 from this. However, I'll leave the discussion open for this point:
Having this in a migration was actually a deliberate decision - see https://github.com/foodcoops/foodsoft/blob/feature/1058-extended-article-units/doc/article_units_fork_architecture_changes.md#unit-selection:
I think having something like this in an automated rails migration is without alternative. If we were to remove it, users initially wouldn't have any units to choose from when creating new articles. But I think, what you might be suggesting, is to have something like a "Reset to default units" button in the articles list view - is that it? We could surely discuss having this as an extra feature. |
Beta Was this translation helpful? Give feedback.
-
How are you using SQLite in the first place, @robwa ? This can be fixed by setting |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The following problems occur when using an SQLite database. They have probably not been noticed so far, as most people tested with MariaDB. So far, Foodsoft has also run with an SQLite database, do we want to give that up?
20240726083743_create_article_units.rb
inserts unit codes directly into the database. We should consider being able to insert the data as seed data at any time and/or at the push of a button on the units page. This was noticed because the migration doesn't work with a SQLite database (use ofNOW()
).20240726083741_alter_articles_add_more_unit_logic.rb
the default value fororder_articles.quantity
is removed. As a result, the creation of a new order for a supplier fails when using an SQLite database:Beta Was this translation helpful? Give feedback.
All reactions