We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error : local.ERROR: Undefined index: primary {"exception":"[object] (ErrorException(code: 0): Undefined index: primary at /Volumes/documents/server/wwwroot/wechaty/crm.app.wechaty.net/vendor/reliese/laravel/src/Meta/Sqlite/Schema.php:147)
update this function: before:
/** * @param \Reliese\Meta\Blueprint $blueprint * @todo: Support named primary keys */ protected function fillPrimaryKey(Blueprint $blueprint) { $indexes = $this->manager()->listTableIndexes($blueprint->table()); $key = [ 'name' => 'primary', 'index' => '', 'columns' =>$indexes['primary']->getColumns(), ]; $blueprint->withPrimaryKey(new Fluent($key)); }
after:
/** * @param \Reliese\Meta\Blueprint $blueprint * @todo: Support named primary keys */ protected function fillPrimaryKey(Blueprint $blueprint) { $indexes = $this->manager()->listTableIndexes($blueprint->table()); $key = [ 'name' => 'primary', 'index' => '', 'columns' => optional($indexes['primary']??null)->getColumns(), ]; $blueprint->withPrimaryKey(new Fluent($key)); }
The text was updated successfully, but these errors were encountered:
Fix Undefined index:primary for SQLITE
8df5efa
@ref reliese#223
4ff7738
@ref reliese/laravel#223
570ba13
a1ef73f
4cc2871
No branches or pull requests
error : local.ERROR: Undefined index: primary {"exception":"[object] (ErrorException(code: 0): Undefined index: primary at /Volumes/documents/server/wwwroot/wechaty/crm.app.wechaty.net/vendor/reliese/laravel/src/Meta/Sqlite/Schema.php:147)
update this function:
before:
after:
The text was updated successfully, but these errors were encountered: