Add avatar_url column to users table and create migration scripts for adding and removing it
This commit is contained in:
@@ -620,12 +620,10 @@ class _AccountSettingsDialogState extends State<AccountSettingsDialog> {
|
||||
),
|
||||
const SizedBox(height: 24),
|
||||
|
||||
// Save Button
|
||||
Center(
|
||||
child: SizedBox(
|
||||
width: 144,
|
||||
child: ModernGlassButton(
|
||||
onPressed: _isLoading ? () {} : _updateProfile,
|
||||
onPressed: _isLoading ? null : _updateProfile,
|
||||
isLoading: _isLoading,
|
||||
child: _isLoading
|
||||
? const SizedBox(
|
||||
@@ -641,7 +639,6 @@ class _AccountSettingsDialogState extends State<AccountSettingsDialog> {
|
||||
: const Text('Save Changes'),
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 2), // Space for logout button
|
||||
],
|
||||
),
|
||||
|
||||
1
go_cloud/migrations/0010_add_avatar_url.sql
Normal file
1
go_cloud/migrations/0010_add_avatar_url.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE users ADD COLUMN avatar_url TEXT;
|
||||
1
go_cloud/migrations/0010_add_avatar_url_down.sql
Normal file
1
go_cloud/migrations/0010_add_avatar_url_down.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE users DROP COLUMN avatar_url;
|
||||
Reference in New Issue
Block a user