Open fukamachi opened 9 years ago
Currently, the following code will raise an error.
(defclass tweet () ((user :type text)) (:metaclass <dao-table-class>)) (execute-sql (table-definition 'tweet)) (defclass tweet () ((user :type text)) (:metaclass <dao-table-class>) (:table-name "tweets")) ;; <= adding this line (migrate-table 'tweet) ;=> ERROR
Renaming a table name can be done by RENAME TABLE in MySQL, and ALTER TABLE name RENAME TO new_name in SQLite/PostgreSQL.
RENAME TABLE
ALTER TABLE name RENAME TO new_name
Currently, the following code will raise an error.
Renaming a table name can be done by
RENAME TABLE
in MySQL, andALTER TABLE name RENAME TO new_name
in SQLite/PostgreSQL.