Comments (3)
Steps to reproduce:
Have a system on the previous version:
./pi-manage db stamp 5cb310101a1f
Remove nodename table from DB.
Now add the nodename table:
./pi-manage db upgrade e3a64b4ca634
Works.
Now try to add the node_uuid:
./pi-manage db upgrade d0e7144947d0
Result:
Running online
(sqlite3.OperationalError) near "ALTER": syntax error
[SQL: ALTER TABLE nodename ALTER COLUMN id TYPE VARCHAR(36)]
(Background on this error at: https://sqlalche.me/e/14/e3q8)
from privacyidea.
Unfortunately SQLite does not support ALTER TABLE
statements which change the type of the column:
https://www.sqlite.org/lang_altertable.html#making_other_kinds_of_table_schema_changes
We can add render_as_batch=True
to the context.configure
here:
Line 92 in 09925da
but i'll have to check whether this impacts the migration of other DBMs
(Source: https://stackoverflow.com/questions/30378233/sqlite-lack-of-alter-support-alembic-migration-failing-because-of-this-solutio)
from privacyidea.
Merge migration scripts
from privacyidea.
Related Issues (20)
- dpkg: error processing package privacyidea-apache2 (--configure) HOT 2
- E: The repository 'http://lancelot.netknights.it/community/bionic/stable focal Release' does not have a Release file. HOT 1
- Label policies for PUSH token enroll via validate/check
- Allow to change the text during multichallenge enrollment
- EventHandler: Order of stacking with policies
- Additional Event Condition: Result->Authentication
- Fix policy description
- login_text in webui policy is not applied HOT 12
- 2 person login HOT 3
- Mark privacyidea token in the qr code
- Can't connect via ldap-proxy plugin HOT 6
- Email format validation during enroll via multichallenge HOT 1
- Support button: Create support request HOT 1
- Add index to Challenge.expiration column HOT 2
- Wrong confirmDelete() call in JS
- Wrong text during enrolling email via multichallenge
- Error in web UI when an unexpected entry is encountered during generation of a drop-down list HOT 1
- Filter visibiltiy of User attributes
- Bug report - token description HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from privacyidea.