-
I have done one migration in the past using: $table->magellanPoint('geo_location') Now I'll need to make it as nullable, I'm trying to use the "change()" method $table->magellanPoint('geo_location')->nullable()->change(); This is giving me following error
|
Beta Was this translation helpful? Give feedback.
Answered by
hjJunior
Mar 26, 2024
Replies: 1 comment
-
I have implemented the raw sql statement: public function up(): void
{
DB::statement('ALTER TABLE addresses ALTER COLUMN geo_location DROP NOT NULL;');
}
public function down(): void
{
DB::statement('ALTER TABLE addresses ALTER COLUMN geo_location SET NOT NULL');
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hjJunior
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have implemented the raw sql statement: