mirror of
				https://github.com/spantaleev/matrix-docker-ansible-deploy.git
				synced 2025-11-04 09:08:56 +01:00 
			
		
		
		
	Fixup Dimension database schema a bit after pgloader import
This commit is contained in:
		@@ -19,6 +19,12 @@
 | 
			
		||||
              engine_old: 'sqlite'
 | 
			
		||||
              systemd_services_to_stop: ['matrix-dimension.service']
 | 
			
		||||
              pgloader_options: ['--with "quote identifiers"']
 | 
			
		||||
              # pgloader makes `isSelfBot` of type `smallint`, instead of `boolean`.
 | 
			
		||||
              # We need to fix it up
 | 
			
		||||
              additional_psql_statements_list:
 | 
			
		||||
                - 'ALTER TABLE dimension_users ALTER COLUMN "isSelfBot" DROP default;'
 | 
			
		||||
                - 'ALTER TABLE dimension_users ALTER COLUMN "isSelfBot" TYPE BOOLEAN USING("isSelfBot"::text::boolean);'
 | 
			
		||||
                - 'ALTER TABLE dimension_users ALTER COLUMN "isSelfBot" SET default false;'
 | 
			
		||||
 | 
			
		||||
        - import_tasks: "roles/matrix-postgres/tasks/util/migrate_db_to_postgres.yml"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user