-
-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQLSTATE during migration #206
Comments
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid. |
Is this an upgrade of an old version? Or a new instance? |
Thanks for the very prompt response and this fantastic piece of software. It's a new instance, but yes the initial error was a bit different. I did a full system reset through |
Is there an existing issue for this?
Current Behavior
2020_12_30_173528_add_owned_by_field_to_entities ................. 14ms FAIL
Illuminate\Database\QueryException
SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'owned_by' (SQL: alter table
pages
addowned_by
int unsigned not null)at /app/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:760
756▕ // If an exception occurs when attempting to run a query, we'll format the error
757▕ // message to include the bindings with SQL, which will make this exception a
758▕ // lot more helpful to the developer instead of just the database's errors.
759▕ catch (Exception $e) {
➜ 760▕ throw new QueryException(
761▕ $query, $this->prepareBindings($bindings), $e
762▕ );
763▕ }
764▕ }
10 /app/www/database/migrations/2020_12_30_173528_add_owned_by_field_to_entities.php:19
Illuminate\Support\Facades\Facade::__callStatic()
36 /app/www/artisan:35
Illuminate\Foundation\Console\Kernel::handle()
Expected Behavior
Successful Migration and application startup.
Steps To Reproduce
Run the script. Error shows up in
podman container logs bookstack
Environment
CPU architecture
x86-64
Docker creation
Container logs
The text was updated successfully, but these errors were encountered: