SQlite: migration failing #524

Closed
opened 2026-02-04 20:45:17 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @bridgeyuwa on GitHub (Dec 15, 2017).

SQlite: migration failing

  • BookStack Version *: 0.11
  • PHP Version: 7.0
    *Sqlite

Trying to install bookstack on an Sqlite database

Throwing This Exception

[Illuminate\Database\QueryException]
SQLSTATE[HY000]: General error: 1 Cannot add a NOT NULL column with default
value NULL (SQL: alter table "pages" add column "created_by" integer not n
ull)
[PDOException]
SQLSTATE[HY000]: General error: 1 Cannot add a NOT NULL column with default
value NULL

screen shot 2017-12-15 at 6 20 05 pm

Steps to Reproduce

Just run "php artisan migrate"

Originally created by @bridgeyuwa on GitHub (Dec 15, 2017). ### SQlite: migration failing * BookStack Version *: 0.11 * PHP Version: 7.0 *Sqlite Trying to install bookstack on an Sqlite database ##### Throwing This Exception [Illuminate\Database\QueryException] SQLSTATE[HY000]: General error: 1 Cannot add a NOT NULL column with default value NULL (SQL: alter table "pages" add column "created_by" integer not n ull) [PDOException] SQLSTATE[HY000]: General error: 1 Cannot add a NOT NULL column with default value NULL ![screen shot 2017-12-15 at 6 20 05 pm](https://user-images.githubusercontent.com/17090054/34038175-64fa24e0-e1c6-11e7-956e-4a07bcd645e4.png) ##### Steps to Reproduce Just run "php artisan migrate"
Author
Owner

@AbijeetP commented on GitHub (Dec 15, 2017):

BookStack does not support SQLite, only MySQL and by extension, MariaDB is supported.

@AbijeetP commented on GitHub (Dec 15, 2017): BookStack does not support SQLite, only MySQL and by extension, MariaDB is supported.
Author
Owner

@bridgeyuwa commented on GitHub (Dec 15, 2017):

Bookstack is built on laravel... it sure can support SQlite. Just Altering the migrations should do that

@bridgeyuwa commented on GitHub (Dec 15, 2017): Bookstack is built on laravel... it sure can support SQlite. Just Altering the migrations should do that
Author
Owner

@ssddanbrown commented on GitHub (Dec 16, 2017):

@bridgeyuwa Thanks for creating this issue.

@AbijeetP is correct. While Laravel does support SQLite, BookStack does currently not.

An issue to add support is already open under #367 so I will close this. I would like to support SQLite at some stage to make setup for smaller instances even easier/more manageable but we do have to take into account the extra amount of testing and maintenance required going forward to add SQLite support.

@ssddanbrown commented on GitHub (Dec 16, 2017): @bridgeyuwa Thanks for creating this issue. @AbijeetP is correct. While Laravel does support SQLite, BookStack does currently not. An issue to add support is already open under #367 so I will close this. I would like to support SQLite at some stage to make setup for smaller instances even easier/more manageable but we do have to take into account the extra amount of testing and maintenance required going forward to add SQLite support.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#524