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

Undefined index #57

Closed
okami-chen opened this issue Jan 7, 2020 · 1 comment
Closed

Undefined index #57

okami-chen opened this issue Jan 7, 2020 · 1 comment

Comments

@okami-chen
Copy link

CREATE TABLE `mix_account` (
  `id` bigint(20) UNSIGNED NOT NULL COMMENT '编号',
  `user_id` bigint(20) UNSIGNED NOT NULL COMMENT '用户',
  `status` tinyint(3) UNSIGNED NOT NULL DEFAULT '1' COMMENT '状态',
  `mobile` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '手机号',
  `expire_at` datetime DEFAULT NULL COMMENT '创建时间',
  `deleted_at` datetime DEFAULT NULL COMMENT '删除时间',
  `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  `updated_at` datetime DEFAULT NULL COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `mix_account`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `mix_account_mobile_unique` (`mobile`),
  ADD KEY `mix_account_user_id_index` (`user_id`),
  ADD KEY `mix_account_status_index` (`status`),
  ADD KEY `mix_account_expire_at_index` (`expire_at`),
  ADD KEY `mix_account_deleted_at_index` (`deleted_at`);
ALTER TABLE `mix_account`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '编号', AUTO_INCREMENT=25;
COMMIT;
Undefined index: TABLE @/data/webroot/wizard/app/helpers.php:589
Undefined index: TABLE @/data/webroot/wizard/app/helpers.php:589
Invalid argument supplied for foreach() @/data/webroot/wizard/app/helpers.php:594
mylxsw added a commit that referenced this issue Jan 7, 2020
@mylxsw
Copy link
Owner

mylxsw commented Jan 7, 2020

这是因为数据结构目前只支持 CREATE 语句,已经修复,目前的策略是:只解析 CREATE 语句,其它语句忽略。

如果部署是直接 git clone 的源码,可以直接执行 git pull 来更新,如果用的 docker 部署的话,只能等等了,下一个版本会发布这个。

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

2 participants