versioning

Is there an equivalent of rowversion in SQL Server, but for a table?

ぃ、小莉子 提交于 2019-12-13 03:43:34
问题 I am looking for something similar to rowversion but for the whole table : a unique number automatically generated that can be used to know if table has changed. Eg : SELECT TABLE_VERSION('FOO') 0x00000000000007D2 INSERT INTO FOO (...) VALUES (1, 'Hello world') SELECT TABLE_VERSION('FOO') 0x00000000000007D5 Does it exists in SQL Server ? If not, is there any alternative ? Somethings that allow to track changes on a column would be great too. I have been thinking of using HASHBYTES, but

How to increase a version field on save in Hibernate regardless if dirty or not?

与世无争的帅哥 提交于 2019-12-12 19:40:21
问题 I'm using Hibernate with a version column to implement optimistic concurrency control. The question: Is it possible to increment the version number of an entity every time I save it to database, regardless if it was changed or not? As long as some field is changed in the entity, the version number gets increased. But, if no field changed in the entity, the version number of the entity stays unchanged. The reason behind this question is that I've got a logical master-detail relationship

Version numbering for auto builds with Mercurial

霸气de小男生 提交于 2019-12-12 19:13:37
问题 We recently switched from SVN to Mercurial. We also have a CruiseControl.NET set up to run auto builds which gets the latest from the source control and builds the app. In the CruiseControl.NET dashboard for auto builds, we want to show the version number. Apparently, mercurial has this hexa decimal version numbers. What is the common standard for dealing with version numbers in CruiseControl.NET when working with Mercurial source control systems. Are the hexa decimal values used as is? What

How can I use pbr version from source?

你。 提交于 2019-12-12 16:32:04
问题 My goal: I want to keep coherent versions in my GIT repository, my distribution on pypi repository, and in my source using the __version__ variable. Details: I tried to use pbr , which generates the distro version from git tags, so these two versions will be coherent. However, I cannot find out how to keep the __version__ variable coherent with them in my source. (There are several ways to fetch the version from source, but how will it be connected to git/distro?) Is it possible to generate a

Ignore obsolete field when deserializing

耗尽温柔 提交于 2019-12-12 14:34:09
问题 I have been searching all day for a way to achieve this without result... I am trying to deserialize an object. When I serialized it, I had a bool called (let's say) obsoleteBool. In the new version of the class I removed this bool, and I now have an error when deserializing (Field "obsoleteBool" not found). It is very easy to add new fields between an old and a new version of a class. Even without using the [OptionalField] attribute... but how can I manage the removal of a field between an

Link a CSS file with version number for cache busting

守給你的承諾、 提交于 2019-12-12 12:40:42
问题 css-file is named: style.css?v=1 the link inside of html: <link rel="stylesheet" href="style.css?v=1"> Contrary to the classic style.css the style.css?v=1 doesn't get recognised: Failed to load resource: the server responded with a status of 404 (Not Found) Did I miss something? What's important to versioning files and where does the syntax ?v=1 come from? 回答1: The expression style.css?v=1 for the browser means a dynamic file like "fetch me the file style.css with a parameter named "v" set to

Can I save modiffications to development objects ( Report in my case) to another transport request (not the one they're locked in)?

坚强是说给别人听的谎言 提交于 2019-12-12 12:17:52
问题 When I try to switch to edit mode for a Report source, a popup comes up telling me "A new task will be created for the following request of user XXX". A transport request is also being suggested. I don't want to save my changes in this request however, but in another existing one. I am not aware of any versioning systems being implemented in my system, and don't know how to check that. Is what i'm trying to achieve possible? And if so, how? 回答1: No, this is not possible. There are very good

REST API versioning - why aren't models versioned

自闭症网瘾萝莉.ら 提交于 2019-12-12 10:34:51
问题 I've been reading up on all the approaches to version REST APIs. In almost all implementations, controllers and views are versioned, however models are not. To give the rails example, controllers are organized as: # app/controllers/api/v1/events_controller.rb class Api::V1::EventsController < Api::ApiController end Corresponding views as put in at different versioned directories as well. Why don't we version models? Is it because we expect our model (underlying database schema) to not change

Best way to share custom PHP code amongst projects

霸气de小男生 提交于 2019-12-12 10:03:18
问题 I'm developing a distributed environment, mostly in PHP. A lot of the projects that I have share some of the same code. For example my logging code (based on log4php but with some custom additions). I can just copy-paste this code in every project, but naturally, if I change anything in it I need to re-paste it everywhere and 'hope' it doesn't change anything. Obviously not a good way. Now, I was wondering: what is the best and simplest way of sharing this code? I'm hoping there is something

How do I find out what version of a bower package is actually installed?

旧时模样 提交于 2019-12-12 09:28:37
问题 Normally a bower.json file specifies some dependencies, but these are typically expressed so that they allow a range of versions of a bower package to be used (e.g. >=1.0 , which means anything higher than version 1.0). I have an automated process which needs to find what version of a bower package is actually installed on this system right now. How can I find this out programmatically (just the version itself), ideally using standard Unix command line tools / the bower command? bower info