Skip to content

Commit

Permalink
fix sql migration
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Dec 10, 2023
1 parent 4de25b3 commit e066e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/migration.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ CREATE TABLE IF NOT EXISTS files
);

INSERT INTO files (name, document_id, document_version, content, language)
SELECT DISTINCT 'untitled' as name, id as document_id, version * 1000 as document_version, content, language
SELECT 'untitled' as name, id as document_id, version * 1000 as document_version, content, language
FROM documents;

DROP TABLE documents;
Expand Down

0 comments on commit e066e87

Please sign in to comment.