Jan Böhmer
4bed50d894
Allow database migration from legacy versions even if the perms_label column is missing in the groups table
...
This fixes issue #366 and #67
2023-09-09 23:04:50 +02:00
Jan Böhmer
c737348cea
Dont skip the Sqlite migration. Do nothing instead
...
Before this migration was never finished and always re executed on subsequent migration attempts.
2023-07-31 22:30:02 +02:00
Jan Böhmer
e8e2258357
Added migration for SQLite
2023-07-31 22:28:19 +02:00
Jan Böhmer
0f336b6f89
Allow for longer manufacturer and supplier URLs
2023-07-31 00:00:57 +02:00
Jan Böhmer
6a00b8e168
Added possibility to manage client_credentials OAuth tokens
2023-07-30 15:24:46 +02:00
Jan Böhmer
5c17aee1e4
Properly escape group table name
...
Otherwise MySQL 8 will not be able to use this schema
2023-07-17 00:49:25 +02:00
Jan Böhmer
f423fdf7f8
Fixed bug in DB schema, which prevented the creation of parts without info provider reference
2023-07-16 23:48:55 +02:00
Jan Böhmer
edc54aaf91
Added migrations for sqlite and new additional_names field
2023-07-16 20:47:25 +02:00
Jan Böhmer
a95ba1acc4
Add a reference to the used info provider to a part
2023-07-16 01:24:49 +02:00
Jan Böhmer
7c03630e24
Added DB migration to fix compatibility with latest webauthn bundle
2023-05-28 02:06:48 +02:00
Jan Böhmer
557347d42d
Fixed legacy database migration for newer MySQL version
2023-05-07 21:43:01 +02:00
Jan Böhmer
19ae9e7456
Fixed issue preventing migration from legacy Part-DB version
...
This bug was introduced during the fix for issue #260 (commit 2717d7d
). With this commit issue #287 should be fixed
2023-05-07 02:29:32 +02:00
Jan Böhmer
303a3690e8
Normalize class_names for attachments migrated from legacy Part-DB database
...
This fixes issue #272
2023-04-17 23:52:08 +02:00
Jan Böhmer
c317bc020a
Theme config migration should now work properly when migrating from legacy DB
2023-04-15 00:51:32 +02:00
Jan Böhmer
4065fb77da
Properly escape group table name in legacy DB migration for compatibility with MySQL 8
...
Fixes issue #271
2023-04-15 00:49:02 +02:00
Jan Böhmer
fc1d2269d0
Fixed error with default values on older MySQL version
...
We have removed the default values for the columns completly, as it were only needed on SQLite when adding the column to existing row.
As this was done in an earlier migration, we can now safely remove it.
The MySQL now correctly detects no more changes. SQLite however still generates some wrong migration changes.
2023-04-09 01:17:48 +02:00
Jan Böhmer
cc033d5be7
Properly escape users and groups table name for newer MySQL version
2023-04-09 00:08:08 +02:00
Jan Böhmer
7eee3de965
Added fixing migrations for sqlite
2023-04-09 00:07:23 +02:00
Jan Böhmer
0c6245fe8e
Removed unused migration
2023-04-09 00:04:56 +02:00
Jan Böhmer
342ed382e3
Properly mark the tinyint column with a comment, so that migrations can properly detect that no changes are needed
2023-04-09 00:04:13 +02:00
Jan Böhmer
aaf6c37871
Fixed some minor issues in database schema of MySQL
2023-04-08 23:49:47 +02:00
Jan Böhmer
65e1346a11
Improved output of some messages during migration
2023-04-08 23:39:45 +02:00
Jan Böhmer
036eaf3bae
Removed warnings about changed permissions, as the old changes are reset later, and we now do the permission migration in Part-DB directly
2023-04-08 23:29:23 +02:00
Jan Böhmer
2717d7d311
Only drop the foreign keys during migration from legacy Part-DB DBs if they really exist
...
This should fix issue #260
2023-04-08 23:27:10 +02:00
Jan Böhmer
5b5e8a4fd5
Allow users (and admins) to decide whether their email should be shown on their public profile
2023-04-08 19:53:05 +02:00
Jan Böhmer
71b0c2d83e
Properly quote users table for compatibility with newer MySQL databases
2023-04-08 19:51:29 +02:00
Jan Böhmer
749e7dbdf9
Rempve default value definitions, which cause problems on MySQL 8
2023-04-03 01:03:16 +02:00
Jan Böhmer
64199b91d5
Synchronized MySQL schema with entity definitions
2023-04-03 00:53:58 +02:00
Jan Böhmer
c8218f6891
Added an explicit type for an old migration, so that (new) sqlite databases do not have a phase where a field has no type
2023-04-03 00:49:24 +02:00
Jan Böhmer
8e2f297839
Added migrations for sqlite
2023-04-03 00:47:51 +02:00
Jan Böhmer
047c82791b
Added basic fields and migration for MySQL
2023-04-02 19:10:36 +02:00
Jan Böhmer
97c3b9002a
Mark SAML users as so in database and disable local password changing then.
2023-02-21 00:29:50 +01:00
Jan Böhmer
f9d5a9a3b5
Fixed problem with failing foreign key constraints on preview pic (2/2)
2023-02-20 00:09:23 +01:00
Jan Böhmer
82aec6f1ee
Fixed problem with failing foreign key constraints on preview pic (1/2)
2023-02-20 00:06:00 +01:00
Jan Böhmer
29bce6f19f
Use permissions presets as initial settings for group permissions during migration
2023-01-23 21:46:24 +01:00
Jan Böhmer
eddf956f63
Do not use RENAME INDEX as it is not supported in older MariaDB versions
2023-01-08 23:57:00 +01:00
Jan Böhmer
011bda3600
Rename indices instead of dropping and creating them again
...
This should hopefully fix the failing migration on test action.
2023-01-08 22:05:06 +01:00
Jan Böhmer
897ea72bd0
Removed DEFAULT value for description on projects table as thats not supported on older MySQL version
2023-01-08 19:19:40 +01:00
Jan Böhmer
e423ef1e09
Only drop the legacy foreign key if migrated from legacy DB.
2023-01-08 18:57:56 +01:00
Jan Böhmer
e679317b4b
Added project system database schema for SQLite
2023-01-08 18:17:52 +01:00
Jan Böhmer
79db46b8e6
Renamed devices table to projects to have the same name as the entities.
2023-01-08 18:01:56 +01:00
Jan Böhmer
0e020dab74
Added an price field to allow defining the price of non-part BOM entries
2022-12-31 18:57:36 +01:00
Jan Böhmer
adc070d10c
Added possibility to set project status
2022-12-29 15:22:34 +01:00
Jan Böhmer
b83b55b8d4
Added some constraints and validations to the BOM entries.
2022-12-26 13:57:11 +01:00
Jan Böhmer
0c7ec9f0c7
Added some basic DB fields for the new project system
2022-12-18 20:34:25 +01:00
Jan Böhmer
a0f934169c
Allow to delete users while keeping log entries.
2022-12-17 00:25:54 +01:00
Jan Böhmer
e00ca9b4a9
Added IPN migration for SQLite
...
This should fix issue #167
2022-12-05 22:33:58 +01:00
Jan Böhmer
b1d359f538
Added internal part number field to parts
2022-12-04 02:28:47 +01:00
Jan Böhmer
984fc9be14
Escape users and groups table name in migration as these are reserved words in MySQL 8
...
Should fix issue #194 .
2022-11-28 13:54:50 +01:00
Jan Böhmer
414c417b69
Added link to announcement where you can get more infos about upgrading permission system.
2022-11-27 23:10:15 +01:00