Skip to content
New issue

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

資料庫缺少"demo_documents" 表格 #68

Open
WingCH opened this issue Apr 18, 2020 · 0 comments
Open

資料庫缺少"demo_documents" 表格 #68

WingCH opened this issue Apr 18, 2020 · 0 comments

Comments

@WingCH
Copy link

WingCH commented Apr 18, 2020

image

localhost:8000/documents

image

QueryException In Connection.php line 664 :
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'laravel_admin_demo.demo_documents' doesn't exist (SQL: select count(*) as aggregate from demo_documents where demo_documents.deleted_at is null)

我通過自行增加解決

CREATE TABLE `demo_documents` (
  `id` int NOT NULL,
  `title` varchar(255) DEFAULT NULL,
  `desc` varchar(255) DEFAULT NULL,
  `path` varchar(255) DEFAULT NULL,
  `view_count` int DEFAULT NULL,
  `download_count` int DEFAULT NULL,
  `rate` int DEFAULT NULL,
  `sort` int DEFAULT NULL,
  `privilege` tinyint(1) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `uploader_id` varchar(255) DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant