Logo
Explore Help
Sign In
phundrak/ordabok
1
0
Fork 0
You've already forked ordabok
Code Issues Pull Requests Packages Projects Releases Wiki Activity
ordabok/migrations/2023-01-03-134434_create_word/down.sql

8 lines
196 B
MySQL
Raw Permalink Normal View History

Fix word name collision, add two new user-related features This commit changes the primary key of words to a serial number. That way, two words with the same normalized value will not collide with one another. It also adds two new tables in the database: - Users following languages - Users learning words The former can represent two stages of learning a word: - Either the user is currently learning it - Or they consider they know it and don’t need to work on it anymore These two new tables now have their API query available through the GraphQL API. This commit also fixes the issue of word-related tables and types not being dropped when resetting the database.
2023-01-18 10:26:45 +01:00
-- This file should undo anything in `up.sql`
DROP TABLE WordRelation;
DROP TABLE WordLearning;
DROP TABLE Words;
DROP TYPE WordLearningStatus;
DROP TYPE WordRelationship;
DROP TYPE PartOfSpeech;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 54ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API