pum 1.1.10__py3-none-any.whl → 1.1.11__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pum/upgrader.py CHANGED
@@ -51,7 +51,6 @@ class Upgrader:
51
51
  max_version: str | packaging.version.Version | None = None,
52
52
  roles: bool = False,
53
53
  grant: bool = False,
54
- demo_data: str | None = None,
55
54
  beta_testing: bool = False,
56
55
  commit: bool = False,
57
56
  ) -> None:
@@ -80,11 +79,6 @@ class Upgrader:
80
79
  commit:
81
80
  If True, the changes will be committed to the database.
82
81
  """
83
- if demo_data and demo_data not in self.config.demo_data():
84
- raise PumException(
85
- f"Demo data '{demo_data}' not found in the configuration. Available demo data: {self.config.demo_data()}"
86
- )
87
-
88
82
  if self.schema_migrations.exists(connection):
89
83
  msg = (
90
84
  f"Schema migrations table {self.config.config.pum.migration_table_schema}.pum_migrations already exists. "
@@ -119,15 +113,6 @@ class Upgrader:
119
113
  parameters=parameters,
120
114
  )
121
115
 
122
- if demo_data:
123
- demo_data_file = self.config.base_path / self.config.demo_data()[demo_data]
124
- logger.info("Installing demo data from %s", demo_data_file)
125
- SqlContent(sql=demo_data_file).execute(
126
- connection=connection,
127
- commit=False,
128
- parameters=parameters_literals,
129
- )
130
-
131
116
  for post_hook in self.config.post_hook_handlers():
132
117
  post_hook.execute(connection=connection, commit=False, parameters=parameters)
133
118
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pum
3
- Version: 1.1.10
3
+ Version: 1.1.11
4
4
  Summary: Pum stands for "Postgres Upgrades Manager". It is a Database migration management tool very similar to flyway-db or Liquibase, based on metadata tables.
5
5
  Author-email: Denis Rouzaud <denis@opengis.ch>
6
6
  License-Expression: GPL-2.0-or-later
@@ -13,11 +13,11 @@ pum/pum_config.py,sha256=xTEdYh-628pnkoqH56NoPIuhIQauc1d6hksM8hcCCU4,11232
13
13
  pum/role_manager.py,sha256=yr-fmytflGqANY3IZIpgJBoMOK98ynTWfemIBhAy79A,10131
14
14
  pum/schema_migrations.py,sha256=MCA40pCptwWeoZQuZb3zyvbLDU7I1YdRbr1Hgpe9hYg,10481
15
15
  pum/sql_content.py,sha256=KoAa3CNVH_Hh6Z3FxpCYJCsG1NEiCRpfzlfP8wPFZHE,10414
16
- pum/upgrader.py,sha256=eWjvdj8OpYLOf-ExLEkOoEqf1UjGWzNRXw0ztkoysGU,7050
16
+ pum/upgrader.py,sha256=vA_JMaiVDJVvNcXx9iu6RTX0V_ljyzoK2vlYJZ22maA,6410
17
17
  pum/conf/pum_config_example.yaml,sha256=_nwV_7z6S_Se-mejh_My0JFLY-A0Q4nigeLGPZAfcqg,424
18
- pum-1.1.10.dist-info/licenses/LICENSE,sha256=2ylvL381vKOhdO-w6zkrOxe9lLNBhRQpo9_0EbHC_HM,18046
19
- pum-1.1.10.dist-info/METADATA,sha256=YYJBkXCWiiV3zhPlSHb0pTeBlnbJ8mY6f66TYULtUIk,3139
20
- pum-1.1.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
21
- pum-1.1.10.dist-info/entry_points.txt,sha256=U6dmxSpKs1Pe9vWiR29VPhJMDjrmZeJCSxvfLGR8BD4,36
22
- pum-1.1.10.dist-info/top_level.txt,sha256=ddiI4HLBhY6ql-NNm0Ez0JhoOHdWDIzrHeCdHmmagcc,4
23
- pum-1.1.10.dist-info/RECORD,,
18
+ pum-1.1.11.dist-info/licenses/LICENSE,sha256=2ylvL381vKOhdO-w6zkrOxe9lLNBhRQpo9_0EbHC_HM,18046
19
+ pum-1.1.11.dist-info/METADATA,sha256=WolZB8eJ3_lZSnpQdvL8O6l-SAIYvOz_B-mjeHPyAFw,3139
20
+ pum-1.1.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
21
+ pum-1.1.11.dist-info/entry_points.txt,sha256=U6dmxSpKs1Pe9vWiR29VPhJMDjrmZeJCSxvfLGR8BD4,36
22
+ pum-1.1.11.dist-info/top_level.txt,sha256=ddiI4HLBhY6ql-NNm0Ez0JhoOHdWDIzrHeCdHmmagcc,4
23
+ pum-1.1.11.dist-info/RECORD,,
File without changes