From 251f4395865f8a33bcf32c6faa11748a14753492 Mon Sep 17 00:00:00 2001
From: Daimona Eaytoy <daimona.wiki@gmail.com>
Date: Thu, 12 Dec 2024 22:57:31 +0100
Subject: Move SQL schema and schema changes to new sql/ top-level directory

This is the standard in every extension. DB schema changes are not
maintenance scripts, and therefore there's no apparent reason to have
the two things together, besides historical reasons.

Also, put each DB type in a separate directory, which wasn't the case
for MySQL before. For SQLite and Postgres schema changes, we now
follow the convention (used everywhere else, including the
generateSchemaChangeSql script) of having the DB type as the last part
of the path. This lets us generate schema changes for all DB types at
once, and without specifying the full file path.

Most files are just being renamed, the exceptions being to update
references to the old location (sometimes still referencing tables.sql).

Note that the old path is still referenced in the autogenerated comment
of schema changes SQL files. These will be regenerated in another
commit. Instead, the schema files are done now, because they're covered
by DatabaseIntegrationTest that would otherwise fail.

Bug: T382030
Change-Id: I3b4a614366d0bc629523ac40ce97d001f3b6bcf8
---
 sql/postgres/patch-user-user_is_temp.sql | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 sql/postgres/patch-user-user_is_temp.sql

(limited to 'sql/postgres/patch-user-user_is_temp.sql')

diff --git a/sql/postgres/patch-user-user_is_temp.sql b/sql/postgres/patch-user-user_is_temp.sql
new file mode 100644
index 000000000000..7b84a93fca18
--- /dev/null
+++ b/sql/postgres/patch-user-user_is_temp.sql
@@ -0,0 +1,6 @@
+-- This file is automatically generated using maintenance/generateSchemaChangeSql.php.
+-- Source: maintenance/abstractSchemaChanges/patch-user-user_is_temp.json
+-- Do not modify this file directly.
+-- See https://www.mediawiki.org/wiki/Manual:Schema_changes
+ALTER TABLE  "user"
+ADD  user_is_temp SMALLINT DEFAULT 0 NOT NULL;
\ No newline at end of file
-- 
cgit v1.2.3

