-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Steps to reproduce
→ DB_DEBUG=1 vendor/bin/emerails_generate model -f "name:varchar(128),surname:varchar(128),birthday:date,gender:enum('male','female','nonbinary')" person
Output
_ __
___ ____ ___ ___ _________ _(_) /____
/ _ \/ __ `__ \/ _ \/ ___/ __ `/ / / ___/
/ __/ / / / / / __/ / / /_/ / / (__ )
\___/_/ /_/ /_/\___/_/ \__,_/_/_/____/
(c) Claudio Procida 2008-2023
EmeRails Generator Utility v1.0
creating models/person.php
<pre class="db-debug">SHOW TABLES LIKE 'people'</pre>
<pre class="db-debug">CREATE TABLE `people` (
`id` int(11)
,`name` varchar(128)
,`surname` varchar(128)
,`birthday` date
,`gender` enum('male'
,`'female'`
,`'nonbinary')`
);</pre>
☠ Error (CREATE TABLE `people` (
`id` int(11)
,`name` varchar(128)
,`surname` varchar(128)
,`birthday` date
,`gender` enum('male'
,`'female'`
,`'nonbinary')`
);): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`'female'`
,`'nonbinary')`
)' at line 7
Reactions are currently unavailable