Open dakotawashok opened 1 month 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 sent an email to that one as well, but didn't get a response. I'm going to try again, but feel free to send me a message as well @jbrooksuk
@dakotawashok weird, I've not received any emails r.e. Cachet. Can you try sending to my alt-three.com again please?
🫡 It's sent! Let me know if you get this one:
Also, we're getting this error when using regular pgsql
as well, not just sqlite. We can go over how we install it/deploy it in email/chatting.
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