skip to Main Content

Laravel: Getting 'SQLSTATE[HY000]: General error: 1 no such table: webServiceLogs' when trying to store in database – Phpmyadmin

I have set up a migration file: use IlluminateDatabaseMigrationsMigration; use IlluminateDatabaseSchemaBlueprint; use IlluminateSupportFacadesSchema; class LogggingTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::connection('mysql2')->create('webServiceLogs', function (Blueprint $table) { $table->bigIncrements('id'); $table->timestamps(); $table->string('query');…

VIEW QUESTION

Postgresql – Can't run Typeorm migrations in nestjs

I was following this blog https://wanago.io/2022/07/25/api-nestjs-database-migrations-typeorm/ to setup migrations in my nestjs project but got the error that dataSourceFileExport i.e DataSource object exported from the migration.config.ts is not iterable. And I don't know why it's not iterable. I couldn't find…

VIEW QUESTION
Back To Top
Search