From 150dec1cc24b944377f49289fc8b94d3eb80bdd0 Mon Sep 17 00:00:00 2001 From: EmosewaMC <39972741+EmosewaMC@users.noreply.github.com> Date: Sun, 9 Jan 2022 00:12:49 -0800 Subject: [PATCH] Added file to run on table charinfo to allow for unique names only Created a new file to run on the MySQL database to alter the MySQL table charinfo.names to only allow unique entries --- migrations/dlu/1_unique_charinfo_names.sql | 1 + 1 file changed, 1 insertion(+) create mode 100644 migrations/dlu/1_unique_charinfo_names.sql diff --git a/migrations/dlu/1_unique_charinfo_names.sql b/migrations/dlu/1_unique_charinfo_names.sql new file mode 100644 index 00000000..cdf2537c --- /dev/null +++ b/migrations/dlu/1_unique_charinfo_names.sql @@ -0,0 +1 @@ +ALTER TABLE charinfo ADD UNIQUE (name); \ No newline at end of file