System Information
- Strapi Version: 4.0.7
- Operating System: Ubuntu 20.04.3 LTS
- Database: PG 13.4
- Node Version: v12.22.7
- NPM Version: 6.14.15
- Yarn Version: 1.22.17
I was changing my column names and I broke my database in such a way that I cannot load Strapi. I tried logging into Postgres to drop the tables but the table ‘seeds’ did not exist. How do I get Strapi out of this funk? My Strapi Server is not under version control but I did make a backup of the database image.
[2022-03-13 03:32:03.153] debug: ⛔️ Server wasn't able to start properly.
[2022-03-13 03:32:03.155] error: alter table "seeds" alter column "id" drop not null - column "id" is in a primary key
error: alter table "seeds" alter column "id" drop not null - column "id" is in a primary key
at Parser.parseErrorMessage (/srv/strapi-azure/node_modules/pg-protocol/dist/parser.js:287:98)
at Parser.handlePacket (/srv/strapi-azure/node_modules/pg-protocol/dist/parser.js:126:29)
at Parser.parse (/srv/strapi-azure/node_modules/pg-protocol/dist/parser.js:39:38)
at TLSSocket.<anonymous> (/srv/strapi-azure/node_modules/pg-protocol/dist/index.js:11:42)
at TLSSocket.emit (events.js:314:20)
at TLSSocket.EventEmitter.emit (domain.js:483:12)
at addChunk (_stream_readable.js:297:12)
at readableAddChunk (_stream_readable.js:272:9)
at TLSSocket.Readable.push (_stream_readable.js:213:10)
at TLSWrap.onStreamRead (internal/stream_base_commons.js:188:23)
error Command failed with exit code 1.