Lançado Adianti Framework 7.6!
Clique aqui para saber mais
Erro ao atualizar o Framework 7.4.2 para 7.5.0 Boa tarde, pessoal. Estou enfrentando alguns erros ao atualizar o framework da versão 7.4.2 para 7.5.0 estou utilizando o template. MySQL 5.7.39 No arquivo permission-update.sql: INSERT INTO system_group_program VALUES((select coalesce(max(id),0)+1 from system_group_program b), 2, (select id from system_program where controller='SystemWikiView'...
AR
Erro ao atualizar o Framework 7.4.2 para 7.5.0  
Boa tarde, pessoal.

Estou enfrentando alguns erros ao atualizar o framework da versão 7.4.2 para 7.5.0 estou utilizando o template. MySQL 5.7.39

No arquivo permission-update.sql:
INSERT INTO system_group_program VALUES((SELECT coalesce(max(id),0)+1 FROM system_group_program b), 2, (SELECT id FROM system_program WHERE controller='SystemWikiView'));

Erro SQL (1242): Subquery returns more than 1 row


No arquivo: communication-update.sql:
CREATE TABLE system_post_share_group ( id INTEGER PRIMARY KEY NOT NULL, system_group_id INT, system_post_id int REFERENCES system_post (id) not null ); CREATE TABLE system_post_tag ( id INTEGER PRIMARY KEY NOT NULL, system_post_id int REFERENCES system_post (id) not null, tag text not null ); CREATE TABLE system_post_comment ( id INTEGER PRIMARY KEY NOT NULL, comment TEXT not NULL, system_user_id int not null, system_post_id int REFERENCES system_post (id) not null, created_at timestamp not null ); CREATE TABLE system_post_like ( id INTEGER PRIMARY KEY NOT NULL, system_user_id int, system_post_id int REFERENCES system_post (id) not null, created_at timestamp not null ); CREATE TABLE system_wiki_tag ( id INTEGER PRIMARY KEY NOT NULL, system_wiki_page_id int REFERENCES system_wiki_page (id) not null, tag text not null ); CREATE TABLE system_wiki_share_group ( id INTEGER PRIMARY KEY NOT NULL, system_group_id int, system_wiki_page_id int REFERENCES system_wiki_page (id) not null );

Erro SQL (1064): 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 'not null)' at line 4

No caso das querys do communication-update.sql ao retirar o NOT NULL da linha REFERENCES, o código funciona.

Alguém passou por algo parecido?

Editado 20/12/2022 (há 1 ano) - Clique para ver alterações

Pacotão Dominando o Adianti Framework 7
O material mais completo de treinamento do Framework.
Curso em vídeo aulas + Livro completo + Códigos fontes do projeto ERPHouse.
Conteúdo Atualizado! Versão 7.4


Dominando o Adianti 7 Quero me inscrever agora!

Comentários (0)