Add avatar_url column to users table and create migration scripts for adding and removing it

This commit is contained in:
Leon Bösche
2026-01-29 10:45:08 +01:00
parent 688cec90a8
commit 071f32ddea
3 changed files with 3 additions and 4 deletions

View File

@@ -620,12 +620,10 @@ class _AccountSettingsDialogState extends State<AccountSettingsDialog> {
), ),
const SizedBox(height: 24), const SizedBox(height: 24),
// Save Button
Center(
child: SizedBox( child: SizedBox(
width: 144, width: 144,
child: ModernGlassButton( child: ModernGlassButton(
onPressed: _isLoading ? () {} : _updateProfile, onPressed: _isLoading ? null : _updateProfile,
isLoading: _isLoading, isLoading: _isLoading,
child: _isLoading child: _isLoading
? const SizedBox( ? const SizedBox(
@@ -641,7 +639,6 @@ class _AccountSettingsDialogState extends State<AccountSettingsDialog> {
: const Text('Save Changes'), : const Text('Save Changes'),
), ),
), ),
),
const SizedBox(height: 2), // Space for logout button const SizedBox(height: 2), // Space for logout button
], ],
), ),

View File

@@ -0,0 +1 @@
ALTER TABLE users ADD COLUMN avatar_url TEXT;

View File

@@ -0,0 +1 @@
ALTER TABLE users DROP COLUMN avatar_url;