Open dakotawashok opened 2 weeks ago
What database service are you using?
Sorry, I'm not entirely sure. I believe it's just Sqlite with a database/database.sqlite
file.
This migration is based off the spatie/laravel-settings
migration — Cachet 3.x will migrate 2.x settings to the new format. https://github.com/spatie/laravel-settings/blob/main/database/migrations/create_settings_table.php.stub#L17
They don't have a nullable
json field either... I wonder why that's failing for you. It doesn't happen when I run composer start
...
@dakotawashok are you migrating a 2.x instance of Cachet or starting fresh?
@jbrooksuk This is a new, fresh project using the 3.x branch as a base.
Are you using sqlite when you run composer start
to run the migrations, or another type of DB?
In fact, I'm not able to run composer start
at all, it gives me this error:
@dakotawashok just to check, are you cloning the Core repository or Cachet? The start
and dev
commands are definitely there, https://github.com/cachethq/core/blob/5557a4124a8a060b01c587fe58b012c3484b371b/composer.json#L72-L79.
@jbrooksuk I think I'm cloning the cachethq/cachet@3.x branch, is that not the right way to install? https://github.com/cachethq/cachet/blob/a3ca218f97c252276ba46a61d775e3122254431c/composer.json#L47
@dakotawashok yeah, cloning the 3.x
branch is correct. Would you be open to emailing me, james [at] cachethq [dot] io and perhaps we could have a call to figure this out? I think it'd be easier!
@jbrooksuk Absolutely, I'd be happy to!
Great! I look forward to it 😄
I sent an email, lemme know if you got it 👍🏻
I didn't, sorry! Try james@alt-three.com instead please :)
I think this error is because the migration didn't specify that this field can be nullable. Altering the line to
$table->json('payload')->nullable()->after('locked');
allows the migrations to run successfully.https://github.com/cachethq/core/blob/9372410620c76108a77813ba40b24e509dd9fa87/database/migrations/2024_01_22_202432_update_settings_table.php#L17