You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
→ 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
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Output
The text was updated successfully, but these errors were encountered: