Error on migration:run #4183
-
I last ran a migration a week or so ago on production and have ran many in the past. Now when I do I get an error: Obviously dev works fine. This is on production on a Digital Ocean droplet The database is up and running. I can login the app and do what I need. Any ideas on this? At least where to start investigating? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hello @dmeinke-etc, Have you check this stackoverflow link ? I think you have to set the sql variable Model: export default class User extends BaseModel {
@column({ isPrimary: true })
public id: number;
//... Migration: export default class extends BaseSchema {
protected tableName = "users";
public async up() {
this.schema.createTable(this.tableName, (table) => {
table.increments("id").primary();
// ... |
Beta Was this translation helpful? Give feedback.
-
This was the answer |
Beta Was this translation helpful? Give feedback.
This was the answer
https://stackoverflow.com/questions/62418099/unable-to-create-or-change-a-table-without-a-primary-key-laravel-digitalocean