Closed macthecadillac closed 7 months ago
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? If a new instance, please delete your volume folder contents and re-create the containers from fresh data, then share the error you see on first run. The error you've shared above should only really occur on subsequent migration runs, not the first.
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 podman system reset
and deleted all the files in the volumes, it somehow fixed itself. I suppose the original problem I faced came from the --userns keep-id
option, but once I removed that it was no longer an issue.
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